public static final class Backup.ClusterMetadata.Builder extends GeneratedMessageV3.Builder<Backup.ClusterMetadata.Builder> implements Backup.ClusterMetadataOrBuilder
Information about the GKE cluster from which this Backup was created.
Protobuf type google.events.cloud.gkebackup.v1.Backup.ClusterMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Backup.ClusterMetadata.BuilderImplements
Backup.ClusterMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Backup.ClusterMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
build()
public Backup.ClusterMetadata build()
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata |
buildPartial()
public Backup.ClusterMetadata buildPartial()
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata |
clear()
public Backup.ClusterMetadata.Builder clear()
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
clearAnthosVersion()
public Backup.ClusterMetadata.Builder clearAnthosVersion()
Anthos version
string anthos_version = 5;
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
clearBackupCrdVersions()
public Backup.ClusterMetadata.Builder clearBackupCrdVersions()
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
clearCluster()
public Backup.ClusterMetadata.Builder clearCluster()
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 field.
string cluster = 1;
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Backup.ClusterMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
clearGkeVersion()
public Backup.ClusterMetadata.Builder clearGkeVersion()
GKE version
string gke_version = 4;
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
clearK8SVersion()
public Backup.ClusterMetadata.Builder clearK8SVersion()
The Kubernetes server version of the source cluster.
string k8s_version = 2;
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Backup.ClusterMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
clearPlatformVersion()
public Backup.ClusterMetadata.Builder clearPlatformVersion()
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
clone()
public Backup.ClusterMetadata.Builder clone()
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
containsBackupCrdVersions(String key)
public boolean containsBackupCrdVersions(String key)
A list of the Backup for GKE CRD versions found in the cluster.
map<string, string> backup_crd_versions = 3;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getAnthosVersion()
public String getAnthosVersion()
Anthos version
string anthos_version = 5;
Returns | |
---|---|
Type | Description |
String | The anthosVersion. |
getAnthosVersionBytes()
public ByteString getAnthosVersionBytes()
Anthos version
string anthos_version = 5;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for anthosVersion. |
getBackupCrdVersions()
public Map<String,String> getBackupCrdVersions()
Use #getBackupCrdVersionsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getBackupCrdVersionsCount()
public int getBackupCrdVersionsCount()
A list of the Backup for GKE CRD versions found in the cluster.
map<string, string> backup_crd_versions = 3;
Returns | |
---|---|
Type | Description |
int |
getBackupCrdVersionsMap()
public Map<String,String> getBackupCrdVersionsMap()
A list of the Backup for GKE CRD versions found in the cluster.
map<string, string> backup_crd_versions = 3;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getBackupCrdVersionsOrDefault(String key, String defaultValue)
public String getBackupCrdVersionsOrDefault(String key, String defaultValue)
A list of the Backup for GKE CRD versions found in the cluster.
map<string, string> backup_crd_versions = 3;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getBackupCrdVersionsOrThrow(String key)
public String getBackupCrdVersionsOrThrow(String key)
A list of the Backup for GKE CRD versions found in the cluster.
map<string, string> backup_crd_versions = 3;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getCluster()
public String getCluster()
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 field.
string cluster = 1;
Returns | |
---|---|
Type | Description |
String | The cluster. |
getClusterBytes()
public ByteString getClusterBytes()
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 field.
string cluster = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for cluster. |
getDefaultInstanceForType()
public Backup.ClusterMetadata getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getGkeVersion()
public String getGkeVersion()
GKE version
string gke_version = 4;
Returns | |
---|---|
Type | Description |
String | The gkeVersion. |
getGkeVersionBytes()
public ByteString getGkeVersionBytes()
GKE version
string gke_version = 4;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for gkeVersion. |
getK8SVersion()
public String getK8SVersion()
The Kubernetes server version of the source cluster.
string k8s_version = 2;
Returns | |
---|---|
Type | Description |
String | The k8sVersion. |
getK8SVersionBytes()
public ByteString getK8SVersionBytes()
The Kubernetes server version of the source cluster.
string k8s_version = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for k8sVersion. |
getMutableBackupCrdVersions()
public Map<String,String> getMutableBackupCrdVersions()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getPlatformVersionCase()
public Backup.ClusterMetadata.PlatformVersionCase getPlatformVersionCase()
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.PlatformVersionCase |
hasAnthosVersion()
public boolean hasAnthosVersion()
Anthos version
string anthos_version = 5;
Returns | |
---|---|
Type | Description |
boolean | Whether the anthosVersion field is set. |
hasGkeVersion()
public boolean hasGkeVersion()
GKE version
string gke_version = 4;
Returns | |
---|---|
Type | Description |
boolean | Whether the gkeVersion field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Backup.ClusterMetadata other)
public Backup.ClusterMetadata.Builder mergeFrom(Backup.ClusterMetadata other)
Parameter | |
---|---|
Name | Description |
other | Backup.ClusterMetadata |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Backup.ClusterMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Backup.ClusterMetadata.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Backup.ClusterMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
putAllBackupCrdVersions(Map<String,String> values)
public Backup.ClusterMetadata.Builder putAllBackupCrdVersions(Map<String,String> values)
A list of the Backup for GKE CRD versions found in the cluster.
map<string, string> backup_crd_versions = 3;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
putBackupCrdVersions(String key, String value)
public Backup.ClusterMetadata.Builder putBackupCrdVersions(String key, String value)
A list of the Backup for GKE CRD versions found in the cluster.
map<string, string> backup_crd_versions = 3;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
removeBackupCrdVersions(String key)
public Backup.ClusterMetadata.Builder removeBackupCrdVersions(String key)
A list of the Backup for GKE CRD versions found in the cluster.
map<string, string> backup_crd_versions = 3;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
setAnthosVersion(String value)
public Backup.ClusterMetadata.Builder setAnthosVersion(String value)
Anthos version
string anthos_version = 5;
Parameter | |
---|---|
Name | Description |
value | String The anthosVersion to set. |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
setAnthosVersionBytes(ByteString value)
public Backup.ClusterMetadata.Builder setAnthosVersionBytes(ByteString value)
Anthos version
string anthos_version = 5;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for anthosVersion to set. |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
setCluster(String value)
public Backup.ClusterMetadata.Builder setCluster(String value)
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 field.
string cluster = 1;
Parameter | |
---|---|
Name | Description |
value | String The cluster to set. |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
setClusterBytes(ByteString value)
public Backup.ClusterMetadata.Builder setClusterBytes(ByteString value)
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 field.
string cluster = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for cluster to set. |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Backup.ClusterMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
setGkeVersion(String value)
public Backup.ClusterMetadata.Builder setGkeVersion(String value)
GKE version
string gke_version = 4;
Parameter | |
---|---|
Name | Description |
value | String The gkeVersion to set. |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
setGkeVersionBytes(ByteString value)
public Backup.ClusterMetadata.Builder setGkeVersionBytes(ByteString value)
GKE version
string gke_version = 4;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for gkeVersion to set. |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
setK8SVersion(String value)
public Backup.ClusterMetadata.Builder setK8SVersion(String value)
The Kubernetes server version of the source cluster.
string k8s_version = 2;
Parameter | |
---|---|
Name | Description |
value | String The k8sVersion to set. |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
setK8SVersionBytes(ByteString value)
public Backup.ClusterMetadata.Builder setK8SVersionBytes(ByteString value)
The Kubernetes server version of the source cluster.
string k8s_version = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for k8sVersion to set. |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Backup.ClusterMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Backup.ClusterMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Backup.ClusterMetadata.Builder |