Class CommitRepositoryChangesRequest.Builder (0.50.0)

public static final class CommitRepositoryChangesRequest.Builder extends GeneratedMessageV3.Builder<CommitRepositoryChangesRequest.Builder> implements CommitRepositoryChangesRequestOrBuilder

CommitRepositoryChanges request message.

Protobuf type google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommitRepositoryChangesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommitRepositoryChangesRequest.Builder
Overrides

build()

public CommitRepositoryChangesRequest build()
Returns
Type Description
CommitRepositoryChangesRequest

buildPartial()

public CommitRepositoryChangesRequest buildPartial()
Returns
Type Description
CommitRepositoryChangesRequest

clear()

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

clearCommitMetadata()

public CommitRepositoryChangesRequest.Builder clearCommitMetadata()

Required. The changes to commit to the repository.

.google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CommitRepositoryChangesRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFileOperations()

public CommitRepositoryChangesRequest.Builder clearFileOperations()
Returns
Type Description
CommitRepositoryChangesRequest.Builder

clearName()

public CommitRepositoryChangesRequest.Builder clearName()

Required. The repository's name.

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

Returns
Type Description
CommitRepositoryChangesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CommitRepositoryChangesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CommitRepositoryChangesRequest.Builder
Overrides

clearRequiredHeadCommitSha()

public CommitRepositoryChangesRequest.Builder clearRequiredHeadCommitSha()

Optional. The commit SHA which must be the repository's current HEAD before applying this commit; otherwise this request will fail. If unset, no validation on the current HEAD commit SHA is performed.

string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CommitRepositoryChangesRequest.Builder

This builder for chaining.

clone()

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

containsFileOperations(String key)

public boolean containsFileOperations(String key)

A map to the path of the file to the operation. The path is the full file path including filename, from repository root.

map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCommitMetadata()

public CommitMetadata getCommitMetadata()

Required. The changes to commit to the repository.

.google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CommitMetadata

The commitMetadata.

getCommitMetadataBuilder()

public CommitMetadata.Builder getCommitMetadataBuilder()

Required. The changes to commit to the repository.

.google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CommitMetadata.Builder

getCommitMetadataOrBuilder()

public CommitMetadataOrBuilder getCommitMetadataOrBuilder()

Required. The changes to commit to the repository.

.google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CommitMetadataOrBuilder

getDefaultInstanceForType()

public CommitRepositoryChangesRequest getDefaultInstanceForType()
Returns
Type Description
CommitRepositoryChangesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFileOperations() (deprecated)

public Map<String,CommitRepositoryChangesRequest.FileOperation> getFileOperations()
Returns
Type Description
Map<String,FileOperation>

getFileOperationsCount()

public int getFileOperationsCount()

A map to the path of the file to the operation. The path is the full file path including filename, from repository root.

map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3;

Returns
Type Description
int

getFileOperationsMap()

public Map<String,CommitRepositoryChangesRequest.FileOperation> getFileOperationsMap()

A map to the path of the file to the operation. The path is the full file path including filename, from repository root.

map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3;

Returns
Type Description
Map<String,FileOperation>

getFileOperationsOrDefault(String key, CommitRepositoryChangesRequest.FileOperation defaultValue)

public CommitRepositoryChangesRequest.FileOperation getFileOperationsOrDefault(String key, CommitRepositoryChangesRequest.FileOperation defaultValue)

A map to the path of the file to the operation. The path is the full file path including filename, from repository root.

map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3;

Parameters
Name Description
key String
defaultValue CommitRepositoryChangesRequest.FileOperation
Returns
Type Description
CommitRepositoryChangesRequest.FileOperation

getFileOperationsOrThrow(String key)

public CommitRepositoryChangesRequest.FileOperation getFileOperationsOrThrow(String key)

A map to the path of the file to the operation. The path is the full file path including filename, from repository root.

map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3;

Parameter
Name Description
key String
Returns
Type Description
CommitRepositoryChangesRequest.FileOperation

getMutableFileOperations() (deprecated)

public Map<String,CommitRepositoryChangesRequest.FileOperation> getMutableFileOperations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,FileOperation>

getName()

public String getName()

Required. The repository's name.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The repository's name.

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

Returns
Type Description
ByteString

The bytes for name.

getRequiredHeadCommitSha()

public String getRequiredHeadCommitSha()

Optional. The commit SHA which must be the repository's current HEAD before applying this commit; otherwise this request will fail. If unset, no validation on the current HEAD commit SHA is performed.

