Class ParameterSpec (0.3.0)

public final class ParameterSpec extends GeneratedMessage implements ParameterSpecOrBuilder

The specification of a parameter that can be configured on a cloud control or a framework.

Protobuf type google.cloud.designcenter.v1.ParameterSpec

Static Fields

DEFAULT_VALUE_FIELD_NUMBER

public static final int DEFAULT_VALUE_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
Type Description
int

REQUIRED_FIELD_NUMBER

public static final int REQUIRED_FIELD_NUMBER
Field Value
Type Description
int

SUB_PARAMETER_SPECS_FIELD_NUMBER

public static final int SUB_PARAMETER_SPECS_FIELD_NUMBER
Field Value
Type Description
int

VALUE_TYPE_FIELD_NUMBER

public static final int VALUE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ParameterSpec getDefaultInstance()
Returns
Type Description
ParameterSpec

getDescriptor()

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

newBuilder()

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

newBuilder(ParameterSpec prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ParameterSpec getDefaultInstanceForType()
Returns
Type Description
ParameterSpec

getDefaultValue()

public Value getDefaultValue()

Optional. The default value of the parameter, used when the user does not provide one.

.google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Value

The defaultValue.

getDefaultValueOrBuilder()

public ValueOrBuilder getDefaultValueOrBuilder()

Optional. The default value of the parameter, used when the user does not provide one.

.google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ValueOrBuilder

getDescription()

public String getDescription()

Optional. The parameter description.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The parameter description.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDisplayName()

public String getDisplayName()

Optional. The parameter display name, which is a user friendly name used for UI.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The parameter display name, which is a user friendly name used for UI.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getKey()

public String getKey()

Required. The key of the parameter, matching Parameter.key of the value supplied for it.

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

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. The key of the parameter, matching Parameter.key of the value supplied for it.

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

Returns
Type Description
ByteString

The bytes for key.

getParserForType()

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

getRequired()

public boolean getRequired()

Optional. Whether a value must be provided for the parameter.

bool required = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The required.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSubParameterSpecs(int index)

public ParameterSpec getSubParameterSpecs(int index)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

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

Parameter
Name Description
index int
Returns
Type Description
ParameterSpec

getSubParameterSpecsCount()

public int getSubParameterSpecsCount()

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

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

Returns
Type Description
int

getSubParameterSpecsList()

public List<ParameterSpec> getSubParameterSpecsList()

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

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

Returns
Type Description
List<ParameterSpec>

getSubParameterSpecsOrBuilder(int index)

public ParameterSpecOrBuilder getSubParameterSpecsOrBuilder(int index)

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

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

Parameter
Name Description
index int
Returns
Type Description
ParameterSpecOrBuilder

getSubParameterSpecsOrBuilderList()

public List<? extends ParameterSpecOrBuilder> getSubParameterSpecsOrBuilderList()

Optional. The specifications of the sub-parameters. Only set when value_type is ONEOF.

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

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

getValueType()

public ParameterSpec.ValueType getValueType()

Optional. The type of value that the parameter accepts.

.google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ParameterSpec.ValueType

The valueType.

getValueTypeValue()

public int getValueTypeValue()

Optional. The type of value that the parameter accepts.

.google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for valueType.

hasDefaultValue()

public boolean hasDefaultValue()

Optional. The default value of the parameter, used when the user does not provide one.

.google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the defaultValue field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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