Class Backup.ClusterMetadata

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

public static final class Backup.ClusterMetadata extends com.google.protobuf.GeneratedMessage implements Backup.ClusterMetadataOrBuilder
 Information about the GKE cluster from which this Backup was created.
 
Protobuf type google.cloud.gkebackup.v1.Backup.ClusterMetadata
See Also:
  • Field Details

    • CLUSTER_FIELD_NUMBER

      public static final int CLUSTER_FIELD_NUMBER
      See Also:
    • K8S_VERSION_FIELD_NUMBER

      public static final int K8S_VERSION_FIELD_NUMBER
      See Also:
    • BACKUP_CRD_VERSIONS_FIELD_NUMBER

      public static final int BACKUP_CRD_VERSIONS_FIELD_NUMBER
      See Also:
    • GKE_VERSION_FIELD_NUMBER

      public static final int GKE_VERSION_FIELD_NUMBER
      See Also:
    • ANTHOS_VERSION_FIELD_NUMBER

      public static final int ANTHOS_VERSION_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getPlatformVersionCase

      public Backup.ClusterMetadata.PlatformVersionCase getPlatformVersionCase()
      Specified by:
      getPlatformVersionCase in interface Backup.ClusterMetadataOrBuilder
    • 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.
    • 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.
    • 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
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Backup.ClusterMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup.ClusterMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup.ClusterMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup.ClusterMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup.ClusterMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup.ClusterMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup.ClusterMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Backup.ClusterMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Backup.ClusterMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Backup.ClusterMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Backup.ClusterMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Backup.ClusterMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Backup.ClusterMetadata.Builder newBuilder()
    • newBuilder

      public static Backup.ClusterMetadata.Builder newBuilder(Backup.ClusterMetadata prototype)
    • toBuilder

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

      protected Backup.ClusterMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Backup.ClusterMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Backup.ClusterMetadata> parser()
    • getParserForType

      public com.google.protobuf.Parser<Backup.ClusterMetadata> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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