public static final class CommitRepositoryChangesRequest.Builder extends GeneratedMessageV3.Builder<CommitRepositoryChangesRequest.Builder> implements CommitRepositoryChangesRequestOrBuilder
CommitRepositoryChanges
request message.
Protobuf type google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest
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()
Methods
public CommitRepositoryChangesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CommitRepositoryChangesRequest build()
public CommitRepositoryChangesRequest buildPartial()
public CommitRepositoryChangesRequest.Builder clear()
Overrides
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];
public CommitRepositoryChangesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public CommitRepositoryChangesRequest.Builder clearFileOperations()
public CommitRepositoryChangesRequest.Builder clearName()
Required. The repository's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CommitRepositoryChangesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
public CommitRepositoryChangesRequest.Builder clone()
Overrides
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
|
public CommitMetadata getCommitMetadata()
Required. The changes to commit to the repository.
.google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED];
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];
public CommitMetadataOrBuilder getCommitMetadataOrBuilder()
Required. The changes to commit to the repository.
.google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED];
public CommitRepositoryChangesRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,CommitRepositoryChangesRequest.FileOperation> getFileOperations()
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 |
|
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;
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;
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
|
public Map<String,CommitRepositoryChangesRequest.FileOperation> getMutableFileOperations()
Use alternate mutation accessors instead.
Required. The repository's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The name.
|
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.
|
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.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
public final boolean isInitialized()
Overrides
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];
public CommitRepositoryChangesRequest.Builder mergeFrom(CommitRepositoryChangesRequest other)
public CommitRepositoryChangesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public CommitRepositoryChangesRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final CommitRepositoryChangesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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;
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
|
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];
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];
public CommitRepositoryChangesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
public CommitRepositoryChangesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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.
|
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.
|
public final CommitRepositoryChangesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides