Package com.google.dataflow.v1beta3
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 Summary
Modifier and TypeMethodDescriptionaddAllCapabilities(Iterable<String> values) The set of capabilities enumerated in the above Environment proto.addCapabilities(String value) The set of capabilities enumerated in the above Environment proto.addCapabilitiesBytes(com.google.protobuf.ByteString value) The set of capabilities enumerated in the above Environment proto.build()clear()The set of capabilities enumerated in the above Environment proto.A docker container image that resides in Google Container Registry.Environment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness.If true, recommends the Dataflow service to use only one core per SDK container instance with this image.getCapabilities(int index) The set of capabilities enumerated in the above Environment proto.com.google.protobuf.ByteStringgetCapabilitiesBytes(int index) The set of capabilities enumerated in the above Environment proto.intThe set of capabilities enumerated in the above Environment proto.com.google.protobuf.ProtocolStringListThe set of capabilities enumerated in the above Environment proto.A docker container image that resides in Google Container Registry.com.google.protobuf.ByteStringA docker container image that resides in Google Container Registry.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEnvironment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness.com.google.protobuf.ByteStringEnvironment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness.booleanIf true, recommends the Dataflow service to use only one core per SDK container instance with this image.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCapabilities(int index, String value) The set of capabilities enumerated in the above Environment proto.setContainerImage(String value) A docker container image that resides in Google Container Registry.setContainerImageBytes(com.google.protobuf.ByteString value) A docker container image that resides in Google Container Registry.setEnvironmentId(String value) Environment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness.setEnvironmentIdBytes(com.google.protobuf.ByteString value) Environment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness.setUseSingleCorePerContainer(boolean value) If true, recommends the Dataflow service to use only one core per SDK container instance with this image.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SdkHarnessContainerImage.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SdkHarnessContainerImage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SdkHarnessContainerImage.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SdkHarnessContainerImage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SdkHarnessContainerImage.Builder>- Throws:
IOException
-
getContainerImage
A docker container image that resides in Google Container Registry.
string container_image = 1;- Specified by:
getContainerImagein interfaceSdkHarnessContainerImageOrBuilder- 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:
getContainerImageBytesin interfaceSdkHarnessContainerImageOrBuilder- Returns:
- The bytes for containerImage.
-
setContainerImage
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
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:
getUseSingleCorePerContainerin interfaceSdkHarnessContainerImageOrBuilder- Returns:
- The useSingleCorePerContainer.
-
setUseSingleCorePerContainer
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
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
Environment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness.
string environment_id = 3;- Specified by:
getEnvironmentIdin interfaceSdkHarnessContainerImageOrBuilder- 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:
getEnvironmentIdBytesin interfaceSdkHarnessContainerImageOrBuilder- Returns:
- The bytes for environmentId.
-
setEnvironmentId
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
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
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:
getCapabilitiesListin interfaceSdkHarnessContainerImageOrBuilder- 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:
getCapabilitiesCountin interfaceSdkHarnessContainerImageOrBuilder- Returns:
- The count of capabilities.
-
getCapabilities
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:
getCapabilitiesin interfaceSdkHarnessContainerImageOrBuilder- 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:
getCapabilitiesBytesin interfaceSdkHarnessContainerImageOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the capabilities at the given index.
-
setCapabilities
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
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
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
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
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.
-