Class SettingMetadata (1.3.1)

public final class SettingMetadata extends GeneratedMessageV3 implements SettingMetadataOrBuilder

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

Protobuf type google.cloud.resourcesettings.v1.SettingMetadata

Static Fields

DATA_TYPE_FIELD_NUMBER

public static final int DATA_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

DEFAULT_VALUE_FIELD_NUMBER

public static final int DEFAULT_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

READ_ONLY_FIELD_NUMBER

public static final int READ_ONLY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SettingMetadata getDefaultInstance()
Returns
TypeDescription
SettingMetadata

getDescriptor()

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

newBuilder()

public static SettingMetadata.Builder newBuilder()
Returns
TypeDescription
SettingMetadata.Builder

newBuilder(SettingMetadata prototype)

public static SettingMetadata.Builder newBuilder(SettingMetadata prototype)
Parameter
NameDescription
prototypeSettingMetadata
Returns
TypeDescription
SettingMetadata.Builder

parseDelimitedFrom(InputStream input)

public static SettingMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SettingMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SettingMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SettingMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SettingMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SettingMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SettingMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SettingMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SettingMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SettingMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SettingMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SettingMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SettingMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SettingMetadata> parser()
Returns
TypeDescription
Parser<SettingMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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.

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.

getParserForType()

public Parser<SettingMetadata> getParserForType()
Returns
TypeDescription
Parser<SettingMetadata>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SettingMetadata.Builder newBuilderForType()
Returns
TypeDescription
SettingMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SettingMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SettingMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SettingMetadata.Builder toBuilder()
Returns
TypeDescription
SettingMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException