Class Settings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Settings.Builder>
com.google.cloud.advisorynotifications.v1.Settings.Builder
All Implemented Interfaces:
SettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Settings

public static final class Settings.Builder extends com.google.protobuf.GeneratedMessage.Builder<Settings.Builder> implements SettingsOrBuilder
 Settings for Advisory Notifications.
 
Protobuf type google.cloud.advisorynotifications.v1.Settings
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Settings.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Settings.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Settings.Builder>
    • clear

      public Settings.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Settings.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Settings.Builder>
    • getDefaultInstanceForType

      public Settings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Settings build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Settings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Settings.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Settings.Builder>
    • mergeFrom

      public Settings.Builder mergeFrom(Settings other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Settings.Builder>
    • mergeFrom

      public Settings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Settings.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The resource name of the settings to retrieve.
       Format:
       organizations/{organization}/locations/{location}/settings or
       projects/{projects}/locations/{location}/settings.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface SettingsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the settings to retrieve.
       Format:
       organizations/{organization}/locations/{location}/settings or
       projects/{projects}/locations/{location}/settings.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface SettingsOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Settings.Builder setName(String value)
       Identifier. The resource name of the settings to retrieve.
       Format:
       organizations/{organization}/locations/{location}/settings or
       projects/{projects}/locations/{location}/settings.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Settings.Builder clearName()
       Identifier. The resource name of the settings to retrieve.
       Format:
       organizations/{organization}/locations/{location}/settings or
       projects/{projects}/locations/{location}/settings.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Settings.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the settings to retrieve.
       Format:
       organizations/{organization}/locations/{location}/settings or
       projects/{projects}/locations/{location}/settings.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getNotificationSettingsCount

      public int getNotificationSettingsCount()
      Description copied from interface: SettingsOrBuilder
       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];
      Specified by:
      getNotificationSettingsCount in interface SettingsOrBuilder
    • containsNotificationSettings

      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];
      Specified by:
      containsNotificationSettings in interface SettingsOrBuilder
    • getNotificationSettings

      @Deprecated public Map<String,NotificationSettings> getNotificationSettings()
      Deprecated.
      Specified by:
      getNotificationSettings in interface SettingsOrBuilder
    • 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];
      Specified by:
      getNotificationSettingsMap in interface SettingsOrBuilder
    • getNotificationSettingsOrDefault

      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];
      Specified by:
      getNotificationSettingsOrDefault in interface SettingsOrBuilder
    • getNotificationSettingsOrThrow

      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];
      Specified by:
      getNotificationSettingsOrThrow in interface SettingsOrBuilder
    • clearNotificationSettings

      public Settings.Builder clearNotificationSettings()
    • removeNotificationSettings

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

      @Deprecated public Map<String,NotificationSettings> getMutableNotificationSettings()
      Deprecated.
      Use alternate mutation accessors instead.
    • putNotificationSettings

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

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

      public NotificationSettings.Builder putNotificationSettingsBuilderIfAbsent(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];
    • 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];
      Specified by:
      getEtag in interface SettingsOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public 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];
      Specified by:
      getEtagBytes in interface SettingsOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      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];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • 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];
      Returns:
      This builder for chaining.
    • setEtagBytes

      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];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.