Class ReadRepositoryFileRequest.Builder

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

public static final class ReadRepositoryFileRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReadRepositoryFileRequest.Builder> implements ReadRepositoryFileRequestOrBuilder
 `ReadRepositoryFile` request message.
 
Protobuf type google.cloud.dataform.v1.ReadRepositoryFileRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ReadRepositoryFileRequest.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<ReadRepositoryFileRequest.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<ReadRepositoryFileRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public ReadRepositoryFileRequest.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<ReadRepositoryFileRequest.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<ReadRepositoryFileRequest.Builder>
    • mergeFrom

      public ReadRepositoryFileRequest.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<ReadRepositoryFileRequest.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 ReadRepositoryFileRequestOrBuilder
      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 ReadRepositoryFileRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ReadRepositoryFileRequest.Builder setName(String value)
       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 ReadRepositoryFileRequest.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.
    • getCommitSha

      public String getCommitSha()
       Optional. The commit SHA for the commit to read from. If unset, the file
       will be read from HEAD.
       
      string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommitSha in interface ReadRepositoryFileRequestOrBuilder
      Returns:
      The commitSha.
    • getCommitShaBytes

      public com.google.protobuf.ByteString getCommitShaBytes()
       Optional. The commit SHA for the commit to read from. If unset, the file
       will be read from HEAD.
       
      string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommitShaBytes in interface ReadRepositoryFileRequestOrBuilder
      Returns:
      The bytes for commitSha.
    • setCommitSha

      public ReadRepositoryFileRequest.Builder setCommitSha(String value)
       Optional. The commit SHA for the commit to read from. If unset, the file
       will be read from HEAD.
       
      string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The commitSha to set.
      Returns:
      This builder for chaining.
    • clearCommitSha

      public ReadRepositoryFileRequest.Builder clearCommitSha()
       Optional. The commit SHA for the commit to read from. If unset, the file
       will be read from HEAD.
       
      string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCommitShaBytes

      public ReadRepositoryFileRequest.Builder setCommitShaBytes(com.google.protobuf.ByteString value)
       Optional. The commit SHA for the commit to read from. If unset, the file
       will be read from HEAD.
       
      string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for commitSha to set.
      Returns:
      This builder for chaining.
    • getPath

      public String getPath()
       Required. Full file path to read including filename, from repository root.
       
      string path = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPath in interface ReadRepositoryFileRequestOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Required. Full file path to read including filename, from repository root.
       
      string path = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPathBytes in interface ReadRepositoryFileRequestOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public ReadRepositoryFileRequest.Builder setPath(String value)
       Required. Full file path to read including filename, from repository root.
       
      string path = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

       Required. Full file path to read including filename, from repository root.
       
      string path = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPathBytes

      public ReadRepositoryFileRequest.Builder setPathBytes(com.google.protobuf.ByteString value)
       Required. Full file path to read including filename, from repository root.
       
      string path = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.