Class GetTemplateRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GetTemplateRequest.Builder>
com.google.dataflow.v1beta3.GetTemplateRequest.Builder
All Implemented Interfaces:
GetTemplateRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GetTemplateRequest

public static final class GetTemplateRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetTemplateRequest.Builder> implements GetTemplateRequestOrBuilder
 A request to retrieve a Cloud Dataflow job template.
 
Protobuf type google.dataflow.v1beta3.GetTemplateRequest
  • 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<GetTemplateRequest.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<GetTemplateRequest.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<GetTemplateRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GetTemplateRequest.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<GetTemplateRequest.Builder>
      Throws:
      IOException
    • getTemplateCase

      public GetTemplateRequest.TemplateCase getTemplateCase()
      Specified by:
      getTemplateCase in interface GetTemplateRequestOrBuilder
    • clearTemplate

      public GetTemplateRequest.Builder clearTemplate()
    • getProjectId

      public String getProjectId()
       Required. The ID of the Cloud Platform project that the job belongs to.
       
      string project_id = 1;
      Specified by:
      getProjectId in interface GetTemplateRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Required. The ID of the Cloud Platform project that the job belongs to.
       
      string project_id = 1;
      Specified by:
      getProjectIdBytes in interface GetTemplateRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public GetTemplateRequest.Builder setProjectId(String value)
       Required. The ID of the Cloud Platform project that the job belongs to.
       
      string project_id = 1;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public GetTemplateRequest.Builder clearProjectId()
       Required. The ID of the Cloud Platform project that the job belongs to.
       
      string project_id = 1;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public GetTemplateRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the Cloud Platform project that the job belongs to.
       
      string project_id = 1;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • hasGcsPath

      public boolean hasGcsPath()
       Required. A Cloud Storage path to the template from which to
       create the job.
       Must be valid Cloud Storage URL, beginning with 'gs://'.
       
      string gcs_path = 2;
      Specified by:
      hasGcsPath in interface GetTemplateRequestOrBuilder
      Returns:
      Whether the gcsPath field is set.
    • getGcsPath

      public String getGcsPath()
       Required. A Cloud Storage path to the template from which to
       create the job.
       Must be valid Cloud Storage URL, beginning with 'gs://'.
       
      string gcs_path = 2;
      Specified by:
      getGcsPath in interface GetTemplateRequestOrBuilder
      Returns:
      The gcsPath.
    • getGcsPathBytes

      public com.google.protobuf.ByteString getGcsPathBytes()
       Required. A Cloud Storage path to the template from which to
       create the job.
       Must be valid Cloud Storage URL, beginning with 'gs://'.
       
      string gcs_path = 2;
      Specified by:
      getGcsPathBytes in interface GetTemplateRequestOrBuilder
      Returns:
      The bytes for gcsPath.
    • setGcsPath

      public GetTemplateRequest.Builder setGcsPath(String value)
       Required. A Cloud Storage path to the template from which to
       create the job.
       Must be valid Cloud Storage URL, beginning with 'gs://'.
       
      string gcs_path = 2;
      Parameters:
      value - The gcsPath to set.
      Returns:
      This builder for chaining.
    • clearGcsPath

      public GetTemplateRequest.Builder clearGcsPath()
       Required. A Cloud Storage path to the template from which to
       create the job.
       Must be valid Cloud Storage URL, beginning with 'gs://'.
       
      string gcs_path = 2;
      Returns:
      This builder for chaining.
    • setGcsPathBytes

      public GetTemplateRequest.Builder setGcsPathBytes(com.google.protobuf.ByteString value)
       Required. A Cloud Storage path to the template from which to
       create the job.
       Must be valid Cloud Storage URL, beginning with 'gs://'.
       
      string gcs_path = 2;
      Parameters:
      value - The bytes for gcsPath to set.
      Returns:
      This builder for chaining.
    • getViewValue

      public int getViewValue()
       The view to retrieve. Defaults to METADATA_ONLY.
       
      .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;
      Specified by:
      getViewValue in interface GetTemplateRequestOrBuilder
      Returns:
      The enum numeric value on the wire for view.
    • setViewValue

      public GetTemplateRequest.Builder setViewValue(int value)
       The view to retrieve. Defaults to METADATA_ONLY.
       
      .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;
      Parameters:
      value - The enum numeric value on the wire for view to set.
      Returns:
      This builder for chaining.
    • getView

       The view to retrieve. Defaults to METADATA_ONLY.
       
      .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;
      Specified by:
      getView in interface GetTemplateRequestOrBuilder
      Returns:
      The view.
    • setView

       The view to retrieve. Defaults to METADATA_ONLY.
       
      .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;
      Parameters:
      value - The view to set.
      Returns:
      This builder for chaining.
    • clearView

      public GetTemplateRequest.Builder clearView()
       The view to retrieve. Defaults to METADATA_ONLY.
       
      .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;
      Returns:
      This builder for chaining.
    • getLocation

      public String getLocation()
       The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request.
       
      string location = 4;
      Specified by:
      getLocation in interface GetTemplateRequestOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request.
       
      string location = 4;
      Specified by:
      getLocationBytes in interface GetTemplateRequestOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public GetTemplateRequest.Builder setLocation(String value)
       The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request.
       
      string location = 4;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public GetTemplateRequest.Builder clearLocation()
       The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request.
       
      string location = 4;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public GetTemplateRequest.Builder setLocationBytes(com.google.protobuf.ByteString value)
       The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request.
       
      string location = 4;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.