Class CreateRepositoryRequest (3.23.0)

publicfinalclass CreateRepositoryRequestextendsGeneratedMessageV3implementsCreateRepositoryRequestOrBuilder

Message for creating a Repository.

Protobuf type google.devtools.cloudbuild.v2.CreateRepositoryRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)

Static Fields

PARENT_FIELD_NUMBER

publicstaticfinalintPARENT_FIELD_NUMBER
Field Value
Type Description
int

REPOSITORY_FIELD_NUMBER

publicstaticfinalintREPOSITORY_FIELD_NUMBER
Field Value
Type Description
int

REPOSITORY_ID_FIELD_NUMBER

publicstaticfinalintREPOSITORY_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticCreateRepositoryRequestgetDefaultInstance()
Returns
Type Description
CreateRepositoryRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticCreateRepositoryRequest.BuildernewBuilder()
Returns
Type Description
CreateRepositoryRequest.Builder

newBuilder(CreateRepositoryRequest prototype)

publicstaticCreateRepositoryRequest.BuildernewBuilder(CreateRepositoryRequestprototype)
Parameter
Name Description
prototype CreateRepositoryRequest
Returns
Type Description
CreateRepositoryRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticCreateRepositoryRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateRepositoryRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticCreateRepositoryRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateRepositoryRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticCreateRepositoryRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateRepositoryRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticCreateRepositoryRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateRepositoryRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticCreateRepositoryRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCreateRepositoryRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticCreateRepositoryRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticCreateRepositoryRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateRepositoryRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<CreateRepositoryRequest>parser()
Returns
Type Description
Parser<CreateRepositoryRequest>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicCreateRepositoryRequestgetDefaultInstanceForType()
Returns
Type Description
CreateRepositoryRequest

getParent()

publicStringgetParent()

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

publicParser<CreateRepositoryRequest>getParserForType()
Returns
Type Description
Parser<CreateRepositoryRequest>
Overrides

getRepository()

publicRepositorygetRepository()

Required. The repository to create.

.google.devtools.cloudbuild.v2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Repository

The repository.

getRepositoryId()

publicStringgetRepositoryId()

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

string repository_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The repositoryId.

getRepositoryIdBytes()

publicByteStringgetRepositoryIdBytes()

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

string repository_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for repositoryId.

getRepositoryOrBuilder()

publicRepositoryOrBuildergetRepositoryOrBuilder()

Required. The repository to create.

.google.devtools.cloudbuild.v2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RepositoryOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasRepository()

publicbooleanhasRepository()

Required. The repository to create.

.google.devtools.cloudbuild.v2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the repository field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicCreateRepositoryRequest.BuildernewBuilderForType()
Returns
Type Description
CreateRepositoryRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCreateRepositoryRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicCreateRepositoryRequest.BuildertoBuilder()
Returns
Type Description
CreateRepositoryRequest.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.