Class BatchCreateRepositoriesRequest.Builder (3.42.0)

public static final class BatchCreateRepositoriesRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateRepositoriesRequest.Builder> implements BatchCreateRepositoriesRequestOrBuilder

Message for creating repositoritories in batch.

Protobuf type google.devtools.cloudbuild.v2.BatchCreateRepositoriesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllRequests(Iterable<? extends CreateRepositoryRequest> values)

public BatchCreateRepositoriesRequest.Builder addAllRequests(Iterable<? extends CreateRepositoryRequest> values)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloudbuild.v2.CreateRepositoryRequest>
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateRepositoriesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides

addRequests(CreateRepositoryRequest value)

public BatchCreateRepositoriesRequest.Builder addRequests(CreateRepositoryRequest value)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCreateRepositoryRequest
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

addRequests(CreateRepositoryRequest.Builder builderForValue)

public BatchCreateRepositoriesRequest.Builder addRequests(CreateRepositoryRequest.Builder builderForValue)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCreateRepositoryRequest.Builder
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

addRequests(int index, CreateRepositoryRequest value)

public BatchCreateRepositoriesRequest.Builder addRequests(int index, CreateRepositoryRequest value)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueCreateRepositoryRequest
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

addRequests(int index, CreateRepositoryRequest.Builder builderForValue)

public BatchCreateRepositoriesRequest.Builder addRequests(int index, CreateRepositoryRequest.Builder builderForValue)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueCreateRepositoryRequest.Builder
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

addRequestsBuilder()

public CreateRepositoryRequest.Builder addRequestsBuilder()

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateRepositoryRequest.Builder

addRequestsBuilder(int index)

public CreateRepositoryRequest.Builder addRequestsBuilder(int index)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
CreateRepositoryRequest.Builder

build()

public BatchCreateRepositoriesRequest build()
Returns
TypeDescription
BatchCreateRepositoriesRequest

buildPartial()

public BatchCreateRepositoriesRequest buildPartial()
Returns
TypeDescription
BatchCreateRepositoriesRequest

clear()

public BatchCreateRepositoriesRequest.Builder clear()
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchCreateRepositoriesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateRepositoriesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides

clearParent()

public BatchCreateRepositoriesRequest.Builder clearParent()

Required. The connection to contain all the repositories being created. Format: projects/*/locations/*/connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

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

Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateRepositoriesRequest.Builder clearRequests()

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

clone()

public BatchCreateRepositoriesRequest.Builder clone()
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides

getDefaultInstanceForType()

public BatchCreateRepositoriesRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateRepositoriesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The connection to contain all the repositories being created. Format: projects/*/locations/*/connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The connection to contain all the repositories being created. Format: projects/*/locations/*/connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getRequests(int index)

public CreateRepositoryRequest getRequests(int index)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
CreateRepositoryRequest

getRequestsBuilder(int index)

public CreateRepositoryRequest.Builder getRequestsBuilder(int index)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
CreateRepositoryRequest.Builder

getRequestsBuilderList()

public List<CreateRepositoryRequest.Builder> getRequestsBuilderList()

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getRequestsList()

public List<CreateRepositoryRequest> getRequestsList()

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<CreateRepositoryRequest>

getRequestsOrBuilder(int index)

public CreateRepositoryRequestOrBuilder getRequestsOrBuilder(int index)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
CreateRepositoryRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateRepositoryRequestOrBuilder> getRequestsOrBuilderList()

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloudbuild.v2.CreateRepositoryRequestOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchCreateRepositoriesRequest other)

public BatchCreateRepositoriesRequest.Builder mergeFrom(BatchCreateRepositoriesRequest other)
Parameter
NameDescription
otherBatchCreateRepositoriesRequest
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateRepositoriesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchCreateRepositoriesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateRepositoriesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides

removeRequests(int index)

public BatchCreateRepositoriesRequest.Builder removeRequests(int index)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateRepositoriesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides

setParent(String value)

public BatchCreateRepositoriesRequest.Builder setParent(String value)

Required. The connection to contain all the repositories being created. Format: projects/*/locations/*/connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateRepositoriesRequest.Builder setParentBytes(ByteString value)

Required. The connection to contain all the repositories being created. Format: projects/*/locations/*/connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

This builder for chaining.

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

public BatchCreateRepositoriesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides

setRequests(int index, CreateRepositoryRequest value)

public BatchCreateRepositoriesRequest.Builder setRequests(int index, CreateRepositoryRequest value)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueCreateRepositoryRequest
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

setRequests(int index, CreateRepositoryRequest.Builder builderForValue)

public BatchCreateRepositoriesRequest.Builder setRequests(int index, CreateRepositoryRequest.Builder builderForValue)

Required. The request messages specifying the repositories to create.

repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueCreateRepositoryRequest.Builder
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateRepositoriesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchCreateRepositoriesRequest.Builder
Overrides