Class Parameter.Builder (0.3.0)

public static final class Parameter.Builder extends GeneratedMessage.Builder<Parameter.Builder> implements ParameterOrBuilder

Parameter resource.

Protobuf type google.cloud.designcenter.v1.Parameter

Implements

ParameterOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Parameter build()
Returns
Type Description
Parameter

buildPartial()

public Parameter buildPartial()
Returns
Type Description
Parameter

clear()

public Parameter.Builder clear()
Returns
Type Description
Parameter.Builder
Overrides

clearKey()

public Parameter.Builder clearKey()

Required. The key of the parameter.

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

Returns
Type Description
Parameter.Builder

This builder for chaining.

clearReadOnly()

public Parameter.Builder clearReadOnly()

Output only. Indicates if the parameter is read-only (driven by expression).

bool read_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Parameter.Builder

This builder for chaining.

clearValue()

public Parameter.Builder clearValue()

Optional. The value of the parameter.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Parameter.Builder

getDefaultInstanceForType()

public Parameter getDefaultInstanceForType()
Returns
Type Description
Parameter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKey()

public String getKey()

Required. The key of the parameter.

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

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. The key of the parameter.

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

Returns
Type Description
ByteString

The bytes for key.

getReadOnly()

public boolean getReadOnly()

Output only. Indicates if the parameter is read-only (driven by expression).

bool read_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The readOnly.

getValue()

public Value getValue()

Optional. The value of the parameter.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Value

The value.

getValueBuilder()

public Value.Builder getValueBuilder()

Optional. The value of the parameter.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getValueOrBuilder()

public ValueOrBuilder getValueOrBuilder()

Optional. The value of the parameter.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ValueOrBuilder

hasValue()

public boolean hasValue()

Optional. The value of the parameter.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Parameter other)

public Parameter.Builder mergeFrom(Parameter other)
Parameter
Name Description
other Parameter
Returns
Type Description
Parameter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Parameter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Parameter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Parameter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Parameter.Builder
Overrides

mergeValue(Value value)

public Parameter.Builder mergeValue(Value value)

Optional. The value of the parameter.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Value
Returns
Type Description
Parameter.Builder

setKey(String value)

public Parameter.Builder setKey(String value)

Required. The key of the parameter.

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

Parameter
Name Description
value String

The key to set.

Returns
Type Description
Parameter.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public Parameter.Builder setKeyBytes(ByteString value)

Required. The key of the parameter.

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

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
Parameter.Builder

This builder for chaining.

setReadOnly(boolean value)

public Parameter.Builder setReadOnly(boolean value)

Output only. Indicates if the parameter is read-only (driven by expression).

bool read_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The readOnly to set.

Returns
Type Description
Parameter.Builder

This builder for chaining.

setValue(Value value)

public Parameter.Builder setValue(Value value)

Optional. The value of the parameter.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Value
Returns
Type Description
Parameter.Builder

setValue(Value.Builder builderForValue)

public Parameter.Builder setValue(Value.Builder builderForValue)

Optional. The value of the parameter.

.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Parameter.Builder