Class CreateRepositoryRequest.Builder (3.15.0)

publicstaticfinalclass CreateRepositoryRequest.BuilderextendsGeneratedMessageV3.Builder<CreateRepositoryRequest.Builder>implementsCreateRepositoryRequestOrBuilder

Message for creating a Repository.

Protobuf type google.devtools.cloudbuild.v2.CreateRepositoryRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCreateRepositoryRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

build()

publicCreateRepositoryRequestbuild()
Returns
Type Description
CreateRepositoryRequest

buildPartial()

publicCreateRepositoryRequestbuildPartial()
Returns
Type Description
CreateRepositoryRequest

clear()

publicCreateRepositoryRequest.Builderclear()
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCreateRepositoryRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicCreateRepositoryRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

clearParent()

publicCreateRepositoryRequest.BuilderclearParent()

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
CreateRepositoryRequest.Builder

This builder for chaining.

clearRepository()

publicCreateRepositoryRequest.BuilderclearRepository()

Required. The repository to create.

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

Returns
Type Description
CreateRepositoryRequest.Builder

clearRepositoryId()

publicCreateRepositoryRequest.BuilderclearRepositoryId()

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
CreateRepositoryRequest.Builder

This builder for chaining.

clone()

publicCreateRepositoryRequest.Builderclone()
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

getDefaultInstanceForType()

publicCreateRepositoryRequestgetDefaultInstanceForType()
Returns
Type Description
CreateRepositoryRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

getRepositoryBuilder()

publicRepository.BuildergetRepositoryBuilder()

Required. The repository to create.

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

Returns
Type Description
Repository.Builder

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

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateRepositoryRequest other)

publicCreateRepositoryRequest.BuildermergeFrom(CreateRepositoryRequestother)
Parameter
Name Description
other CreateRepositoryRequest
Returns
Type Description
CreateRepositoryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCreateRepositoryRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCreateRepositoryRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

mergeRepository(Repository value)

publicCreateRepositoryRequest.BuildermergeRepository(Repositoryvalue)

Required. The repository to create.

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

Parameter
Name Description
value Repository
Returns
Type Description
CreateRepositoryRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateRepositoryRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCreateRepositoryRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

setParent(String value)

publicCreateRepositoryRequest.BuildersetParent(Stringvalue)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateRepositoryRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

publicCreateRepositoryRequest.BuildersetParentBytes(ByteStringvalue)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateRepositoryRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicCreateRepositoryRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

setRepository(Repository value)

publicCreateRepositoryRequest.BuildersetRepository(Repositoryvalue)

Required. The repository to create.

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

Parameter
Name Description
value Repository
Returns
Type Description
CreateRepositoryRequest.Builder

setRepository(Repository.Builder builderForValue)

publicCreateRepositoryRequest.BuildersetRepository(Repository.BuilderbuilderForValue)

Required. The repository to create.

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

Parameter
Name Description
builderForValue Repository.Builder
Returns
Type Description
CreateRepositoryRequest.Builder

setRepositoryId(String value)

publicCreateRepositoryRequest.BuildersetRepositoryId(Stringvalue)

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];

Parameter
Name Description
value String

The repositoryId to set.

Returns
Type Description
CreateRepositoryRequest.Builder

This builder for chaining.

setRepositoryIdBytes(ByteString value)

publicCreateRepositoryRequest.BuildersetRepositoryIdBytes(ByteStringvalue)

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];

Parameter
Name Description
value ByteString

The bytes for repositoryId to set.

Returns
Type Description
CreateRepositoryRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateRepositoryRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateRepositoryRequest.Builder
Overrides

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.