Class SdkHarnessContainerImage.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public SdkHarnessContainerImage.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SdkHarnessContainerImage.Builder>
      • addRepeatedField

        public SdkHarnessContainerImage.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SdkHarnessContainerImage.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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
         https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/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
         https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/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
         https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/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
         https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/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
         https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/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
         https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/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
         https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/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
         https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/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
         https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/beam_runner_api.proto
         
        repeated string capabilities = 4;
        Parameters:
        value - The bytes of the capabilities to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SdkHarnessContainerImage.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SdkHarnessContainerImage.Builder>
      • mergeUnknownFields

        public final SdkHarnessContainerImage.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SdkHarnessContainerImage.Builder>