Class LaunchTemplateRequest.Builder

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

public static final class LaunchTemplateRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<LaunchTemplateRequest.Builder> implements LaunchTemplateRequestOrBuilder
 A request to launch a template.
 
Protobuf type google.dataflow.v1beta3.LaunchTemplateRequest
  • 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<LaunchTemplateRequest.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<LaunchTemplateRequest.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<LaunchTemplateRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public LaunchTemplateRequest.TemplateCase getTemplateCase()
      Specified by:
      getTemplateCase in interface LaunchTemplateRequestOrBuilder
    • clearTemplate

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

      public LaunchTemplateRequest.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 LaunchTemplateRequest.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 LaunchTemplateRequest.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.
    • getValidateOnly

      public boolean getValidateOnly()
       If true, the request is validated but not actually executed.
       Defaults to false.
       
      bool validate_only = 2;
      Specified by:
      getValidateOnly in interface LaunchTemplateRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public LaunchTemplateRequest.Builder setValidateOnly(boolean value)
       If true, the request is validated but not actually executed.
       Defaults to false.
       
      bool validate_only = 2;
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public LaunchTemplateRequest.Builder clearValidateOnly()
       If true, the request is validated but not actually executed.
       Defaults to false.
       
      bool validate_only = 2;
      Returns:
      This builder for chaining.
    • hasGcsPath

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

      public String getGcsPath()
       A Cloud Storage path to the template to use to create
       the job.
       Must be valid Cloud Storage URL, beginning with `gs://`.
       
      string gcs_path = 3;
      Specified by:
      getGcsPath in interface LaunchTemplateRequestOrBuilder
      Returns:
      The gcsPath.
    • getGcsPathBytes

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

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

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

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

      public boolean hasDynamicTemplate()
       Parameters for launching a dynamic template.
       
      .google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;
      Specified by:
      hasDynamicTemplate in interface LaunchTemplateRequestOrBuilder
      Returns:
      Whether the dynamicTemplate field is set.
    • getDynamicTemplate

      public DynamicTemplateLaunchParams getDynamicTemplate()
       Parameters for launching a dynamic template.
       
      .google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;
      Specified by:
      getDynamicTemplate in interface LaunchTemplateRequestOrBuilder
      Returns:
      The dynamicTemplate.
    • setDynamicTemplate

       Parameters for launching a dynamic template.
       
      .google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;
    • setDynamicTemplate

      public LaunchTemplateRequest.Builder setDynamicTemplate(DynamicTemplateLaunchParams.Builder builderForValue)
       Parameters for launching a dynamic template.
       
      .google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;
    • mergeDynamicTemplate

      public LaunchTemplateRequest.Builder mergeDynamicTemplate(DynamicTemplateLaunchParams value)
       Parameters for launching a dynamic template.
       
      .google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;
    • clearDynamicTemplate

      public LaunchTemplateRequest.Builder clearDynamicTemplate()
       Parameters for launching a dynamic template.
       
      .google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;
    • getDynamicTemplateBuilder

      public DynamicTemplateLaunchParams.Builder getDynamicTemplateBuilder()
       Parameters for launching a dynamic template.
       
      .google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;
    • getDynamicTemplateOrBuilder

      public DynamicTemplateLaunchParamsOrBuilder getDynamicTemplateOrBuilder()
       Parameters for launching a dynamic template.
       
      .google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;
      Specified by:
      getDynamicTemplateOrBuilder in interface LaunchTemplateRequestOrBuilder
    • hasLaunchParameters

      public boolean hasLaunchParameters()
       The parameters of the template to launch. Part of the
       body of the POST request.
       
      .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;
      Specified by:
      hasLaunchParameters in interface LaunchTemplateRequestOrBuilder
      Returns:
      Whether the launchParameters field is set.
    • getLaunchParameters

      public LaunchTemplateParameters getLaunchParameters()
       The parameters of the template to launch. Part of the
       body of the POST request.
       
      .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;
      Specified by:
      getLaunchParameters in interface LaunchTemplateRequestOrBuilder
      Returns:
      The launchParameters.
    • setLaunchParameters

      public LaunchTemplateRequest.Builder setLaunchParameters(LaunchTemplateParameters value)
       The parameters of the template to launch. Part of the
       body of the POST request.
       
      .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;
    • setLaunchParameters

      public LaunchTemplateRequest.Builder setLaunchParameters(LaunchTemplateParameters.Builder builderForValue)
       The parameters of the template to launch. Part of the
       body of the POST request.
       
      .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;
    • mergeLaunchParameters

      public LaunchTemplateRequest.Builder mergeLaunchParameters(LaunchTemplateParameters value)
       The parameters of the template to launch. Part of the
       body of the POST request.
       
      .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;
    • clearLaunchParameters

      public LaunchTemplateRequest.Builder clearLaunchParameters()
       The parameters of the template to launch. Part of the
       body of the POST request.
       
      .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;
    • getLaunchParametersBuilder

      public LaunchTemplateParameters.Builder getLaunchParametersBuilder()
       The parameters of the template to launch. Part of the
       body of the POST request.
       
      .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;
    • getLaunchParametersOrBuilder

      public LaunchTemplateParametersOrBuilder getLaunchParametersOrBuilder()
       The parameters of the template to launch. Part of the
       body of the POST request.
       
      .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;
      Specified by:
      getLaunchParametersOrBuilder in interface LaunchTemplateRequestOrBuilder
    • getLocation

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

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

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

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