Class AutonomousDatabaseBackup.Builder

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

public static final class AutonomousDatabaseBackup.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutonomousDatabaseBackup.Builder> implements AutonomousDatabaseBackupOrBuilder
 Details of the Autonomous Database Backup resource.
 https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/
 
Protobuf type google.cloud.oracledatabase.v1.AutonomousDatabaseBackup
  • 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<AutonomousDatabaseBackup.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AutonomousDatabaseBackup.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<AutonomousDatabaseBackup.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<AutonomousDatabaseBackup.Builder>
    • getDefaultInstanceForType

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

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

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

      public AutonomousDatabaseBackup.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<AutonomousDatabaseBackup.Builder>
    • mergeFrom

    • isInitialized

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

      public AutonomousDatabaseBackup.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<AutonomousDatabaseBackup.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The name of the Autonomous Database Backup resource with the
       format:
       projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface AutonomousDatabaseBackupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the Autonomous Database Backup resource with the
       format:
       projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface AutonomousDatabaseBackupOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AutonomousDatabaseBackup.Builder setName(String value)
       Identifier. The name of the Autonomous Database Backup resource with the
       format:
       projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Identifier. The name of the Autonomous Database Backup resource with the
       format:
       projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AutonomousDatabaseBackup.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the Autonomous Database Backup resource with the
       format:
       projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getAutonomousDatabase

      public String getAutonomousDatabase()
       Required. The name of the Autonomous Database resource for which the backup
       is being created. Format:
       projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
       
      string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getAutonomousDatabase in interface AutonomousDatabaseBackupOrBuilder
      Returns:
      The autonomousDatabase.
    • getAutonomousDatabaseBytes

      public com.google.protobuf.ByteString getAutonomousDatabaseBytes()
       Required. The name of the Autonomous Database resource for which the backup
       is being created. Format:
       projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
       
      string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getAutonomousDatabaseBytes in interface AutonomousDatabaseBackupOrBuilder
      Returns:
      The bytes for autonomousDatabase.
    • setAutonomousDatabase

      public AutonomousDatabaseBackup.Builder setAutonomousDatabase(String value)
       Required. The name of the Autonomous Database resource for which the backup
       is being created. Format:
       projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
       
      string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The autonomousDatabase to set.
      Returns:
      This builder for chaining.
    • clearAutonomousDatabase

      public AutonomousDatabaseBackup.Builder clearAutonomousDatabase()
       Required. The name of the Autonomous Database resource for which the backup
       is being created. Format:
       projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
       
      string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAutonomousDatabaseBytes

      public AutonomousDatabaseBackup.Builder setAutonomousDatabaseBytes(com.google.protobuf.ByteString value)
       Required. The name of the Autonomous Database resource for which the backup
       is being created. Format:
       projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
       
      string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for autonomousDatabase to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Optional. User friendly name for the Backup. The name does not have to be
       unique.
       
      string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface AutonomousDatabaseBackupOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. User friendly name for the Backup. The name does not have to be
       unique.
       
      string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface AutonomousDatabaseBackupOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public AutonomousDatabaseBackup.Builder setDisplayName(String value)
       Optional. User friendly name for the Backup. The name does not have to be
       unique.
       
      string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public AutonomousDatabaseBackup.Builder clearDisplayName()
       Optional. User friendly name for the Backup. The name does not have to be
       unique.
       
      string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public AutonomousDatabaseBackup.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. User friendly name for the Backup. The name does not have to be
       unique.
       
      string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasProperties

      public boolean hasProperties()
       Optional. Various properties of the backup.
       
      .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasProperties in interface AutonomousDatabaseBackupOrBuilder
      Returns:
      Whether the properties field is set.
    • getProperties

      public AutonomousDatabaseBackupProperties getProperties()
       Optional. Various properties of the backup.
       
      .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProperties in interface AutonomousDatabaseBackupOrBuilder
      Returns:
      The properties.
    • setProperties

       Optional. Various properties of the backup.
       
      .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setProperties

       Optional. Various properties of the backup.
       
      .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeProperties

       Optional. Various properties of the backup.
       
      .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearProperties

      public AutonomousDatabaseBackup.Builder clearProperties()
       Optional. Various properties of the backup.
       
      .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getPropertiesBuilder

      public AutonomousDatabaseBackupProperties.Builder getPropertiesBuilder()
       Optional. Various properties of the backup.
       
      .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getPropertiesOrBuilder

      public AutonomousDatabaseBackupPropertiesOrBuilder getPropertiesOrBuilder()
       Optional. Various properties of the backup.
       
      .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPropertiesOrBuilder in interface AutonomousDatabaseBackupOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: AutonomousDatabaseBackupOrBuilder
       Optional. labels or tags associated with the resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface AutonomousDatabaseBackupOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. labels or tags associated with the resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface AutonomousDatabaseBackupOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface AutonomousDatabaseBackupOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. labels or tags associated with the resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface AutonomousDatabaseBackupOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. labels or tags associated with the resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface AutonomousDatabaseBackupOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. labels or tags associated with the resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface AutonomousDatabaseBackupOrBuilder
    • clearLabels

      public AutonomousDatabaseBackup.Builder clearLabels()
    • removeLabels

      public AutonomousDatabaseBackup.Builder removeLabels(String key)
       Optional. labels or tags associated with the resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public AutonomousDatabaseBackup.Builder putLabels(String key, String value)
       Optional. labels or tags associated with the resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public AutonomousDatabaseBackup.Builder putAllLabels(Map<String,String> values)
       Optional. labels or tags associated with the resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];