Class CommitRepositoryChangesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CommitRepositoryChangesRequest.Builder>
com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.Builder
All Implemented Interfaces:
CommitRepositoryChangesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CommitRepositoryChangesRequest

public static final class CommitRepositoryChangesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CommitRepositoryChangesRequest.Builder> implements CommitRepositoryChangesRequestOrBuilder
 `CommitRepositoryChanges` request message.
 
Protobuf type google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CommitRepositoryChangesRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CommitRepositoryChangesRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CommitRepositoryChangesRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CommitRepositoryChangesRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CommitRepositoryChangesRequest.Builder>
    • getDefaultInstanceForType

      public CommitRepositoryChangesRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CommitRepositoryChangesRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CommitRepositoryChangesRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommitRepositoryChangesRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CommitRepositoryChangesRequest.Builder>
    • mergeFrom

      public CommitRepositoryChangesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommitRepositoryChangesRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The repository's name.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface CommitRepositoryChangesRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The repository's name.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface CommitRepositoryChangesRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. The repository's name.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The repository's name.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public CommitRepositoryChangesRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The repository's name.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasCommitMetadata in interface CommitRepositoryChangesRequestOrBuilder
      Returns:
      Whether the commitMetadata field is set.
    • 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];
      Specified by:
      getCommitMetadata in interface CommitRepositoryChangesRequestOrBuilder
      Returns:
      The commitMetadata.
    • setCommitMetadata

      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];
    • setCommitMetadata

      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];
    • mergeCommitMetadata

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getCommitMetadataOrBuilder in interface CommitRepositoryChangesRequestOrBuilder
    • 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];
      Specified by:
      getRequiredHeadCommitSha in interface CommitRepositoryChangesRequestOrBuilder
      Returns:
      The requiredHeadCommitSha.
    • getRequiredHeadCommitShaBytes

      public com.google.protobuf.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];
      Specified by:
      getRequiredHeadCommitShaBytes in interface CommitRepositoryChangesRequestOrBuilder
      Returns:
      The bytes for requiredHeadCommitSha.
    • setRequiredHeadCommitSha

      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];
      Parameters:
      value - The requiredHeadCommitSha to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setRequiredHeadCommitShaBytes

      public CommitRepositoryChangesRequest.Builder setRequiredHeadCommitShaBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for requiredHeadCommitSha to set.
      Returns:
      This builder for chaining.
    • getFileOperationsCount

      public int getFileOperationsCount()
      Description copied from interface: CommitRepositoryChangesRequestOrBuilder
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileOperationsCount in interface CommitRepositoryChangesRequestOrBuilder
    • containsFileOperations

      public boolean containsFileOperations(String key)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsFileOperations in interface CommitRepositoryChangesRequestOrBuilder
    • getFileOperations

      Deprecated.
      Specified by:
      getFileOperations in interface CommitRepositoryChangesRequestOrBuilder
    • getFileOperationsMap

       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileOperationsMap in interface CommitRepositoryChangesRequestOrBuilder
    • getFileOperationsOrDefault

       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileOperationsOrDefault in interface CommitRepositoryChangesRequestOrBuilder
    • getFileOperationsOrThrow

      public CommitRepositoryChangesRequest.FileOperation getFileOperationsOrThrow(String key)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileOperationsOrThrow in interface CommitRepositoryChangesRequestOrBuilder
    • clearFileOperations

      public CommitRepositoryChangesRequest.Builder clearFileOperations()
    • removeFileOperations

      public CommitRepositoryChangesRequest.Builder removeFileOperations(String key)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableFileOperations

      Deprecated.
      Use alternate mutation accessors instead.
    • putFileOperations

       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
    • putAllFileOperations

       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
    • putFileOperationsBuilderIfAbsent

      public CommitRepositoryChangesRequest.FileOperation.Builder putFileOperationsBuilderIfAbsent(String key)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];