public final class Setting extends GeneratedMessageV3 implements SettingOrBuilder
The schema for settings.
Protobuf type google.cloud.resourcesettings.v1.Setting
Static Fields
EFFECTIVE_VALUE_FIELD_NUMBER
public static final int EFFECTIVE_VALUE_FIELD_NUMBER
Field Value
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Field Value
LOCAL_VALUE_FIELD_NUMBER
public static final int LOCAL_VALUE_FIELD_NUMBER
Field Value
public static final int METADATA_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Setting getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Setting.Builder newBuilder()
Returns
newBuilder(Setting prototype)
public static Setting.Builder newBuilder(Setting prototype)
Parameter
Returns
public static Setting parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Setting parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Setting parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Setting parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Setting parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Setting parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Setting parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Setting parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Setting parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Setting parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Setting parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Setting parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Setting> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Setting getDefaultInstanceForType()
Returns
getEffectiveValue()
public Value getEffectiveValue()
Output only. The computed effective value of the setting at the given parent resource
(based on the resource hierarchy).
The effective value evaluates to one of the following options in the given
order (the next option is used if the previous one does not exist):
- the local setting value on the given resource: Setting.local_value
- if one of the given resource's ancestors have a local setting value,
the local value at the nearest such ancestor
- the setting's default value: SettingMetadata.default_value
- an empty value (defined as a
Value
with all fields unset)
The data type of Value must always be
consistent with the data type defined in Setting.metadata.
.google.cloud.resourcesettings.v1.Value effective_value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
Value | The effectiveValue.
|
getEffectiveValueOrBuilder()
public ValueOrBuilder getEffectiveValueOrBuilder()
Output only. The computed effective value of the setting at the given parent resource
(based on the resource hierarchy).
The effective value evaluates to one of the following options in the given
order (the next option is used if the previous one does not exist):
- the local setting value on the given resource: Setting.local_value
- if one of the given resource's ancestors have a local setting value,
the local value at the nearest such ancestor
- the setting's default value: SettingMetadata.default_value
- an empty value (defined as a
Value
with all fields unset)
The data type of Value must always be
consistent with the data type defined in Setting.metadata.
.google.cloud.resourcesettings.v1.Value effective_value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getEtag()
A fingerprint used for optimistic concurrency. See
UpdateSetting for more
details.
string etag = 10;
Returns
Type | Description |
String | The etag.
|
getEtagBytes()
public ByteString getEtagBytes()
A fingerprint used for optimistic concurrency. See
UpdateSetting for more
details.
string etag = 10;
Returns
getLocalValue()
public Value getLocalValue()
The configured value of the setting at the given parent resource (ignoring
the resource hierarchy). The data type of Value must always be
consistent with the data type defined in Setting.metadata.
.google.cloud.resourcesettings.v1.Value local_value = 8;
Returns
Type | Description |
Value | The localValue.
|
getLocalValueOrBuilder()
public ValueOrBuilder getLocalValueOrBuilder()
The configured value of the setting at the given parent resource (ignoring
the resource hierarchy). The data type of Value must always be
consistent with the data type defined in Setting.metadata.
.google.cloud.resourcesettings.v1.Value local_value = 8;
Returns
public SettingMetadata getMetadata()
Output only. Metadata about a setting which is not editable by the end user.
.google.cloud.resourcesettings.v1.SettingMetadata metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public SettingMetadataOrBuilder getMetadataOrBuilder()
Output only. Metadata about a setting which is not editable by the end user.
.google.cloud.resourcesettings.v1.SettingMetadata metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getName()
The resource name of the setting. Must be in one of the following forms:
projects/{project_number}/settings/{setting_name}
folders/{folder_id}/settings/{setting_name}
organizations/{organization_id}/settings/{setting_name}
For example, "/projects/123/settings/gcp-enableMyFeature"
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name of the setting. Must be in one of the following forms:
projects/{project_number}/settings/{setting_name}
folders/{folder_id}/settings/{setting_name}
organizations/{organization_id}/settings/{setting_name}
For example, "/projects/123/settings/gcp-enableMyFeature"
string name = 1;
Returns
getParserForType()
public Parser<Setting> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasEffectiveValue()
public boolean hasEffectiveValue()
Output only. The computed effective value of the setting at the given parent resource
(based on the resource hierarchy).
The effective value evaluates to one of the following options in the given
order (the next option is used if the previous one does not exist):
- the local setting value on the given resource: Setting.local_value
- if one of the given resource's ancestors have a local setting value,
the local value at the nearest such ancestor
- the setting's default value: SettingMetadata.default_value
- an empty value (defined as a
Value
with all fields unset)
The data type of Value must always be
consistent with the data type defined in Setting.metadata.
.google.cloud.resourcesettings.v1.Value effective_value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the effectiveValue field is set.
|
hasLocalValue()
public boolean hasLocalValue()
The configured value of the setting at the given parent resource (ignoring
the resource hierarchy). The data type of Value must always be
consistent with the data type defined in Setting.metadata.
.google.cloud.resourcesettings.v1.Value local_value = 8;
Returns
Type | Description |
boolean | Whether the localValue field is set.
|
public boolean hasMetadata()
Output only. Metadata about a setting which is not editable by the end user.
.google.cloud.resourcesettings.v1.SettingMetadata metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the metadata field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Setting.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Setting.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Setting.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions