public static final class Settings.Builder extends GeneratedMessageV3.Builder<Settings.Builder> implements SettingsOrBuilder
Settings for Advisory Notifications.
Protobuf type google.cloud.advisorynotifications.v1.Settings
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Settings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Settings buildPartial()
clear()
public Settings.Builder clear()
Overrides
clearEtag()
public Settings.Builder clearEtag()
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];
clearField(Descriptors.FieldDescriptor field)
public Settings.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public Settings.Builder clearName()
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];
clearNotificationSettings()
public Settings.Builder clearNotificationSettings()
clearOneof(Descriptors.OneofDescriptor oneof)
public Settings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Settings.Builder clone()
Overrides
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
|
getDefaultInstanceForType()
public Settings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
getMutableNotificationSettings() (deprecated)
public Map<String,NotificationSettings> getMutableNotificationSettings()
Use alternate mutation accessors instead.
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
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Settings other)
public Settings.Builder mergeFrom(Settings other)
public Settings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Settings.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Settings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllNotificationSettings(Map<String,NotificationSettings> values)
public Settings.Builder putAllNotificationSettings(Map<String,NotificationSettings> values)
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];
putNotificationSettings(String key, NotificationSettings value)
public Settings.Builder putNotificationSettings(String key, NotificationSettings value)
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];
removeNotificationSettings(String key)
public Settings.Builder removeNotificationSettings(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
|
setEtag(String value)
public Settings.Builder setEtag(String value)
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];
Parameter |
---|
Name | Description |
value | String
The etag to set.
|
setEtagBytes(ByteString value)
public Settings.Builder setEtagBytes(ByteString value)
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];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for etag to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Settings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setName(String value)
public Settings.Builder setName(String value)
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];
Parameter |
---|
Name | Description |
value | String
The name to set.
|
setNameBytes(ByteString value)
public Settings.Builder setNameBytes(ByteString value)
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];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Settings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Settings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides