Class Settings (0.23.0)

public final class Settings extends GeneratedMessageV3 implements SettingsOrBuilder

Settings for Advisory Notifications.

Protobuf type google.cloud.advisorynotifications.v1.Settings

Implements

SettingsOrBuilder

Static Fields

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NOTIFICATION_SETTINGS_FIELD_NUMBER

public static final int NOTIFICATION_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Settings getDefaultInstance()
Returns
TypeDescription
Settings

getDescriptor()

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

newBuilder()

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

newBuilder(Settings prototype)

public static Settings.Builder newBuilder(Settings prototype)
Parameter
NameDescription
prototypeSettings
Returns
TypeDescription
Settings.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Settings getDefaultInstanceForType()
Returns
TypeDescription
Settings

getEtag()

public String 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
TypeDescription
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
TypeDescription
ByteString

The bytes for etag.

getName()

public String 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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getNotificationSettings() (deprecated)

public Map<String,NotificationSettings> getNotificationSettings()
Returns
TypeDescription
Map<String,NotificationSettings>

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
TypeDescription
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];

Returns
TypeDescription
Map<String,NotificationSettings>

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];

Parameters
NameDescription
keyString
defaultValueNotificationSettings
Returns
TypeDescription
NotificationSettings

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
NameDescription
keyString
Returns
TypeDescription
NotificationSettings

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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