Package com.google.dataflow.v1beta3
Class LaunchTemplateParameters.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LaunchTemplateParameters.Builder>
com.google.dataflow.v1beta3.LaunchTemplateParameters.Builder
- All Implemented Interfaces:
LaunchTemplateParametersOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LaunchTemplateParameters
public static final class LaunchTemplateParameters.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LaunchTemplateParameters.Builder>
implements LaunchTemplateParametersOrBuilder
Parameters to provide to the template being launched. Note that the [metadata in the pipeline code] (https://cloud.google.com/dataflow/docs/guides/templates/creating-templates#metadata) determines which runtime parameters are valid.Protobuf type
google.dataflow.v1beta3.LaunchTemplateParameters-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The runtime environment for the job.Required.If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.booleancontainsParameters(String key) The runtime parameters to pass to the job.booleanOnly applicable when updating a pipeline.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe runtime environment for the job.The runtime environment for the job.The runtime environment for the job.Required.com.google.protobuf.ByteStringRequired.Deprecated.Deprecated.Deprecated.intThe runtime parameters to pass to the job.The runtime parameters to pass to the job.getParametersOrDefault(String key, String defaultValue) The runtime parameters to pass to the job.The runtime parameters to pass to the job.Deprecated.intOnly applicable when updating a pipeline.Only applicable when updating a pipeline.getTransformNameMappingOrDefault(String key, String defaultValue) Only applicable when updating a pipeline.Only applicable when updating a pipeline.booleanIf set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.booleanThe runtime environment for the job.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanThe runtime environment for the job.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllParameters(Map<String, String> values) The runtime parameters to pass to the job.putAllTransformNameMapping(Map<String, String> values) Only applicable when updating a pipeline.putParameters(String key, String value) The runtime parameters to pass to the job.putTransformNameMapping(String key, String value) Only applicable when updating a pipeline.removeParameters(String key) The runtime parameters to pass to the job.Only applicable when updating a pipeline.setEnvironment(RuntimeEnvironment value) The runtime environment for the job.setEnvironment(RuntimeEnvironment.Builder builderForValue) The runtime environment for the job.setJobName(String value) Required.setJobNameBytes(com.google.protobuf.ByteString value) Required.setUpdate(boolean value) If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<LaunchTemplateParameters.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<LaunchTemplateParameters.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LaunchTemplateParameters.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<LaunchTemplateParameters.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<LaunchTemplateParameters.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<LaunchTemplateParameters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LaunchTemplateParameters.Builder>
-
mergeFrom
public LaunchTemplateParameters.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<LaunchTemplateParameters.Builder>- Throws:
IOException
-
getJobName
Required. The job name to use for the created job. The name must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`string job_name = 1;- Specified by:
getJobNamein interfaceLaunchTemplateParametersOrBuilder- Returns:
- The jobName.
-
getJobNameBytes
public com.google.protobuf.ByteString getJobNameBytes()Required. The job name to use for the created job. The name must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`string job_name = 1;- Specified by:
getJobNameBytesin interfaceLaunchTemplateParametersOrBuilder- Returns:
- The bytes for jobName.
-
setJobName
Required. The job name to use for the created job. The name must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`string job_name = 1;- Parameters:
value- The jobName to set.- Returns:
- This builder for chaining.
-
clearJobName
Required. The job name to use for the created job. The name must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`string job_name = 1;- Returns:
- This builder for chaining.
-
setJobNameBytes
Required. The job name to use for the created job. The name must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`string job_name = 1;- Parameters:
value- The bytes for jobName to set.- Returns:
- This builder for chaining.
-
getParametersCount
public int getParametersCount()Description copied from interface:LaunchTemplateParametersOrBuilderThe runtime parameters to pass to the job.
map<string, string> parameters = 2;- Specified by:
getParametersCountin interfaceLaunchTemplateParametersOrBuilder
-
containsParameters
The runtime parameters to pass to the job.
map<string, string> parameters = 2;- Specified by:
containsParametersin interfaceLaunchTemplateParametersOrBuilder
-
getParameters
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceLaunchTemplateParametersOrBuilder
-
getParametersMap
The runtime parameters to pass to the job.
map<string, string> parameters = 2;- Specified by:
getParametersMapin interfaceLaunchTemplateParametersOrBuilder
-
getParametersOrDefault
The runtime parameters to pass to the job.
map<string, string> parameters = 2;- Specified by:
getParametersOrDefaultin interfaceLaunchTemplateParametersOrBuilder
-
getParametersOrThrow
The runtime parameters to pass to the job.
map<string, string> parameters = 2;- Specified by:
getParametersOrThrowin interfaceLaunchTemplateParametersOrBuilder
-
clearParameters
-
removeParameters
The runtime parameters to pass to the job.
map<string, string> parameters = 2; -
getMutableParameters
Deprecated.Use alternate mutation accessors instead. -
putParameters
The runtime parameters to pass to the job.
map<string, string> parameters = 2; -
putAllParameters
The runtime parameters to pass to the job.
map<string, string> parameters = 2; -
hasEnvironment
public boolean hasEnvironment()The runtime environment for the job.
.google.dataflow.v1beta3.RuntimeEnvironment environment = 3;- Specified by:
hasEnvironmentin interfaceLaunchTemplateParametersOrBuilder- Returns:
- Whether the environment field is set.
-
getEnvironment
The runtime environment for the job.
.google.dataflow.v1beta3.RuntimeEnvironment environment = 3;- Specified by:
getEnvironmentin interfaceLaunchTemplateParametersOrBuilder- Returns:
- The environment.
-
setEnvironment
The runtime environment for the job.
.google.dataflow.v1beta3.RuntimeEnvironment environment = 3; -
setEnvironment
The runtime environment for the job.
.google.dataflow.v1beta3.RuntimeEnvironment environment = 3; -
mergeEnvironment
The runtime environment for the job.
.google.dataflow.v1beta3.RuntimeEnvironment environment = 3; -
clearEnvironment
The runtime environment for the job.
.google.dataflow.v1beta3.RuntimeEnvironment environment = 3; -
getEnvironmentBuilder
The runtime environment for the job.
.google.dataflow.v1beta3.RuntimeEnvironment environment = 3; -
getEnvironmentOrBuilder
The runtime environment for the job.
.google.dataflow.v1beta3.RuntimeEnvironment environment = 3;- Specified by:
getEnvironmentOrBuilderin interfaceLaunchTemplateParametersOrBuilder
-
getUpdate
public boolean getUpdate()If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
bool update = 4;- Specified by:
getUpdatein interfaceLaunchTemplateParametersOrBuilder- Returns:
- The update.
-
setUpdate
If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
bool update = 4;- Parameters:
value- The update to set.- Returns:
- This builder for chaining.
-
clearUpdate
If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
bool update = 4;- Returns:
- This builder for chaining.
-
getTransformNameMappingCount
public int getTransformNameMappingCount()Description copied from interface:LaunchTemplateParametersOrBuilderOnly applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
map<string, string> transform_name_mapping = 5;- Specified by:
getTransformNameMappingCountin interfaceLaunchTemplateParametersOrBuilder
-
containsTransformNameMapping
Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
map<string, string> transform_name_mapping = 5;- Specified by:
containsTransformNameMappingin interfaceLaunchTemplateParametersOrBuilder
-
getTransformNameMapping
Deprecated.UsegetTransformNameMappingMap()instead.- Specified by:
getTransformNameMappingin interfaceLaunchTemplateParametersOrBuilder
-
getTransformNameMappingMap
Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
map<string, string> transform_name_mapping = 5;- Specified by:
getTransformNameMappingMapin interfaceLaunchTemplateParametersOrBuilder
-
getTransformNameMappingOrDefault
Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
map<string, string> transform_name_mapping = 5;- Specified by:
getTransformNameMappingOrDefaultin interfaceLaunchTemplateParametersOrBuilder
-
getTransformNameMappingOrThrow
Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
map<string, string> transform_name_mapping = 5;- Specified by:
getTransformNameMappingOrThrowin interfaceLaunchTemplateParametersOrBuilder
-
clearTransformNameMapping
-
removeTransformNameMapping
Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
map<string, string> transform_name_mapping = 5; -
getMutableTransformNameMapping
Deprecated.Use alternate mutation accessors instead. -
putTransformNameMapping
Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
map<string, string> transform_name_mapping = 5; -
putAllTransformNameMapping
Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
map<string, string> transform_name_mapping = 5;
-