public final class TemplateParameter extends com.google.protobuf.GeneratedMessageV3 implements TemplateParameterOrBuilder
A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)Protobuf type
google.cloud.dataproc.v1.TemplateParameter| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateParameter.Builder
A configurable parameter that replaces one or more fields in the template.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
FIELDS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
VALIDATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static TemplateParameter |
getDefaultInstance() |
TemplateParameter |
getDefaultInstanceForType() |
String |
getDescription()
Optional.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Optional.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFields(int index)
Required.
|
com.google.protobuf.ByteString |
getFieldsBytes(int index)
Required.
|
int |
getFieldsCount()
Required.
|
com.google.protobuf.ProtocolStringList |
getFieldsList()
Required.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Parser<TemplateParameter> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
ParameterValidation |
getValidation()
Optional.
|
ParameterValidationOrBuilder |
getValidationOrBuilder()
Optional.
|
int |
hashCode() |
boolean |
hasValidation()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TemplateParameter.Builder |
newBuilder() |
static TemplateParameter.Builder |
newBuilder(TemplateParameter prototype) |
TemplateParameter.Builder |
newBuilderForType() |
protected TemplateParameter.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static TemplateParameter |
parseDelimitedFrom(InputStream input) |
static TemplateParameter |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TemplateParameter |
parseFrom(byte[] data) |
static TemplateParameter |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TemplateParameter |
parseFrom(ByteBuffer data) |
static TemplateParameter |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TemplateParameter |
parseFrom(com.google.protobuf.ByteString data) |
static TemplateParameter |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TemplateParameter |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TemplateParameter |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TemplateParameter |
parseFrom(InputStream input) |
static TemplateParameter |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TemplateParameter> |
parser() |
TemplateParameter.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int FIELDS_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int VALIDATION_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters.
string name = 1;getName in interface TemplateParameterOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters.
string name = 1;getNameBytes in interface TemplateParameterOrBuilderpublic com.google.protobuf.ProtocolStringList getFieldsList()
Required. Paths to all fields that the parameter replaces.
A field is allowed to appear in at most one parameter's list of field
paths.
A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
For example, a field path that references the zone field of a workflow
template's cluster selector would be specified as
`placement.clusterSelector.zone`.
Also, field paths can reference fields using the following syntax:
* Values in maps can be referenced by key:
* labels['key']
* placement.clusterSelector.clusterLabels['key']
* placement.managedCluster.labels['key']
* placement.clusterSelector.clusterLabels['key']
* jobs['step-id'].labels['key']
* Jobs in the jobs list can be referenced by step-id:
* jobs['step-id'].hadoopJob.mainJarFileUri
* jobs['step-id'].hiveJob.queryFileUri
* jobs['step-id'].pySparkJob.mainPythonFileUri
* jobs['step-id'].hadoopJob.jarFileUris[0]
* jobs['step-id'].hadoopJob.archiveUris[0]
* jobs['step-id'].hadoopJob.fileUris[0]
* jobs['step-id'].pySparkJob.pythonFileUris[0]
* Items in repeated fields can be referenced by a zero-based index:
* jobs['step-id'].sparkJob.args[0]
* Other examples:
* jobs['step-id'].hadoopJob.properties['key']
* jobs['step-id'].hadoopJob.args[0]
* jobs['step-id'].hiveJob.scriptVariables['key']
* jobs['step-id'].hadoopJob.mainJarFileUri
* placement.clusterSelector.zone
It may not be possible to parameterize maps and repeated fields in their
entirety since only individual map values and individual items in repeated
fields can be referenced. For example, the following field paths are
invalid:
- placement.clusterSelector.clusterLabels
- jobs['step-id'].sparkJob.args
repeated string fields = 2;getFieldsList in interface TemplateParameterOrBuilderpublic int getFieldsCount()
Required. Paths to all fields that the parameter replaces.
A field is allowed to appear in at most one parameter's list of field
paths.
A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
For example, a field path that references the zone field of a workflow
template's cluster selector would be specified as
`placement.clusterSelector.zone`.
Also, field paths can reference fields using the following syntax:
* Values in maps can be referenced by key:
* labels['key']
* placement.clusterSelector.clusterLabels['key']
* placement.managedCluster.labels['key']
* placement.clusterSelector.clusterLabels['key']
* jobs['step-id'].labels['key']
* Jobs in the jobs list can be referenced by step-id:
* jobs['step-id'].hadoopJob.mainJarFileUri
* jobs['step-id'].hiveJob.queryFileUri
* jobs['step-id'].pySparkJob.mainPythonFileUri
* jobs['step-id'].hadoopJob.jarFileUris[0]
* jobs['step-id'].hadoopJob.archiveUris[0]
* jobs['step-id'].hadoopJob.fileUris[0]
* jobs['step-id'].pySparkJob.pythonFileUris[0]
* Items in repeated fields can be referenced by a zero-based index:
* jobs['step-id'].sparkJob.args[0]
* Other examples:
* jobs['step-id'].hadoopJob.properties['key']
* jobs['step-id'].hadoopJob.args[0]
* jobs['step-id'].hiveJob.scriptVariables['key']
* jobs['step-id'].hadoopJob.mainJarFileUri
* placement.clusterSelector.zone
It may not be possible to parameterize maps and repeated fields in their
entirety since only individual map values and individual items in repeated
fields can be referenced. For example, the following field paths are
invalid:
- placement.clusterSelector.clusterLabels
- jobs['step-id'].sparkJob.args
repeated string fields = 2;getFieldsCount in interface TemplateParameterOrBuilderpublic String getFields(int index)
Required. Paths to all fields that the parameter replaces.
A field is allowed to appear in at most one parameter's list of field
paths.
A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
For example, a field path that references the zone field of a workflow
template's cluster selector would be specified as
`placement.clusterSelector.zone`.
Also, field paths can reference fields using the following syntax:
* Values in maps can be referenced by key:
* labels['key']
* placement.clusterSelector.clusterLabels['key']
* placement.managedCluster.labels['key']
* placement.clusterSelector.clusterLabels['key']
* jobs['step-id'].labels['key']
* Jobs in the jobs list can be referenced by step-id:
* jobs['step-id'].hadoopJob.mainJarFileUri
* jobs['step-id'].hiveJob.queryFileUri
* jobs['step-id'].pySparkJob.mainPythonFileUri
* jobs['step-id'].hadoopJob.jarFileUris[0]
* jobs['step-id'].hadoopJob.archiveUris[0]
* jobs['step-id'].hadoopJob.fileUris[0]
* jobs['step-id'].pySparkJob.pythonFileUris[0]
* Items in repeated fields can be referenced by a zero-based index:
* jobs['step-id'].sparkJob.args[0]
* Other examples:
* jobs['step-id'].hadoopJob.properties['key']
* jobs['step-id'].hadoopJob.args[0]
* jobs['step-id'].hiveJob.scriptVariables['key']
* jobs['step-id'].hadoopJob.mainJarFileUri
* placement.clusterSelector.zone
It may not be possible to parameterize maps and repeated fields in their
entirety since only individual map values and individual items in repeated
fields can be referenced. For example, the following field paths are
invalid:
- placement.clusterSelector.clusterLabels
- jobs['step-id'].sparkJob.args
repeated string fields = 2;getFields in interface TemplateParameterOrBuilderpublic com.google.protobuf.ByteString getFieldsBytes(int index)
Required. Paths to all fields that the parameter replaces.
A field is allowed to appear in at most one parameter's list of field
paths.
A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
For example, a field path that references the zone field of a workflow
template's cluster selector would be specified as
`placement.clusterSelector.zone`.
Also, field paths can reference fields using the following syntax:
* Values in maps can be referenced by key:
* labels['key']
* placement.clusterSelector.clusterLabels['key']
* placement.managedCluster.labels['key']
* placement.clusterSelector.clusterLabels['key']
* jobs['step-id'].labels['key']
* Jobs in the jobs list can be referenced by step-id:
* jobs['step-id'].hadoopJob.mainJarFileUri
* jobs['step-id'].hiveJob.queryFileUri
* jobs['step-id'].pySparkJob.mainPythonFileUri
* jobs['step-id'].hadoopJob.jarFileUris[0]
* jobs['step-id'].hadoopJob.archiveUris[0]
* jobs['step-id'].hadoopJob.fileUris[0]
* jobs['step-id'].pySparkJob.pythonFileUris[0]
* Items in repeated fields can be referenced by a zero-based index:
* jobs['step-id'].sparkJob.args[0]
* Other examples:
* jobs['step-id'].hadoopJob.properties['key']
* jobs['step-id'].hadoopJob.args[0]
* jobs['step-id'].hiveJob.scriptVariables['key']
* jobs['step-id'].hadoopJob.mainJarFileUri
* placement.clusterSelector.zone
It may not be possible to parameterize maps and repeated fields in their
entirety since only individual map values and individual items in repeated
fields can be referenced. For example, the following field paths are
invalid:
- placement.clusterSelector.clusterLabels
- jobs['step-id'].sparkJob.args
repeated string fields = 2;getFieldsBytes in interface TemplateParameterOrBuilderpublic String getDescription()
Optional. Brief description of the parameter. Must not exceed 1024 characters.
string description = 3;getDescription in interface TemplateParameterOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Optional. Brief description of the parameter. Must not exceed 1024 characters.
string description = 3;getDescriptionBytes in interface TemplateParameterOrBuilderpublic boolean hasValidation()
Optional. Validation rules to be applied to this parameter's value.
.google.cloud.dataproc.v1.ParameterValidation validation = 4;hasValidation in interface TemplateParameterOrBuilderpublic ParameterValidation getValidation()
Optional. Validation rules to be applied to this parameter's value.
.google.cloud.dataproc.v1.ParameterValidation validation = 4;getValidation in interface TemplateParameterOrBuilderpublic ParameterValidationOrBuilder getValidationOrBuilder()
Optional. Validation rules to be applied to this parameter's value.
.google.cloud.dataproc.v1.ParameterValidation validation = 4;getValidationOrBuilder in interface TemplateParameterOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TemplateParameter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TemplateParameter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TemplateParameter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TemplateParameter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TemplateParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TemplateParameter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TemplateParameter parseFrom(InputStream input) throws IOException
IOExceptionpublic static TemplateParameter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TemplateParameter parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TemplateParameter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TemplateParameter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TemplateParameter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TemplateParameter.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TemplateParameter.Builder newBuilder()
public static TemplateParameter.Builder newBuilder(TemplateParameter prototype)
public TemplateParameter.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TemplateParameter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TemplateParameter getDefaultInstance()
public static com.google.protobuf.Parser<TemplateParameter> parser()
public com.google.protobuf.Parser<TemplateParameter> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TemplateParameter getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.