Class ParameterMetadata (0.66.0)

public final class ParameterMetadata extends GeneratedMessageV3 implements ParameterMetadataOrBuilder

Metadata for a specific parameter.

Protobuf type google.dataflow.v1beta3.ParameterMetadata

Static Fields

CUSTOM_METADATA_FIELD_NUMBER

public static final int CUSTOM_METADATA_FIELD_NUMBER
Field Value
Type Description
int

DEFAULT_VALUE_FIELD_NUMBER

public static final int DEFAULT_VALUE_FIELD_NUMBER
Field Value
Type Description
int

ENUM_OPTIONS_FIELD_NUMBER

public static final int ENUM_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

GROUP_NAME_FIELD_NUMBER

public static final int GROUP_NAME_FIELD_NUMBER
Field Value
Type Description
int

HELP_TEXT_FIELD_NUMBER

public static final int HELP_TEXT_FIELD_NUMBER
Field Value
Type Description
int

HIDDEN_UI_FIELD_NUMBER

public static final int HIDDEN_UI_FIELD_NUMBER
Field Value
Type Description
int

IS_OPTIONAL_FIELD_NUMBER

public static final int IS_OPTIONAL_FIELD_NUMBER
Field Value
Type Description
int

LABEL_FIELD_NUMBER

public static final int LABEL_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PARAM_TYPE_FIELD_NUMBER

public static final int PARAM_TYPE_FIELD_NUMBER
Field Value
Type Description
int

PARENT_NAME_FIELD_NUMBER

public static final int PARENT_NAME_FIELD_NUMBER
Field Value
Type Description
int

PARENT_TRIGGER_VALUES_FIELD_NUMBER

public static final int PARENT_TRIGGER_VALUES_FIELD_NUMBER
Field Value
Type Description
int

REGEXES_FIELD_NUMBER

public static final int REGEXES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ParameterMetadata getDefaultInstance()
Returns
Type Description
ParameterMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ParameterMetadata.Builder newBuilder()
Returns
Type Description
ParameterMetadata.Builder

newBuilder(ParameterMetadata prototype)

public static ParameterMetadata.Builder newBuilder(ParameterMetadata prototype)
Parameter
Name Description
prototype ParameterMetadata
Returns
Type Description
ParameterMetadata.Builder

parseDelimitedFrom(InputStream input)

public static ParameterMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ParameterMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ParameterMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ParameterMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ParameterMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ParameterMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ParameterMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ParameterMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ParameterMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ParameterMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ParameterMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ParameterMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ParameterMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ParameterMetadata> parser()
Returns
Type Description
Parser<ParameterMetadata>

Methods

containsCustomMetadata(String key)

public boolean containsCustomMetadata(String key)

Optional. Additional metadata for describing this parameter.

map<string, string> custom_metadata = 7;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCustomMetadata() (deprecated)

public Map<String,String> getCustomMetadata()
Returns
Type Description
Map<String,String>

getCustomMetadataCount()

public int getCustomMetadataCount()

Optional. Additional metadata for describing this parameter.

map<string, string> custom_metadata = 7;

Returns
Type Description
int

getCustomMetadataMap()

public Map<String,String> getCustomMetadataMap()

Optional. Additional metadata for describing this parameter.

map<string, string> custom_metadata = 7;

Returns
Type Description
Map<String,String>

getCustomMetadataOrDefault(String key, String defaultValue)

public String getCustomMetadataOrDefault(String key, String defaultValue)

Optional. Additional metadata for describing this parameter.

map<string, string> custom_metadata = 7;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getCustomMetadataOrThrow(String key)

public String getCustomMetadataOrThrow(String key)

Optional. Additional metadata for describing this parameter.

map<string, string> custom_metadata = 7;

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public ParameterMetadata getDefaultInstanceForType()
Returns
Type Description
ParameterMetadata

getDefaultValue()

public String getDefaultValue()

Optional. The default values will pre-populate the parameter with the given value from the proto. If default_value is left empty, the parameter will be populated with a default of the relevant type, e.g. false for a boolean.

string default_value = 12;

Returns
Type Description
String

The defaultValue.

getDefaultValueBytes()

public ByteString getDefaultValueBytes()

Optional. The default values will pre-populate the parameter with the given value from the proto. If default_value is left empty, the parameter will be populated with a default of the relevant type, e.g. false for a boolean.

string default_value = 12;

Returns
Type Description
ByteString

The bytes for defaultValue.

getEnumOptions(int index)

public ParameterMetadataEnumOption getEnumOptions(int index)

Optional. The options shown when ENUM ParameterType is specified.

repeated .google.dataflow.v1beta3.ParameterMetadataEnumOption enum_options = 11;

Parameter
Name Description
index int
Returns
Type Description
ParameterMetadataEnumOption

getEnumOptionsCount()

public int getEnumOptionsCount()

Optional. The options shown when ENUM ParameterType is specified.

repeated .google.dataflow.v1beta3.ParameterMetadataEnumOption enum_options = 11;

Returns
Type Description
int

getEnumOptionsList()

public List<ParameterMetadataEnumOption> getEnumOptionsList()

Optional. The options shown when ENUM ParameterType is specified.

repeated .google.dataflow.v1beta3.ParameterMetadataEnumOption enum_options = 11;

Returns
Type Description
List<ParameterMetadataEnumOption>

getEnumOptionsOrBuilder(int index)

public ParameterMetadataEnumOptionOrBuilder getEnumOptionsOrBuilder(int index)

Optional. The options shown when ENUM ParameterType is specified.

repeated .google.dataflow.v1beta3.ParameterMetadataEnumOption enum_options = 11;

Parameter
Name Description
index int
Returns
Type Description
ParameterMetadataEnumOptionOrBuilder

getEnumOptionsOrBuilderList()

