Class BatchCreateRepositoriesRequest.Builder (3.46.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloudbuild.v2.CreateRepositoryRequest>
Returns
Type Description
BatchCreateRepositoriesRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateRepositoriesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value CreateRepositoryRequest
Returns
Type Description
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
Name Description
builderForValue CreateRepositoryRequest.Builder
Returns
Type Description
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
Name Description
index int
value CreateRepositoryRequest
Returns
Type Description
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
Name Description
index int
builderForValue CreateRepositoryRequest.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
CreateRepositoryRequest.Builder

build()

public BatchCreateRepositoriesRequest build()
Returns
Type Description
BatchCreateRepositoriesRequest

buildPartial()

public BatchCreateRepositoriesRequest buildPartial()
Returns
Type Description
BatchCreateRepositoriesRequest

clear()

public BatchCreateRepositoriesRequest.Builder clear()
Returns
Type Description
BatchCreateRepositoriesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchCreateRepositoriesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchCreateRepositoriesRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateRepositoriesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
BatchCreateRepositoriesRequest.Builder

clone()

public BatchCreateRepositoriesRequest.Builder clone()
Returns
Type Description
BatchCreateRepositoriesRequest.Builder
Overrides

getDefaultInstanceForType()

public BatchCreateRepositoriesRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateRepositoriesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloudbuild.v2.CreateRepositoryRequestOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateRepositoriesRequest other)

public BatchCreateRepositoriesRequest.Builder mergeFrom(BatchCreateRepositoriesRequest other)
Parameter
Name Description
other BatchCreateRepositoriesRequest
Returns
Type Description
BatchCreateRepositoriesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateRepositoriesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateRepositoriesRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchCreateRepositoriesRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchCreateRepositoriesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateRepositoriesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
BatchCreateRepositoriesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateRepositoriesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int
value CreateRepositoryRequest
Returns
Type Description
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
Name Description
index int
builderForValue CreateRepositoryRequest.Builder
Returns
Type Description
BatchCreateRepositoriesRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateRepositoriesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateRepositoriesRequest.Builder
Overrides