Class Backup.ClusterMetadata.Builder

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

public static final class Backup.ClusterMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<Backup.ClusterMetadata.Builder> implements Backup.ClusterMetadataOrBuilder
 Information about the GKE cluster from which this Backup was created.
 
Protobuf type google.cloud.gkebackup.v1.Backup.ClusterMetadata
  • 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<Backup.ClusterMetadata.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

      public Backup.ClusterMetadata.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<Backup.ClusterMetadata.Builder>
      Throws:
      IOException
    • getPlatformVersionCase

      public Backup.ClusterMetadata.PlatformVersionCase getPlatformVersionCase()
      Specified by:
      getPlatformVersionCase in interface Backup.ClusterMetadataOrBuilder
    • clearPlatformVersion

      public Backup.ClusterMetadata.Builder clearPlatformVersion()
    • getCluster

      public String getCluster()
       Output only. The source cluster from which this Backup was created.
       Valid formats:
      
       - `projects/*/locations/*/clusters/*`
       - `projects/*/zones/*/clusters/*`
      
       This is inherited from the parent BackupPlan's
       [cluster][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
       
      string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCluster in interface Backup.ClusterMetadataOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       Output only. The source cluster from which this Backup was created.
       Valid formats:
      
       - `projects/*/locations/*/clusters/*`
       - `projects/*/zones/*/clusters/*`
      
       This is inherited from the parent BackupPlan's
       [cluster][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
       
      string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClusterBytes in interface Backup.ClusterMetadataOrBuilder
      Returns:
      The bytes for cluster.
    • setCluster

      public Backup.ClusterMetadata.Builder setCluster(String value)
       Output only. The source cluster from which this Backup was created.
       Valid formats:
      
       - `projects/*/locations/*/clusters/*`
       - `projects/*/zones/*/clusters/*`
      
       This is inherited from the parent BackupPlan's
       [cluster][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
       
      string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The cluster to set.
      Returns:
      This builder for chaining.
    • clearCluster

      public Backup.ClusterMetadata.Builder clearCluster()
       Output only. The source cluster from which this Backup was created.
       Valid formats:
      
       - `projects/*/locations/*/clusters/*`
       - `projects/*/zones/*/clusters/*`
      
       This is inherited from the parent BackupPlan's
       [cluster][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
       
      string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setClusterBytes

      public Backup.ClusterMetadata.Builder setClusterBytes(com.google.protobuf.ByteString value)
       Output only. The source cluster from which this Backup was created.
       Valid formats:
      
       - `projects/*/locations/*/clusters/*`
       - `projects/*/zones/*/clusters/*`
      
       This is inherited from the parent BackupPlan's
       [cluster][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
       
      string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for cluster to set.
      Returns:
      This builder for chaining.
    • getK8SVersion

      public String getK8SVersion()
       Output only. The Kubernetes server version of the source cluster.
       
      string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getK8SVersion in interface Backup.ClusterMetadataOrBuilder
      Returns:
      The k8sVersion.
    • getK8SVersionBytes

      public com.google.protobuf.ByteString getK8SVersionBytes()
       Output only. The Kubernetes server version of the source cluster.
       
      string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getK8SVersionBytes in interface Backup.ClusterMetadataOrBuilder
      Returns:
      The bytes for k8sVersion.
    • setK8SVersion

      public Backup.ClusterMetadata.Builder setK8SVersion(String value)
       Output only. The Kubernetes server version of the source cluster.
       
      string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The k8sVersion to set.
      Returns:
      This builder for chaining.
    • clearK8SVersion

      public Backup.ClusterMetadata.Builder clearK8SVersion()
       Output only. The Kubernetes server version of the source cluster.
       
      string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setK8SVersionBytes

      public Backup.ClusterMetadata.Builder setK8SVersionBytes(com.google.protobuf.ByteString value)
       Output only. The Kubernetes server version of the source cluster.
       
      string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for k8sVersion to set.
      Returns:
      This builder for chaining.
    • getBackupCrdVersionsCount

      public int getBackupCrdVersionsCount()
      Description copied from interface: Backup.ClusterMetadataOrBuilder
       Output only. A list of the Backup for GKE CRD versions found in the
       cluster.
       
      map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupCrdVersionsCount in interface Backup.ClusterMetadataOrBuilder
    • containsBackupCrdVersions

      public boolean containsBackupCrdVersions(String key)
       Output only. A list of the Backup for GKE CRD versions found in the
       cluster.
       
      map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsBackupCrdVersions in interface Backup.ClusterMetadataOrBuilder
    • getBackupCrdVersions

      @Deprecated public Map<String,String> getBackupCrdVersions()
      Deprecated.
      Specified by:
      getBackupCrdVersions in interface Backup.ClusterMetadataOrBuilder
    • getBackupCrdVersionsMap

      public Map<String,String> getBackupCrdVersionsMap()
       Output only. A list of the Backup for GKE CRD versions found in the
       cluster.
       
      map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupCrdVersionsMap in interface Backup.ClusterMetadataOrBuilder
    • getBackupCrdVersionsOrDefault

      public String getBackupCrdVersionsOrDefault(String key, String defaultValue)
       Output only. A list of the Backup for GKE CRD versions found in the
       cluster.
       
      map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupCrdVersionsOrDefault in interface Backup.ClusterMetadataOrBuilder
    • getBackupCrdVersionsOrThrow

      public String getBackupCrdVersionsOrThrow(String key)
       Output only. A list of the Backup for GKE CRD versions found in the
       cluster.
       
      map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupCrdVersionsOrThrow in interface Backup.ClusterMetadataOrBuilder
    • clearBackupCrdVersions

      public Backup.ClusterMetadata.Builder clearBackupCrdVersions()
    • removeBackupCrdVersions

      public Backup.ClusterMetadata.Builder removeBackupCrdVersions(String key)
       Output only. A list of the Backup for GKE CRD versions found in the
       cluster.
       
      map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableBackupCrdVersions

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

      public Backup.ClusterMetadata.Builder putBackupCrdVersions(String key, String value)
       Output only. A list of the Backup for GKE CRD versions found in the
       cluster.
       
      map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllBackupCrdVersions

      public Backup.ClusterMetadata.Builder putAllBackupCrdVersions(Map<String,String> values)
       Output only. A list of the Backup for GKE CRD versions found in the
       cluster.
       
      map<string, string> backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasGkeVersion

      public boolean hasGkeVersion()
       Output only. GKE version
       
      string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasGkeVersion in interface Backup.ClusterMetadataOrBuilder
      Returns:
      Whether the gkeVersion field is set.
    • getGkeVersion

      public String getGkeVersion()
       Output only. GKE version
       
      string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGkeVersion in interface Backup.ClusterMetadataOrBuilder
      Returns:
      The gkeVersion.
    • getGkeVersionBytes

      public com.google.protobuf.ByteString getGkeVersionBytes()
       Output only. GKE version
       
      string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGkeVersionBytes in interface Backup.ClusterMetadataOrBuilder
      Returns:
      The bytes for gkeVersion.
    • setGkeVersion

      public Backup.ClusterMetadata.Builder setGkeVersion(String value)
       Output only. GKE version
       
      string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The gkeVersion to set.
      Returns:
      This builder for chaining.
    • clearGkeVersion

      public Backup.ClusterMetadata.Builder clearGkeVersion()
       Output only. GKE version
       
      string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setGkeVersionBytes

      public Backup.ClusterMetadata.Builder setGkeVersionBytes(com.google.protobuf.ByteString value)
       Output only. GKE version
       
      string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for gkeVersion to set.
      Returns:
      This builder for chaining.
    • hasAnthosVersion

      public boolean hasAnthosVersion()
       Output only. Anthos version
       
      string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasAnthosVersion in interface Backup.ClusterMetadataOrBuilder
      Returns:
      Whether the anthosVersion field is set.
    • getAnthosVersion

      public String getAnthosVersion()
       Output only. Anthos version
       
      string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAnthosVersion in interface Backup.ClusterMetadataOrBuilder
      Returns:
      The anthosVersion.
    • getAnthosVersionBytes

      public com.google.protobuf.ByteString getAnthosVersionBytes()
       Output only. Anthos version
       
      string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAnthosVersionBytes in interface Backup.ClusterMetadataOrBuilder
      Returns:
      The bytes for anthosVersion.
    • setAnthosVersion

      public Backup.ClusterMetadata.Builder setAnthosVersion(String value)
       Output only. Anthos version
       
      string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The anthosVersion to set.
      Returns:
      This builder for chaining.
    • clearAnthosVersion

      public Backup.ClusterMetadata.Builder clearAnthosVersion()
       Output only. Anthos version
       
      string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setAnthosVersionBytes

      public Backup.ClusterMetadata.Builder setAnthosVersionBytes(com.google.protobuf.ByteString value)
       Output only. Anthos version
       
      string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for anthosVersion to set.
      Returns:
      This builder for chaining.