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
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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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 google.devtools.cloudbuild.v2.CreateRepositoryRequest>
|
Returns
public BatchCreateRepositoriesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
public BatchCreateRepositoriesRequest build()
Returns
public BatchCreateRepositoriesRequest buildPartial()
Returns
public BatchCreateRepositoriesRequest.Builder clear()
Returns
Overrides
public BatchCreateRepositoriesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public BatchCreateRepositoriesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
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
public BatchCreateRepositoriesRequest.Builder clone()
Returns
Overrides
public BatchCreateRepositoriesRequest getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
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
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
Returns
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
Returns
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
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
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
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
Returns
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 google.devtools.cloudbuild.v2.CreateRepositoryRequestOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public BatchCreateRepositoriesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public BatchCreateRepositoriesRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public BatchCreateRepositoriesRequest.Builder mergeFrom(BatchCreateRepositoriesRequest other)
Parameter
Returns
public final BatchCreateRepositoriesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
public BatchCreateRepositoriesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
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
public BatchCreateRepositoriesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
public final BatchCreateRepositoriesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides