Class SettingMetadata.Builder (1.24.0)

public static final class SettingMetadata.Builder extends GeneratedMessageV3.Builder<SettingMetadata.Builder> implements SettingMetadataOrBuilder

Metadata about a setting which is not editable by the end user.

Protobuf type google.cloud.resourcesettings.v1.SettingMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SettingMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SettingMetadata.Builder
Overrides

build()

public SettingMetadata build()
Returns
TypeDescription
SettingMetadata

buildPartial()

public SettingMetadata buildPartial()
Returns
TypeDescription
SettingMetadata

clear()

public SettingMetadata.Builder clear()
Returns
TypeDescription
SettingMetadata.Builder
Overrides

clearDataType()

public SettingMetadata.Builder clearDataType()

The data type for this setting.

.google.cloud.resourcesettings.v1.SettingMetadata.DataType data_type = 4;

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

clearDefaultValue()

public SettingMetadata.Builder clearDefaultValue()

The value provided by Setting.effective_value if no setting value is explicitly set.

Note: not all settings have a default value.

.google.cloud.resourcesettings.v1.Value default_value = 5;

Returns
TypeDescription
SettingMetadata.Builder

clearDescription()

public SettingMetadata.Builder clearDescription()

A detailed description of what this setting does.

string description = 2;

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

clearDisplayName()

public SettingMetadata.Builder clearDisplayName()

The human readable name for this setting.

string display_name = 1;

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SettingMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SettingMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SettingMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SettingMetadata.Builder
Overrides

clearReadOnly()

public SettingMetadata.Builder clearReadOnly()

A flag indicating that values of this setting cannot be modified (see documentation of the specific setting for updates and reasons).

bool read_only = 3;

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

clone()

public SettingMetadata.Builder clone()
Returns
TypeDescription
SettingMetadata.Builder
Overrides

getDataType()

public SettingMetadata.DataType getDataType()

The data type for this setting.

.google.cloud.resourcesettings.v1.SettingMetadata.DataType data_type = 4;

Returns
TypeDescription
SettingMetadata.DataType

The dataType.

getDataTypeValue()

public int getDataTypeValue()

The data type for this setting.

.google.cloud.resourcesettings.v1.SettingMetadata.DataType data_type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for dataType.

getDefaultInstanceForType()

public SettingMetadata getDefaultInstanceForType()
Returns
TypeDescription
SettingMetadata

getDefaultValue()

public Value getDefaultValue()

The value provided by Setting.effective_value if no setting value is explicitly set.

Note: not all settings have a default value.

.google.cloud.resourcesettings.v1.Value default_value = 5;

Returns
TypeDescription
Value

The defaultValue.

getDefaultValueBuilder()

public Value.Builder getDefaultValueBuilder()

The value provided by Setting.effective_value if no setting value is explicitly set.

Note: not all settings have a default value.

.google.cloud.resourcesettings.v1.Value default_value = 5;

Returns
TypeDescription
Value.Builder

getDefaultValueOrBuilder()

public ValueOrBuilder getDefaultValueOrBuilder()

The value provided by Setting.effective_value if no setting value is explicitly set.

Note: not all settings have a default value.

.google.cloud.resourcesettings.v1.Value default_value = 5;

Returns
TypeDescription
ValueOrBuilder

getDescription()

public String getDescription()

A detailed description of what this setting does.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A detailed description of what this setting does.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The human readable name for this setting.

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The human readable name for this setting.

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

getReadOnly()

public boolean getReadOnly()

A flag indicating that values of this setting cannot be modified (see documentation of the specific setting for updates and reasons).

bool read_only = 3;

Returns
TypeDescription
boolean

The readOnly.

hasDefaultValue()

public boolean hasDefaultValue()

The value provided by Setting.effective_value if no setting value is explicitly set.

Note: not all settings have a default value.

.google.cloud.resourcesettings.v1.Value default_value = 5;

Returns
TypeDescription
boolean

Whether the defaultValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDefaultValue(Value value)

public SettingMetadata.Builder mergeDefaultValue(Value value)

The value provided by Setting.effective_value if no setting value is explicitly set.

Note: not all settings have a default value.

.google.cloud.resourcesettings.v1.Value default_value = 5;

Parameter
NameDescription
valueValue
Returns
TypeDescription
SettingMetadata.Builder

mergeFrom(SettingMetadata other)

public SettingMetadata.Builder mergeFrom(SettingMetadata other)
Parameter
NameDescription
otherSettingMetadata
Returns
TypeDescription
SettingMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SettingMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SettingMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SettingMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SettingMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SettingMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SettingMetadata.Builder
Overrides

setDataType(SettingMetadata.DataType value)

public SettingMetadata.Builder setDataType(SettingMetadata.DataType value)

The data type for this setting.

.google.cloud.resourcesettings.v1.SettingMetadata.DataType data_type = 4;

Parameter
NameDescription
valueSettingMetadata.DataType

The dataType to set.

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

setDataTypeValue(int value)

public SettingMetadata.Builder setDataTypeValue(int value)

The data type for this setting.

.google.cloud.resourcesettings.v1.SettingMetadata.DataType data_type = 4;

Parameter
NameDescription
valueint

The enum numeric value on the wire for dataType to set.

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

setDefaultValue(Value value)

public SettingMetadata.Builder setDefaultValue(Value value)

The value provided by Setting.effective_value if no setting value is explicitly set.

Note: not all settings have a default value.

.google.cloud.resourcesettings.v1.Value default_value = 5;

Parameter
NameDescription
valueValue
Returns
TypeDescription
SettingMetadata.Builder

setDefaultValue(Value.Builder builderForValue)

public SettingMetadata.Builder setDefaultValue(Value.Builder builderForValue)

The value provided by Setting.effective_value if no setting value is explicitly set.

Note: not all settings have a default value.

.google.cloud.resourcesettings.v1.Value default_value = 5;

Parameter
NameDescription
builderForValueValue.Builder
Returns
TypeDescription
SettingMetadata.Builder

setDescription(String value)

public SettingMetadata.Builder setDescription(String value)

A detailed description of what this setting does.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public SettingMetadata.Builder setDescriptionBytes(ByteString value)

A detailed description of what this setting does.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

setDisplayName(String value)

public SettingMetadata.Builder setDisplayName(String value)

The human readable name for this setting.

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public SettingMetadata.Builder setDisplayNameBytes(ByteString value)

The human readable name for this setting.

string display_name = 1;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SettingMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SettingMetadata.Builder
Overrides

setReadOnly(boolean value)

public SettingMetadata.Builder setReadOnly(boolean value)

A flag indicating that values of this setting cannot be modified (see documentation of the specific setting for updates and reasons).

bool read_only = 3;

Parameter
NameDescription
valueboolean

The readOnly to set.

Returns
TypeDescription
SettingMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SettingMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SettingMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SettingMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SettingMetadata.Builder
Overrides