Class Setting
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.resourcesettings.v1.Setting
-
- All Implemented Interfaces:
SettingOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Setting extends com.google.protobuf.GeneratedMessageV3 implements SettingOrBuilder
The schema for settings.
Protobuf typegoogle.cloud.resourcesettings.v1.Setting- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSetting.BuilderThe schema for settings.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intEFFECTIVE_VALUE_FIELD_NUMBERstatic intETAG_FIELD_NUMBERstatic intLOCAL_VALUE_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intNAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static SettinggetDefaultInstance()SettinggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()ValuegetEffectiveValue()Output only.ValueOrBuildergetEffectiveValueOrBuilder()Output only.StringgetEtag()A fingerprint used for optimistic concurrency.com.google.protobuf.ByteStringgetEtagBytes()A fingerprint used for optimistic concurrency.ValuegetLocalValue()The configured value of the setting at the given parent resource (ignoring the resource hierarchy).ValueOrBuildergetLocalValueOrBuilder()The configured value of the setting at the given parent resource (ignoring the resource hierarchy).SettingMetadatagetMetadata()Output only.SettingMetadataOrBuildergetMetadataOrBuilder()Output only.StringgetName()The resource name of the setting.com.google.protobuf.ByteStringgetNameBytes()The resource name of the setting.com.google.protobuf.Parser<Setting>getParserForType()intgetSerializedSize()booleanhasEffectiveValue()Output only.inthashCode()booleanhasLocalValue()The configured value of the setting at the given parent resource (ignoring the resource hierarchy).booleanhasMetadata()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Setting.BuildernewBuilder()static Setting.BuildernewBuilder(Setting prototype)Setting.BuildernewBuilderForType()protected Setting.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SettingparseDelimitedFrom(InputStream input)static SettingparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SettingparseFrom(byte[] data)static SettingparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SettingparseFrom(com.google.protobuf.ByteString data)static SettingparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SettingparseFrom(com.google.protobuf.CodedInputStream input)static SettingparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SettingparseFrom(InputStream input)static SettingparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SettingparseFrom(ByteBuffer data)static SettingparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Setting>parser()Setting.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCAL_VALUE_FIELD_NUMBER
public static final int LOCAL_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EFFECTIVE_VALUE_FIELD_NUMBER
public static final int EFFECTIVE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String 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;- Specified by:
getNamein interfaceSettingOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceSettingOrBuilder- Returns:
- The bytes for name.
-
hasMetadata
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];- Specified by:
hasMetadatain interfaceSettingOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
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];- Specified by:
getMetadatain interfaceSettingOrBuilder- Returns:
- The metadata.
-
getMetadataOrBuilder
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];- Specified by:
getMetadataOrBuilderin interfaceSettingOrBuilder
-
hasLocalValue
public boolean hasLocalValue()
The configured value of the setting at the given parent resource (ignoring the resource hierarchy). The data type of [Value][google.cloud.resourcesettings.v1.Value] must always be consistent with the data type defined in [Setting.metadata][google.cloud.resourcesettings.v1.Setting.metadata].
.google.cloud.resourcesettings.v1.Value local_value = 8;- Specified by:
hasLocalValuein interfaceSettingOrBuilder- Returns:
- Whether the localValue field is set.
-
getLocalValue
public Value getLocalValue()
The configured value of the setting at the given parent resource (ignoring the resource hierarchy). The data type of [Value][google.cloud.resourcesettings.v1.Value] must always be consistent with the data type defined in [Setting.metadata][google.cloud.resourcesettings.v1.Setting.metadata].
.google.cloud.resourcesettings.v1.Value local_value = 8;- Specified by:
getLocalValuein interfaceSettingOrBuilder- Returns:
- 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][google.cloud.resourcesettings.v1.Value] must always be consistent with the data type defined in [Setting.metadata][google.cloud.resourcesettings.v1.Setting.metadata].
.google.cloud.resourcesettings.v1.Value local_value = 8;- Specified by:
getLocalValueOrBuilderin interfaceSettingOrBuilder
-
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): 1. the local setting value on the given resource: [Setting.local_value][google.cloud.resourcesettings.v1.Setting.local_value] 2. if one of the given resource's ancestors have a local setting value, the local value at the nearest such ancestor 3. the setting's default value: [SettingMetadata.default_value][google.cloud.resourcesettings.v1.SettingMetadata.default_value] 4. an empty value (defined as a `Value` with all fields unset) The data type of [Value][google.cloud.resourcesettings.v1.Value] must always be consistent with the data type defined in [Setting.metadata][google.cloud.resourcesettings.v1.Setting.metadata]..google.cloud.resourcesettings.v1.Value effective_value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEffectiveValuein interfaceSettingOrBuilder- Returns:
- Whether the effectiveValue field is set.
-
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): 1. the local setting value on the given resource: [Setting.local_value][google.cloud.resourcesettings.v1.Setting.local_value] 2. if one of the given resource's ancestors have a local setting value, the local value at the nearest such ancestor 3. the setting's default value: [SettingMetadata.default_value][google.cloud.resourcesettings.v1.SettingMetadata.default_value] 4. an empty value (defined as a `Value` with all fields unset) The data type of [Value][google.cloud.resourcesettings.v1.Value] must always be consistent with the data type defined in [Setting.metadata][google.cloud.resourcesettings.v1.Setting.metadata]..google.cloud.resourcesettings.v1.Value effective_value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEffectiveValuein interfaceSettingOrBuilder- Returns:
- 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): 1. the local setting value on the given resource: [Setting.local_value][google.cloud.resourcesettings.v1.Setting.local_value] 2. if one of the given resource's ancestors have a local setting value, the local value at the nearest such ancestor 3. the setting's default value: [SettingMetadata.default_value][google.cloud.resourcesettings.v1.SettingMetadata.default_value] 4. an empty value (defined as a `Value` with all fields unset) The data type of [Value][google.cloud.resourcesettings.v1.Value] must always be consistent with the data type defined in [Setting.metadata][google.cloud.resourcesettings.v1.Setting.metadata]..google.cloud.resourcesettings.v1.Value effective_value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEffectiveValueOrBuilderin interfaceSettingOrBuilder
-
getEtag
public String getEtag()
A fingerprint used for optimistic concurrency. See [UpdateSetting][google.cloud.resourcesettings.v1.ResourceSettingsService.UpdateSetting] for more details.
string etag = 10;- Specified by:
getEtagin interfaceSettingOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()
A fingerprint used for optimistic concurrency. See [UpdateSetting][google.cloud.resourcesettings.v1.ResourceSettingsService.UpdateSetting] for more details.
string etag = 10;- Specified by:
getEtagBytesin interfaceSettingOrBuilder- Returns:
- The bytes for etag.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Setting parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Setting parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Setting parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Setting parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Setting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Setting parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Setting parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Setting parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Setting parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Setting parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Setting parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Setting parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Setting.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Setting.Builder newBuilder()
-
newBuilder
public static Setting.Builder newBuilder(Setting prototype)
-
toBuilder
public Setting.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Setting.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Setting getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Setting> parser()
-
getParserForType
public com.google.protobuf.Parser<Setting> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Setting getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-