Class CreateJobFromTemplateRequest.Builder

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

public static final class CreateJobFromTemplateRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateJobFromTemplateRequest.Builder> implements CreateJobFromTemplateRequestOrBuilder
 A request to create a Cloud Dataflow job from a template.
 
Protobuf type google.dataflow.v1beta3.CreateJobFromTemplateRequest
  • 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<CreateJobFromTemplateRequest.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public CreateJobFromTemplateRequest 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 CreateJobFromTemplateRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      Specified by:
      getTemplateCase in interface CreateJobFromTemplateRequestOrBuilder
    • clearTemplate

      public CreateJobFromTemplateRequest.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 CreateJobFromTemplateRequestOrBuilder
      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 CreateJobFromTemplateRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public CreateJobFromTemplateRequest.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 CreateJobFromTemplateRequest.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 CreateJobFromTemplateRequest.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.
    • getJobName

      public String getJobName()
       Required. The job name to use for the created job.
       
      string job_name = 4;
      Specified by:
      getJobName in interface CreateJobFromTemplateRequestOrBuilder
      Returns:
      The jobName.
    • getJobNameBytes

      public com.google.protobuf.ByteString getJobNameBytes()
       Required. The job name to use for the created job.
       
      string job_name = 4;
      Specified by:
      getJobNameBytes in interface CreateJobFromTemplateRequestOrBuilder
      Returns:
      The bytes for jobName.
    • setJobName

      public CreateJobFromTemplateRequest.Builder setJobName(String value)
       Required. The job name to use for the created job.
       
      string job_name = 4;
      Parameters:
      value - The jobName to set.
      Returns:
      This builder for chaining.
    • clearJobName

      public CreateJobFromTemplateRequest.Builder clearJobName()
       Required. The job name to use for the created job.
       
      string job_name = 4;
      Returns:
      This builder for chaining.
    • setJobNameBytes

      public CreateJobFromTemplateRequest.Builder setJobNameBytes(com.google.protobuf.ByteString value)
       Required. The job name to use for the created job.
       
      string job_name = 4;
      Parameters:
      value - The bytes for jobName 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 a valid Cloud Storage URL, beginning with `gs://`.
       
      string gcs_path = 2;
      Specified by:
      hasGcsPath in interface CreateJobFromTemplateRequestOrBuilder
      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 a valid Cloud Storage URL, beginning with `gs://`.
       
      string gcs_path = 2;
      Specified by:
      getGcsPath in interface CreateJobFromTemplateRequestOrBuilder
      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 a valid Cloud Storage URL, beginning with `gs://`.
       
      string gcs_path = 2;
      Specified by:
      getGcsPathBytes in interface CreateJobFromTemplateRequestOrBuilder
      Returns:
      The bytes for gcsPath.
    • setGcsPath

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

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

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

      public int getParametersCount()
      Description copied from interface: CreateJobFromTemplateRequestOrBuilder
       The runtime parameters to pass to the job.
       
      map<string, string> parameters = 3;
      Specified by:
      getParametersCount in interface CreateJobFromTemplateRequestOrBuilder
    • containsParameters

      public boolean containsParameters(String key)
       The runtime parameters to pass to the job.
       
      map<string, string> parameters = 3;
      Specified by:
      containsParameters in interface CreateJobFromTemplateRequestOrBuilder
    • getParameters

      @Deprecated public Map<String,String> getParameters()
      Deprecated.
      Use getParametersMap() instead.
      Specified by:
      getParameters in interface CreateJobFromTemplateRequestOrBuilder
    • getParametersMap

      public Map<String,String> getParametersMap()
       The runtime parameters to pass to the job.
       
      map<string, string> parameters = 3;
      Specified by:
      getParametersMap in interface CreateJobFromTemplateRequestOrBuilder
    • getParametersOrDefault

      public String getParametersOrDefault(String key, String defaultValue)
       The runtime parameters to pass to the job.
       
      map<string, string> parameters = 3;
      Specified by:
      getParametersOrDefault in interface CreateJobFromTemplateRequestOrBuilder
    • getParametersOrThrow

      public String getParametersOrThrow(String key)
       The runtime parameters to pass to the job.
       
      map<string, string> parameters = 3;
      Specified by:
      getParametersOrThrow in interface CreateJobFromTemplateRequestOrBuilder
    • clearParameters

      public CreateJobFromTemplateRequest.Builder clearParameters()
    • removeParameters

      public CreateJobFromTemplateRequest.Builder removeParameters(String key)
       The runtime parameters to pass to the job.
       
      map<string, string> parameters = 3;
    • getMutableParameters

      @Deprecated public Map<String,String> getMutableParameters()
      Deprecated.
      Use alternate mutation accessors instead.
    • putParameters

      public CreateJobFromTemplateRequest.Builder putParameters(String key, String value)
       The runtime parameters to pass to the job.
       
      map<string, string> parameters = 3;
    • putAllParameters

      public CreateJobFromTemplateRequest.Builder putAllParameters(Map<String,String> values)
       The runtime parameters to pass to the job.
       
      map<string, string> parameters = 3;
    • hasEnvironment

      public boolean hasEnvironment()
       The runtime environment for the job.
       
      .google.dataflow.v1beta3.RuntimeEnvironment environment = 5;
      Specified by:
      hasEnvironment in interface CreateJobFromTemplateRequestOrBuilder
      Returns:
      Whether the environment field is set.
    • getEnvironment

      public RuntimeEnvironment getEnvironment()
       The runtime environment for the job.
       
      .google.dataflow.v1beta3.RuntimeEnvironment environment = 5;
      Specified by:
      getEnvironment in interface CreateJobFromTemplateRequestOrBuilder
      Returns:
      The environment.
    • setEnvironment

       The runtime environment for the job.
       
      .google.dataflow.v1beta3.RuntimeEnvironment environment = 5;
    • setEnvironment

      public CreateJobFromTemplateRequest.Builder setEnvironment(RuntimeEnvironment.Builder builderForValue)
       The runtime environment for the job.
       
      .google.dataflow.v1beta3.RuntimeEnvironment environment = 5;
    • mergeEnvironment

       The runtime environment for the job.
       
      .google.dataflow.v1beta3.RuntimeEnvironment environment = 5;
    • clearEnvironment

      public CreateJobFromTemplateRequest.Builder clearEnvironment()
       The runtime environment for the job.
       
      .google.dataflow.v1beta3.RuntimeEnvironment environment = 5;
    • getEnvironmentBuilder

      public RuntimeEnvironment.Builder getEnvironmentBuilder()
       The runtime environment for the job.
       
      .google.dataflow.v1beta3.RuntimeEnvironment environment = 5;
    • getEnvironmentOrBuilder

      public RuntimeEnvironmentOrBuilder getEnvironmentOrBuilder()
       The runtime environment for the job.
       
      .google.dataflow.v1beta3.RuntimeEnvironment environment = 5;
      Specified by:
      getEnvironmentOrBuilder in interface CreateJobFromTemplateRequestOrBuilder
    • getLocation

      public String getLocation()
       The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request.
       
      string location = 6;
      Specified by:
      getLocation in interface CreateJobFromTemplateRequestOrBuilder
      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 = 6;
      Specified by:
      getLocationBytes in interface CreateJobFromTemplateRequestOrBuilder
      Returns:
      The bytes for location.
    • setLocation

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

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

      public CreateJobFromTemplateRequest.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 = 6;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.