public List<? extends ParameterMetadataEnumOptionOrBuilder> getEnumOptionsOrBuilderList()

Optional. The options shown when ENUM ParameterType is specified.

repeated .google.dataflow.v1beta3.ParameterMetadataEnumOption enum_options = 11;

Returns
Type Description
List<? extends com.google.dataflow.v1beta3.ParameterMetadataEnumOptionOrBuilder>

getGroupName()

public String getGroupName()

Optional. Specifies a group name for this parameter to be rendered under. Group header text will be rendered exactly as specified in this field. Only considered when parent_name is NOT provided.

string group_name = 8;

Returns
Type Description
String

The groupName.

getGroupNameBytes()

public ByteString getGroupNameBytes()

Optional. Specifies a group name for this parameter to be rendered under. Group header text will be rendered exactly as specified in this field. Only considered when parent_name is NOT provided.

string group_name = 8;

Returns
Type Description
ByteString

The bytes for groupName.

getHelpText()

public String getHelpText()

Required. The help text to display for the parameter.

string help_text = 3;

Returns
Type Description
String

The helpText.

getHelpTextBytes()

public ByteString getHelpTextBytes()

Required. The help text to display for the parameter.

string help_text = 3;

Returns
Type Description
ByteString

The bytes for helpText.

getHiddenUi()

public boolean getHiddenUi()

Optional. Whether the parameter should be hidden in the UI.

bool hidden_ui = 13;

Returns
Type Description
boolean

The hiddenUi.

getIsOptional()

public boolean getIsOptional()

Optional. Whether the parameter is optional. Defaults to false.

bool is_optional = 4;

Returns
Type Description
boolean

The isOptional.

getLabel()

public String getLabel()

Required. The label to display for the parameter.

string label = 2;

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

Required. The label to display for the parameter.

string label = 2;

Returns
Type Description
ByteString

The bytes for label.

getName()

public String getName()

Required. The name of the parameter.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the parameter.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParamType()

public ParameterType getParamType()

Optional. The type of the parameter. Used for selecting input picker.

.google.dataflow.v1beta3.ParameterType param_type = 6;

Returns
Type Description
ParameterType

The paramType.

getParamTypeValue()

public int getParamTypeValue()

Optional. The type of the parameter. Used for selecting input picker.

.google.dataflow.v1beta3.ParameterType param_type = 6;

Returns
Type Description
int

The enum numeric value on the wire for paramType.

getParentName()

public String getParentName()

Optional. Specifies the name of the parent parameter. Used in conjunction with 'parent_trigger_values' to make this parameter conditional (will only be rendered conditionally). Should be mappable to a ParameterMetadata.name field.

string parent_name = 9;

Returns
Type Description
String

The parentName.

getParentNameBytes()

public ByteString getParentNameBytes()

Optional. Specifies the name of the parent parameter. Used in conjunction with 'parent_trigger_values' to make this parameter conditional (will only be rendered conditionally). Should be mappable to a ParameterMetadata.name field.

string parent_name = 9;

Returns
Type Description
ByteString

The bytes for parentName.

getParentTriggerValues(int index)

public String getParentTriggerValues(int index)

Optional. The value(s) of the 'parent_name' parameter which will trigger this parameter to be shown. If left empty, ANY non-empty value in parent_name will trigger this parameter to be shown. Only considered when this parameter is conditional (when 'parent_name' has been provided).

repeated string parent_trigger_values = 10;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The parentTriggerValues at the given index.

getParentTriggerValuesBytes(int index)

public ByteString getParentTriggerValuesBytes(int index)

Optional. The value(s) of the 'parent_name' parameter which will trigger this parameter to be shown. If left empty, ANY non-empty value in parent_name will trigger this parameter to be shown. Only considered when this parameter is conditional (when 'parent_name' has been provided).

repeated string parent_trigger_values = 10;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the parentTriggerValues at the given index.

getParentTriggerValuesCount()

public int getParentTriggerValuesCount()

Optional. The value(s) of the 'parent_name' parameter which will trigger this parameter to be shown. If left empty, ANY non-empty value in parent_name will trigger this parameter to be shown. Only considered when this parameter is conditional (when 'parent_name' has been provided).

repeated string parent_trigger_values = 10;

Returns
Type Description
int

The count of parentTriggerValues.

getParentTriggerValuesList()

public ProtocolStringList getParentTriggerValuesList()

Optional. The value(s) of the 'parent_name' parameter which will trigger this parameter to be shown. If left empty, ANY non-empty value in parent_name will trigger this parameter to be shown. Only considered when this parameter is conditional (when 'parent_name' has been provided).

repeated string parent_trigger_values = 10;

Returns
Type Description
ProtocolStringList

A list containing the parentTriggerValues.

getParserForType()

public Parser<ParameterMetadata> getParserForType()
Returns
Type Description
Parser<ParameterMetadata>
Overrides

getRegexes(int index)

public String getRegexes(int index)

Optional. Regexes that the parameter must match.

repeated string regexes = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The regexes at the given index.

getRegexesBytes(int index)

public ByteString getRegexesBytes(int index)

Optional. Regexes that the parameter must match.

repeated string regexes = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the regexes at the given index.

getRegexesCount()

public int getRegexesCount()

Optional. Regexes that the parameter must match.

repeated string regexes = 5;

Returns
Type Description
int

The count of regexes.

getRegexesList()

public ProtocolStringList getRegexesList()

Optional. Regexes that the parameter must match.

repeated string regexes = 5;

Returns
Type Description
ProtocolStringList

A list containing the regexes.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ParameterMetadata.Builder newBuilderForType()
Returns
Type Description
ParameterMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ParameterMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ParameterMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ParameterMetadata.Builder toBuilder()
Returns
Type Description
ParameterMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException