Class DisplayVariable (0.3.0)

public final class DisplayVariable extends GeneratedMessage implements DisplayVariableOrBuilder

Additional display specific Template pertaining to a particular input variable.

Protobuf type google.cloud.designcenter.v1.DisplayVariable

Static Fields

ALTERNATE_DEFAULTS_FIELD_NUMBER

public static final int ALTERNATE_DEFAULTS_FIELD_NUMBER
Field Value
Type Description
int

ENUM_VALUE_LABELS_FIELD_NUMBER

public static final int ENUM_VALUE_LABELS_FIELD_NUMBER
Field Value
Type Description
int

LEVEL_FIELD_NUMBER

public static final int LEVEL_FIELD_NUMBER
Field Value
Type Description
int

MAX_FIELD_NUMBER

public static final int MAX_FIELD_NUMBER
Field Value
Type Description
int

MIN_FIELD_NUMBER

public static final int MIN_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PROPERTIES_FIELD_NUMBER

public static final int PROPERTIES_FIELD_NUMBER
Field Value
Type Description
int

REGEX_VALIDATION_FIELD_NUMBER

public static final int REGEX_VALIDATION_FIELD_NUMBER
Field Value
Type Description
int

SUBTEXT_FIELD_NUMBER

public static final int SUBTEXT_FIELD_NUMBER
Field Value
Type Description
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
Type Description
int

VALIDATION_FIELD_NUMBER

public static final int VALIDATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DisplayVariable getDefaultInstance()
Returns
Type Description
DisplayVariable

getDescriptor()

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

newBuilder()

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

newBuilder(DisplayVariable prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsProperties(String key)

public boolean containsProperties(String key)

Optional. properties is a map defining all the fields of the input variable.

map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL];

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

getAlternateDefaults(int index)

public AlternateDefaultInput getAlternateDefaults(int index)

Optional. Alternate defaults for the input.

repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AlternateDefaultInput

getAlternateDefaultsCount()

public int getAlternateDefaultsCount()

Optional. Alternate defaults for the input.

repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAlternateDefaultsList()

public List<AlternateDefaultInput> getAlternateDefaultsList()

Optional. Alternate defaults for the input.

repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AlternateDefaultInput>

getAlternateDefaultsOrBuilder(int index)

public AlternateDefaultInputOrBuilder getAlternateDefaultsOrBuilder(int index)

Optional. Alternate defaults for the input.

repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AlternateDefaultInputOrBuilder

getAlternateDefaultsOrBuilderList()

public List<? extends AlternateDefaultInputOrBuilder> getAlternateDefaultsOrBuilderList()

Optional. Alternate defaults for the input.

repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.designcenter.v1.AlternateDefaultInputOrBuilder>

getDefaultInstanceForType()

public DisplayVariable getDefaultInstanceForType()
Returns
Type Description
DisplayVariable

getEnumValueLabels(int index)

public ValueLabelInput getEnumValueLabels(int index)

Optional. Labels for enum values. Values must be UTF-8 text with no markup, and at most 64 characters.

repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ValueLabelInput

getEnumValueLabelsCount()

public int getEnumValueLabelsCount()

Optional. Labels for enum values. Values must be UTF-8 text with no markup, and at most 64 characters.

repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getEnumValueLabelsList()

public List<ValueLabelInput> getEnumValueLabelsList()

Optional. Labels for enum values. Values must be UTF-8 text with no markup, and at most 64 characters.

repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ValueLabelInput>

getEnumValueLabelsOrBuilder(int index)

public ValueLabelInputOrBuilder getEnumValueLabelsOrBuilder(int index)

Optional. Labels for enum values. Values must be UTF-8 text with no markup, and at most 64 characters.

repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ValueLabelInputOrBuilder

getEnumValueLabelsOrBuilderList()

public List<? extends ValueLabelInputOrBuilder> getEnumValueLabelsOrBuilderList()

Optional. Labels for enum values. Values must be UTF-8 text with no markup, and at most 64 characters.

repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.designcenter.v1.ValueLabelInputOrBuilder>

getLevel()

public int getLevel()

Optional. Indicates the "advanced" level of the input property. Level 0 (default) will always be shown. Level 1 corresponds to one expansion (user clicks "show advanced options" or "more options"). Higher levels correspond to further expansions, or they may be collapsed to level 1 by the UI implementation. Optional.

int32 level = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The level.

getMax()

public float getMax()

Optional. Maximum value for numeric types.

optional float max = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
float

The max.

getMin()

public float getMin()

Optional. Minimum value for numeric types.

optional float min = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
float

The min.

getName()

public String getName()

Required. The variable name from the corresponding standard Template file.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The variable name from the corresponding standard Template file.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getProperties() (deprecated)

public Map<String,DisplayVariable> getProperties()

Use #getPropertiesMap() instead.

Returns
Type Description
Map<String,DisplayVariable>

getPropertiesCount()

public int getPropertiesCount()

Optional. properties is a map defining all the fields of the input variable.

map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getPropertiesMap()

public Map<String,DisplayVariable> getPropertiesMap()

Optional. properties is a map defining all the fields of the input variable.

map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,DisplayVariable>

getPropertiesOrDefault(String key, DisplayVariable defaultValue)

public DisplayVariable getPropertiesOrDefault(String key, DisplayVariable defaultValue)

Optional. properties is a map defining all the fields of the input variable.

map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue DisplayVariable
Returns
Type Description
DisplayVariable

getPropertiesOrThrow(String key)

public DisplayVariable getPropertiesOrThrow(String key)

Optional. properties is a map defining all the fields of the input variable.

map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
DisplayVariable

getRegexValidation()

public String getRegexValidation()

Optional. Regex based validation rules for the variable.

string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The regexValidation.

getRegexValidationBytes()

public ByteString getRegexValidationBytes()

Optional. Regex based validation rules for the variable.

string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for regexValidation.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSubtext()

public String getSubtext()

Optional. Property subtext, displayed below the title.

string subtext = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The subtext.

getSubtextBytes()

public ByteString getSubtextBytes()

Optional. Property subtext, displayed below the title.

string subtext = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for subtext.

getTitle()

public String getTitle()

Required. Visible title for the variable on the UI.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required. Visible title for the variable on the UI.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for title.

getValidation()

public String getValidation()

Optional. Text describing the validation rules for the property. Typically shown after an invalid input. Optional. UTF-8 text. No markup. At most 128 characters.

string validation = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The validation.

getValidationBytes()

public ByteString getValidationBytes()

Optional. Text describing the validation rules for the property. Typically shown after an invalid input. Optional. UTF-8 text. No markup. At most 128 characters.

string validation = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for validation.

hasMax()

public boolean hasMax()

Optional. Maximum value for numeric types.

optional float max = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the max field is set.

hasMin()

public boolean hasMin()

Optional. Minimum value for numeric types.

optional float min = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the min field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.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.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DisplayVariable.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DisplayVariable.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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