Class SdkHarnessContainerImage.Builder

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

public static final class SdkHarnessContainerImage.Builder extends com.google.protobuf.GeneratedMessage.Builder<SdkHarnessContainerImage.Builder> implements SdkHarnessContainerImageOrBuilder
 Defines an SDK harness container for executing Dataflow pipelines.
 
Protobuf type google.dataflow.v1beta3.SdkHarnessContainerImage
  • 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<SdkHarnessContainerImage.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<SdkHarnessContainerImage.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<SdkHarnessContainerImage.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SdkHarnessContainerImage.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<SdkHarnessContainerImage.Builder>
      Throws:
      IOException
    • getContainerImage

      public String getContainerImage()
       A docker container image that resides in Google Container Registry.
       
      string container_image = 1;
      Specified by:
      getContainerImage in interface SdkHarnessContainerImageOrBuilder
      Returns:
      The containerImage.
    • getContainerImageBytes

      public com.google.protobuf.ByteString getContainerImageBytes()
       A docker container image that resides in Google Container Registry.
       
      string container_image = 1;
      Specified by:
      getContainerImageBytes in interface SdkHarnessContainerImageOrBuilder
      Returns:
      The bytes for containerImage.
    • setContainerImage

      public SdkHarnessContainerImage.Builder setContainerImage(String value)
       A docker container image that resides in Google Container Registry.
       
      string container_image = 1;
      Parameters:
      value - The containerImage to set.
      Returns:
      This builder for chaining.
    • clearContainerImage

      public SdkHarnessContainerImage.Builder clearContainerImage()
       A docker container image that resides in Google Container Registry.
       
      string container_image = 1;
      Returns:
      This builder for chaining.
    • setContainerImageBytes

      public SdkHarnessContainerImage.Builder setContainerImageBytes(com.google.protobuf.ByteString value)
       A docker container image that resides in Google Container Registry.
       
      string container_image = 1;
      Parameters:
      value - The bytes for containerImage to set.
      Returns:
      This builder for chaining.
    • getUseSingleCorePerContainer

      public boolean getUseSingleCorePerContainer()
       If true, recommends the Dataflow service to use only one core per SDK
       container instance with this image. If false (or unset) recommends using
       more than one core per SDK container instance with this image for
       efficiency. Note that Dataflow service may choose to override this property
       if needed.
       
      bool use_single_core_per_container = 2;
      Specified by:
      getUseSingleCorePerContainer in interface SdkHarnessContainerImageOrBuilder
      Returns:
      The useSingleCorePerContainer.
    • setUseSingleCorePerContainer

      public SdkHarnessContainerImage.Builder setUseSingleCorePerContainer(boolean value)
       If true, recommends the Dataflow service to use only one core per SDK
       container instance with this image. If false (or unset) recommends using
       more than one core per SDK container instance with this image for
       efficiency. Note that Dataflow service may choose to override this property
       if needed.
       
      bool use_single_core_per_container = 2;
      Parameters:
      value - The useSingleCorePerContainer to set.
      Returns:
      This builder for chaining.
    • clearUseSingleCorePerContainer

      public SdkHarnessContainerImage.Builder clearUseSingleCorePerContainer()
       If true, recommends the Dataflow service to use only one core per SDK
       container instance with this image. If false (or unset) recommends using
       more than one core per SDK container instance with this image for
       efficiency. Note that Dataflow service may choose to override this property
       if needed.
       
      bool use_single_core_per_container = 2;
      Returns:
      This builder for chaining.
    • getEnvironmentId

      public String getEnvironmentId()
       Environment ID for the Beam runner API proto Environment that corresponds
       to the current SDK Harness.
       
      string environment_id = 3;
      Specified by:
      getEnvironmentId in interface SdkHarnessContainerImageOrBuilder
      Returns:
      The environmentId.
    • getEnvironmentIdBytes

      public com.google.protobuf.ByteString getEnvironmentIdBytes()
       Environment ID for the Beam runner API proto Environment that corresponds
       to the current SDK Harness.
       
      string environment_id = 3;
      Specified by:
      getEnvironmentIdBytes in interface SdkHarnessContainerImageOrBuilder
      Returns:
      The bytes for environmentId.
    • setEnvironmentId

      public SdkHarnessContainerImage.Builder setEnvironmentId(String value)
       Environment ID for the Beam runner API proto Environment that corresponds
       to the current SDK Harness.
       
      string environment_id = 3;
      Parameters:
      value - The environmentId to set.
      Returns:
      This builder for chaining.
    • clearEnvironmentId

      public SdkHarnessContainerImage.Builder clearEnvironmentId()
       Environment ID for the Beam runner API proto Environment that corresponds
       to the current SDK Harness.
       
      string environment_id = 3;
      Returns:
      This builder for chaining.
    • setEnvironmentIdBytes

      public SdkHarnessContainerImage.Builder setEnvironmentIdBytes(com.google.protobuf.ByteString value)
       Environment ID for the Beam runner API proto Environment that corresponds
       to the current SDK Harness.
       
      string environment_id = 3;
      Parameters:
      value - The bytes for environmentId to set.
      Returns:
      This builder for chaining.
    • getCapabilitiesList

      public com.google.protobuf.ProtocolStringList getCapabilitiesList()
       The set of capabilities enumerated in the above Environment proto. See also
       [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
       
      repeated string capabilities = 4;
      Specified by:
      getCapabilitiesList in interface SdkHarnessContainerImageOrBuilder
      Returns:
      A list containing the capabilities.
    • getCapabilitiesCount

      public int getCapabilitiesCount()
       The set of capabilities enumerated in the above Environment proto. See also
       [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
       
      repeated string capabilities = 4;
      Specified by:
      getCapabilitiesCount in interface SdkHarnessContainerImageOrBuilder
      Returns:
      The count of capabilities.
    • getCapabilities

      public String getCapabilities(int index)
       The set of capabilities enumerated in the above Environment proto. See also
       [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
       
      repeated string capabilities = 4;
      Specified by:
      getCapabilities in interface SdkHarnessContainerImageOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The capabilities at the given index.
    • getCapabilitiesBytes

      public com.google.protobuf.ByteString getCapabilitiesBytes(int index)
       The set of capabilities enumerated in the above Environment proto. See also
       [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
       
      repeated string capabilities = 4;
      Specified by:
      getCapabilitiesBytes in interface SdkHarnessContainerImageOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the capabilities at the given index.
    • setCapabilities

      public SdkHarnessContainerImage.Builder setCapabilities(int index, String value)
       The set of capabilities enumerated in the above Environment proto. See also
       [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
       
      repeated string capabilities = 4;
      Parameters:
      index - The index to set the value at.
      value - The capabilities to set.
      Returns:
      This builder for chaining.
    • addCapabilities

      public SdkHarnessContainerImage.Builder addCapabilities(String value)
       The set of capabilities enumerated in the above Environment proto. See also
       [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
       
      repeated string capabilities = 4;
      Parameters:
      value - The capabilities to add.
      Returns:
      This builder for chaining.
    • addAllCapabilities

      public SdkHarnessContainerImage.Builder addAllCapabilities(Iterable<String> values)
       The set of capabilities enumerated in the above Environment proto. See also
       [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
       
      repeated string capabilities = 4;
      Parameters:
      values - The capabilities to add.
      Returns:
      This builder for chaining.
    • clearCapabilities

      public SdkHarnessContainerImage.Builder clearCapabilities()
       The set of capabilities enumerated in the above Environment proto. See also
       [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
       
      repeated string capabilities = 4;
      Returns:
      This builder for chaining.
    • addCapabilitiesBytes

      public SdkHarnessContainerImage.Builder addCapabilitiesBytes(com.google.protobuf.ByteString value)
       The set of capabilities enumerated in the above Environment proto. See also
       [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
       
      repeated string capabilities = 4;
      Parameters:
      value - The bytes of the capabilities to add.
      Returns:
      This builder for chaining.