Class LaunchFlexTemplateRequest.Builder

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

public static final class LaunchFlexTemplateRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<LaunchFlexTemplateRequest.Builder> implements LaunchFlexTemplateRequestOrBuilder
 A request to launch a Cloud Dataflow job from a FlexTemplate.
 
Protobuf type google.dataflow.v1beta3.LaunchFlexTemplateRequest
  • 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<LaunchFlexTemplateRequest.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<LaunchFlexTemplateRequest.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<LaunchFlexTemplateRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public LaunchFlexTemplateRequest.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<LaunchFlexTemplateRequest.Builder>
      Throws:
      IOException
    • 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 LaunchFlexTemplateRequestOrBuilder
      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 LaunchFlexTemplateRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public LaunchFlexTemplateRequest.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 LaunchFlexTemplateRequest.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 LaunchFlexTemplateRequest.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.
    • hasLaunchParameter

      public boolean hasLaunchParameter()
       Required. Parameter to launch a job form Flex Template.
       
      .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2;
      Specified by:
      hasLaunchParameter in interface LaunchFlexTemplateRequestOrBuilder
      Returns:
      Whether the launchParameter field is set.
    • getLaunchParameter

      public LaunchFlexTemplateParameter getLaunchParameter()
       Required. Parameter to launch a job form Flex Template.
       
      .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2;
      Specified by:
      getLaunchParameter in interface LaunchFlexTemplateRequestOrBuilder
      Returns:
      The launchParameter.
    • setLaunchParameter

       Required. Parameter to launch a job form Flex Template.
       
      .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2;
    • setLaunchParameter

      public LaunchFlexTemplateRequest.Builder setLaunchParameter(LaunchFlexTemplateParameter.Builder builderForValue)
       Required. Parameter to launch a job form Flex Template.
       
      .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2;
    • mergeLaunchParameter

       Required. Parameter to launch a job form Flex Template.
       
      .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2;
    • clearLaunchParameter

      public LaunchFlexTemplateRequest.Builder clearLaunchParameter()
       Required. Parameter to launch a job form Flex Template.
       
      .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2;
    • getLaunchParameterBuilder

      public LaunchFlexTemplateParameter.Builder getLaunchParameterBuilder()
       Required. Parameter to launch a job form Flex Template.
       
      .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2;
    • getLaunchParameterOrBuilder

      public LaunchFlexTemplateParameterOrBuilder getLaunchParameterOrBuilder()
       Required. Parameter to launch a job form Flex Template.
       
      .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2;
      Specified by:
      getLaunchParameterOrBuilder in interface LaunchFlexTemplateRequestOrBuilder
    • getLocation

      public String getLocation()
       Required. The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request. E.g., us-central1, us-west1.
       
      string location = 3;
      Specified by:
      getLocation in interface LaunchFlexTemplateRequestOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Required. The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request. E.g., us-central1, us-west1.
       
      string location = 3;
      Specified by:
      getLocationBytes in interface LaunchFlexTemplateRequestOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public LaunchFlexTemplateRequest.Builder setLocation(String value)
       Required. The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request. E.g., us-central1, us-west1.
       
      string location = 3;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public LaunchFlexTemplateRequest.Builder clearLocation()
       Required. The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request. E.g., us-central1, us-west1.
       
      string location = 3;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public LaunchFlexTemplateRequest.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Required. The [regional endpoint]
       (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
       which to direct the request. E.g., us-central1, us-west1.
       
      string location = 3;
      Parameters:
      value - The bytes for location 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 = 4;
      Specified by:
      getValidateOnly in interface LaunchFlexTemplateRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

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

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