Class SettingMetadata.Builder (1.44.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SettingMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SettingMetadata.Builder
Overrides

build()

public SettingMetadata build()
Returns
Type Description
SettingMetadata

buildPartial()

public SettingMetadata buildPartial()
Returns
Type Description
SettingMetadata

clear()

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

clearDataType()

public SettingMetadata.Builder clearDataType()

The data type for this setting.

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

Returns
Type Description
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
Type Description
SettingMetadata.Builder

clearDescription()

public SettingMetadata.Builder clearDescription()

A detailed description of what this setting does.

string description = 2;

Returns
Type Description
SettingMetadata.Builder

This builder for chaining.

clearDisplayName()

public SettingMetadata.Builder clearDisplayName()

The human readable name for this setting.

string display_name = 1;

Returns
Type Description
SettingMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SettingMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SettingMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SettingMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
SettingMetadata.Builder

This builder for chaining.

clone()

public SettingMetadata.Builder clone()
Returns
Type Description
SettingMetadata.Builder
Overrides

getDataType()

public SettingMetadata.DataType getDataType()

The data type for this setting.

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

Returns
Type Description
SettingMetadata.DataType

The dataType.

getDataTypeValue()

public int getDataTypeValue()

The data type for this setting.

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

Returns
Type Description
int

The enum numeric value on the wire for dataType.

getDefaultInstanceForType()

public SettingMetadata getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ValueOrBuilder

getDescription()

public String getDescription()

A detailed description of what this setting does.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A detailed description of what this setting does.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The human readable name for this setting.

string display_name = 1;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The human readable name for this setting.

string display_name = 1;

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the defaultValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Value
Returns
Type Description
SettingMetadata.Builder

mergeFrom(SettingMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SettingMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value SettingMetadata.DataType

The dataType to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value Value
Returns
Type Description
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
Name Description
builderForValue Value.Builder
Returns
Type Description
SettingMetadata.Builder

setDescription(String value)

public SettingMetadata.Builder setDescription(String value)

A detailed description of what this setting does.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
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
Name Description
value String

The displayName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
SettingMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SettingMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value boolean

The readOnly to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SettingMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SettingMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SettingMetadata.Builder
Overrides