public static final class Settings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder> implements SettingsOrBuilder
Settings for Advisory Notifications.Protobuf type
google.cloud.advisorynotifications.v1.Settings| Modifier and Type | Method and Description |
|---|---|
Settings.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Settings |
build() |
Settings |
buildPartial() |
Settings.Builder |
clear() |
Settings.Builder |
clearEtag()
Required.
|
Settings.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Settings.Builder |
clearName()
Output only.
|
Settings.Builder |
clearNotificationSettings() |
Settings.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Settings.Builder |
clone() |
boolean |
containsNotificationSettings(String key)
Required.
|
Settings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEtag()
Required.
|
com.google.protobuf.ByteString |
getEtagBytes()
Required.
|
Map<String,NotificationSettings> |
getMutableNotificationSettings()
Deprecated.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
Map<String,NotificationSettings> |
getNotificationSettings()
Deprecated.
|
int |
getNotificationSettingsCount()
Required.
|
Map<String,NotificationSettings> |
getNotificationSettingsMap()
Required.
|
NotificationSettings |
getNotificationSettingsOrDefault(String key,
NotificationSettings defaultValue)
Required.
|
NotificationSettings |
getNotificationSettingsOrThrow(String key)
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Settings.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Settings.Builder |
mergeFrom(com.google.protobuf.Message other) |
Settings.Builder |
mergeFrom(Settings other) |
Settings.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Settings.Builder |
putAllNotificationSettings(Map<String,NotificationSettings> values)
Required.
|
Settings.Builder |
putNotificationSettings(String key,
NotificationSettings value)
Required.
|
Settings.Builder |
removeNotificationSettings(String key)
Required.
|
Settings.Builder |
setEtag(String value)
Required.
|
Settings.Builder |
setEtagBytes(com.google.protobuf.ByteString value)
Required.
|
Settings.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Settings.Builder |
setName(String value)
Output only.
|
Settings.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
Settings.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Settings.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public Settings.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public Settings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Settings build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Settings buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Settings.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public Settings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public Settings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public Settings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public Settings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public Settings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public Settings.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Settings.Builder>public Settings.Builder mergeFrom(Settings other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public Settings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Settings.Builder>IOExceptionpublic 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];getName in interface SettingsOrBuilderpublic com.google.protobuf.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];getNameBytes in interface SettingsOrBuilderpublic 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];value - The name to set.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];public Settings.Builder setNameBytes(com.google.protobuf.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];value - The bytes for name to set.public int getNotificationSettingsCount()
SettingsOrBuilderRequired. 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];
getNotificationSettingsCount in interface SettingsOrBuilderpublic 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];
containsNotificationSettings in interface SettingsOrBuilder@Deprecated public Map<String,NotificationSettings> getNotificationSettings()
getNotificationSettingsMap() instead.getNotificationSettings in interface SettingsOrBuilderpublic 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];
getNotificationSettingsMap in interface SettingsOrBuilderpublic 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];
getNotificationSettingsOrDefault in interface SettingsOrBuilderpublic 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];
getNotificationSettingsOrThrow in interface SettingsOrBuilderpublic Settings.Builder clearNotificationSettings()
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];
@Deprecated public Map<String,NotificationSettings> getMutableNotificationSettings()
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];
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];
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];getEtag in interface SettingsOrBuilderpublic com.google.protobuf.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];getEtagBytes in interface SettingsOrBuilderpublic 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];value - The etag to set.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];public Settings.Builder setEtagBytes(com.google.protobuf.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];value - The bytes for etag to set.public final Settings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>public final Settings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Settings.Builder>Copyright © 2023 Google LLC. All rights reserved.