Send feedback
Class Settings (0.20.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.20.0 keyboard_arrow_down
public final class Settings extends GeneratedMessageV3 implements SettingsOrBuilder
Settings for Advisory Notifications.
Protobuf type google.cloud.advisorynotifications.v1.Settings
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Field Value Type Description int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value Type Description int
NOTIFICATION_SETTINGS_FIELD_NUMBER
public static final int NOTIFICATION_SETTINGS_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static Settings getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Settings . Builder newBuilder ()
newBuilder(Settings prototype)
public static Settings . Builder newBuilder ( Settings prototype )
Parameter Name Description prototype
Settings
public static Settings parseDelimitedFrom ( InputStream input )
public static Settings parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Settings parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Settings parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Settings parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Settings parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Settings parseFrom ( CodedInputStream input )
public static Settings parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Settings parseFrom ( InputStream input )
public static Settings parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Settings parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Settings parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Settings> parser ()
Methods
containsNotificationSettings(String key)
public boolean containsNotificationSettings ( String key )
Required. Map of each notification type and its settings to get/set all
settings at once. The server will validate the value for each notification
type.
map<string, .google.cloud.advisorynotifications.v1.NotificationSettings> notification_settings = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter Name Description key
String
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getDefaultInstanceForType()
public Settings getDefaultInstanceForType ()
getEtag()
Required. Fingerprint for optimistic concurrency returned in Get requests.
Must be provided for Update requests. If the value provided does not match
the value known to the server, ABORTED will be thrown, and the client
should retry the read-modify-write cycle.
string etag = 3 [(.google.api.field_behavior) = REQUIRED];
Returns Type Description String
The etag.
getEtagBytes()
public ByteString getEtagBytes ()
Required. Fingerprint for optimistic concurrency returned in Get requests.
Must be provided for Update requests. If the value provided does not match
the value known to the server, ABORTED will be thrown, and the client
should retry the read-modify-write cycle.
string etag = 3 [(.google.api.field_behavior) = REQUIRED];
Returns Type Description ByteString
The bytes for etag.
getName()
Output only. The resource name of the settings to retrieve.
Format:
organizations/{organization}/locations/{location}/settings.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description String
The name.
getNameBytes()
public ByteString getNameBytes ()
Output only. The resource name of the settings to retrieve.
Format:
organizations/{organization}/locations/{location}/settings.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description ByteString
The bytes for name.
getNotificationSettings() (deprecated)
public Map<String , NotificationSettings > getNotificationSettings ()
getNotificationSettingsCount()
public int getNotificationSettingsCount ()
Required. Map of each notification type and its settings to get/set all
settings at once. The server will validate the value for each notification
type.
map<string, .google.cloud.advisorynotifications.v1.NotificationSettings> notification_settings = 2 [(.google.api.field_behavior) = REQUIRED];
Returns Type Description int
getNotificationSettingsMap()
public Map<String , NotificationSettings > getNotificationSettingsMap ()
Required. Map of each notification type and its settings to get/set all
settings at once. The server will validate the value for each notification
type.
map<string, .google.cloud.advisorynotifications.v1.NotificationSettings> notification_settings = 2 [(.google.api.field_behavior) = REQUIRED];
getNotificationSettingsOrDefault(String key, NotificationSettings defaultValue)
public NotificationSettings getNotificationSettingsOrDefault ( String key , NotificationSettings defaultValue )
Required. Map of each notification type and its settings to get/set all
settings at once. The server will validate the value for each notification
type.
map<string, .google.cloud.advisorynotifications.v1.NotificationSettings> notification_settings = 2 [(.google.api.field_behavior) = REQUIRED];
getNotificationSettingsOrThrow(String key)
public NotificationSettings getNotificationSettingsOrThrow ( String key )
Required. Map of each notification type and its settings to get/set all
settings at once. The server will validate the value for each notification
type.
map<string, .google.cloud.advisorynotifications.v1.NotificationSettings> notification_settings = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter Name Description key
String
getParserForType()
public Parser<Settings> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
Overrides
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField ( int number )
Parameter Name Description number
int
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Settings . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Settings . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public Settings . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]