Class ReadFileRequest.Builder

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

public static final class ReadFileRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReadFileRequest.Builder> implements ReadFileRequestOrBuilder
 `ReadFile` request message.
 
Protobuf type google.cloud.dataform.v1beta1.ReadFileRequest
  • 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<ReadFileRequest.Builder>
    • clear

      public ReadFileRequest.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<ReadFileRequest.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<ReadFileRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ReadFileRequest.Builder mergeFrom(ReadFileRequest other)
    • isInitialized

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

      public ReadFileRequest.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<ReadFileRequest.Builder>
      Throws:
      IOException
    • getWorkspace

      public String getWorkspace()
       Required. The workspace's name.
       
      string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getWorkspace in interface ReadFileRequestOrBuilder
      Returns:
      The workspace.
    • getWorkspaceBytes

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

      public ReadFileRequest.Builder setWorkspace(String value)
       Required. The workspace's name.
       
      string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The workspace to set.
      Returns:
      This builder for chaining.
    • clearWorkspace

      public ReadFileRequest.Builder clearWorkspace()
       Required. The workspace's name.
       
      string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setWorkspaceBytes

      public ReadFileRequest.Builder setWorkspaceBytes(com.google.protobuf.ByteString value)
       Required. The workspace's name.
       
      string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for workspace to set.
      Returns:
      This builder for chaining.
    • getPath

      public String getPath()
       Required. The file's full path including filename, relative to the
       workspace root.
       
      string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPath in interface ReadFileRequestOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Required. The file's full path including filename, relative to the
       workspace root.
       
      string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPathBytes in interface ReadFileRequestOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public ReadFileRequest.Builder setPath(String value)
       Required. The file's full path including filename, relative to the
       workspace root.
       
      string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public ReadFileRequest.Builder clearPath()
       Required. The file's full path including filename, relative to the
       workspace root.
       
      string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPathBytes

      public ReadFileRequest.Builder setPathBytes(com.google.protobuf.ByteString value)
       Required. The file's full path including filename, relative to the
       workspace root.
       
      string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • getRevision

      public String getRevision()
       Optional. The Git revision of the file to return. If left empty, the
       current contents of `path` will be returned.
       
      string revision = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRevision in interface ReadFileRequestOrBuilder
      Returns:
      The revision.
    • getRevisionBytes

      public com.google.protobuf.ByteString getRevisionBytes()
       Optional. The Git revision of the file to return. If left empty, the
       current contents of `path` will be returned.
       
      string revision = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRevisionBytes in interface ReadFileRequestOrBuilder
      Returns:
      The bytes for revision.
    • setRevision

      public ReadFileRequest.Builder setRevision(String value)
       Optional. The Git revision of the file to return. If left empty, the
       current contents of `path` will be returned.
       
      string revision = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The revision to set.
      Returns:
      This builder for chaining.
    • clearRevision

      public ReadFileRequest.Builder clearRevision()
       Optional. The Git revision of the file to return. If left empty, the
       current contents of `path` will be returned.
       
      string revision = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRevisionBytes

      public ReadFileRequest.Builder setRevisionBytes(com.google.protobuf.ByteString value)
       Optional. The Git revision of the file to return. If left empty, the
       current contents of `path` will be returned.
       
      string revision = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for revision to set.
      Returns:
      This builder for chaining.