public static final class UnitVariable.Builder extends GeneratedMessageV3.Builder<UnitVariable.Builder> implements UnitVariableOrBuilder
UnitVariable describes a parameter for a Unit.
Protobuf type google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UnitVariable.BuilderImplements
UnitVariableOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UnitVariable.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
build()
public UnitVariable build()
Returns | |
---|---|
Type | Description |
UnitVariable |
buildPartial()
public UnitVariable buildPartial()
Returns | |
---|---|
Type | Description |
UnitVariable |
clear()
public UnitVariable.Builder clear()
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
clearField(Descriptors.FieldDescriptor field)
public UnitVariable.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public UnitVariable.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
clearType()
public UnitVariable.Builder clearType()
Optional. Immutable. Name of a supported variable type. Supported types are string, int, bool.
.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
This builder for chaining. |
clearValue()
public UnitVariable.Builder clearValue()
Optional. String encoded value for the variable.
string value = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
This builder for chaining. |
clearVariable()
public UnitVariable.Builder clearVariable()
Required. Immutable. Name of the variable from actuation configs.
string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
This builder for chaining. |
clone()
public UnitVariable.Builder clone()
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
getDefaultInstanceForType()
public UnitVariable getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
UnitVariable |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getType()
public UnitVariable.Type getType()
Optional. Immutable. Name of a supported variable type. Supported types are string, int, bool.
.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
UnitVariable.Type |
The type. |
getTypeValue()
public int getTypeValue()
Optional. Immutable. Name of a supported variable type. Supported types are string, int, bool.
.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for type. |
getValue()
public String getValue()
Optional. String encoded value for the variable.
string value = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The value. |
getValueBytes()
public ByteString getValueBytes()
Optional. String encoded value for the variable.
string value = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for value. |
getVariable()
public String getVariable()
Required. Immutable. Name of the variable from actuation configs.
string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
String |
The variable. |
getVariableBytes()
public ByteString getVariableBytes()
Required. Immutable. Name of the variable from actuation configs.
string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for variable. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(UnitVariable other)
public UnitVariable.Builder mergeFrom(UnitVariable other)
Parameter | |
---|---|
Name | Description |
other |
UnitVariable |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UnitVariable.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public UnitVariable.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UnitVariable.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public UnitVariable.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UnitVariable.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
setType(UnitVariable.Type value)
public UnitVariable.Builder setType(UnitVariable.Type value)
Optional. Immutable. Name of a supported variable type. Supported types are string, int, bool.
.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value |
UnitVariable.Type The type to set. |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
This builder for chaining. |
setTypeValue(int value)
public UnitVariable.Builder setTypeValue(int value)
Optional. Immutable. Name of a supported variable type. Supported types are string, int, bool.
.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for type to set. |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final UnitVariable.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
setValue(String value)
public UnitVariable.Builder setValue(String value)
Optional. String encoded value for the variable.
string value = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The value to set. |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
This builder for chaining. |
setValueBytes(ByteString value)
public UnitVariable.Builder setValueBytes(ByteString value)
Optional. String encoded value for the variable.
string value = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for value to set. |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
This builder for chaining. |
setVariable(String value)
public UnitVariable.Builder setVariable(String value)
Required. Immutable. Name of the variable from actuation configs.
string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value |
String The variable to set. |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
This builder for chaining. |
setVariableBytes(ByteString value)
public UnitVariable.Builder setVariableBytes(ByteString value)
Required. Immutable. Name of the variable from actuation configs.
string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for variable to set. |
Returns | |
---|---|
Type | Description |
UnitVariable.Builder |
This builder for chaining. |