string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The requiredHeadCommitSha.

getRequiredHeadCommitShaBytes()

public ByteString getRequiredHeadCommitShaBytes()

Optional. The commit SHA which must be the repository's current HEAD before applying this commit; otherwise this request will fail. If unset, no validation on the current HEAD commit SHA is performed.

string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requiredHeadCommitSha.

hasCommitMetadata()

public boolean hasCommitMetadata()

Required. The changes to commit to the repository.

.google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the commitMetadata field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCommitMetadata(CommitMetadata value)

public CommitRepositoryChangesRequest.Builder mergeCommitMetadata(CommitMetadata value)

Required. The changes to commit to the repository.

.google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CommitMetadata
Returns
Type Description
CommitRepositoryChangesRequest.Builder

mergeFrom(CommitRepositoryChangesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommitRepositoryChangesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CommitRepositoryChangesRequest.Builder
Overrides

putAllFileOperations(Map<String,CommitRepositoryChangesRequest.FileOperation> values)

public CommitRepositoryChangesRequest.Builder putAllFileOperations(Map<String,CommitRepositoryChangesRequest.FileOperation> values)

A map to the path of the file to the operation. The path is the full file path including filename, from repository root.

map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3;

Parameter
Name Description
values Map<String,FileOperation>
Returns
Type Description
CommitRepositoryChangesRequest.Builder

putFileOperations(String key, CommitRepositoryChangesRequest.FileOperation value)

public CommitRepositoryChangesRequest.Builder putFileOperations(String key, CommitRepositoryChangesRequest.FileOperation value)

A map to the path of the file to the operation. The path is the full file path including filename, from repository root.

map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3;

Parameters
Name Description
key String
value CommitRepositoryChangesRequest.FileOperation
Returns
Type Description
CommitRepositoryChangesRequest.Builder

putFileOperationsBuilderIfAbsent(String key)

public CommitRepositoryChangesRequest.FileOperation.Builder putFileOperationsBuilderIfAbsent(String key)

A map to the path of the file to the operation. The path is the full file path including filename, from repository root.

map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3;

Parameter
Name Description
key String
Returns
Type Description
CommitRepositoryChangesRequest.FileOperation.Builder

removeFileOperations(String key)

public CommitRepositoryChangesRequest.Builder removeFileOperations(String key)

A map to the path of the file to the operation. The path is the full file path including filename, from repository root.

map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3;

Parameter
Name Description
key String
Returns
Type Description
CommitRepositoryChangesRequest.Builder

setCommitMetadata(CommitMetadata value)

public CommitRepositoryChangesRequest.Builder setCommitMetadata(CommitMetadata value)

Required. The changes to commit to the repository.

.google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CommitMetadata
Returns
Type Description
CommitRepositoryChangesRequest.Builder

setCommitMetadata(CommitMetadata.Builder builderForValue)

public CommitRepositoryChangesRequest.Builder setCommitMetadata(CommitMetadata.Builder builderForValue)

Required. The changes to commit to the repository.

.google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CommitMetadata.Builder
Returns
Type Description
CommitRepositoryChangesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CommitRepositoryChangesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommitRepositoryChangesRequest.Builder
Overrides

setName(String value)

public CommitRepositoryChangesRequest.Builder setName(String value)

Required. The repository's name.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CommitRepositoryChangesRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CommitRepositoryChangesRequest.Builder setNameBytes(ByteString value)

Required. The repository's name.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CommitRepositoryChangesRequest.Builder

This builder for chaining.

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

public CommitRepositoryChangesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CommitRepositoryChangesRequest.Builder
Overrides

setRequiredHeadCommitSha(String value)

public CommitRepositoryChangesRequest.Builder setRequiredHeadCommitSha(String value)

Optional. The commit SHA which must be the repository's current HEAD before applying this commit; otherwise this request will fail. If unset, no validation on the current HEAD commit SHA is performed.

string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requiredHeadCommitSha to set.

Returns
Type Description
CommitRepositoryChangesRequest.Builder

This builder for chaining.

setRequiredHeadCommitShaBytes(ByteString value)

public CommitRepositoryChangesRequest.Builder setRequiredHeadCommitShaBytes(ByteString value)

Optional. The commit SHA which must be the repository's current HEAD before applying this commit; otherwise this request will fail. If unset, no validation on the current HEAD commit SHA is performed.

string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for requiredHeadCommitSha to set.

Returns
Type Description
CommitRepositoryChangesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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