Class KubernetesMetadata.Builder (1.45.0)

public static final class KubernetesMetadata.Builder extends GeneratedMessageV3.Builder<KubernetesMetadata.Builder> implements KubernetesMetadataOrBuilder

KubernetesMetadata provides informational metadata for Memberships representing Kubernetes clusters.

Protobuf type google.cloud.gkehub.v1beta1.KubernetesMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public KubernetesMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
KubernetesMetadata.Builder
Overrides

build()

public KubernetesMetadata build()
Returns
Type Description
KubernetesMetadata

buildPartial()

public KubernetesMetadata buildPartial()
Returns
Type Description
KubernetesMetadata

clear()

public KubernetesMetadata.Builder clear()
Returns
Type Description
KubernetesMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public KubernetesMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
KubernetesMetadata.Builder
Overrides

clearKubernetesApiServerVersion()

public KubernetesMetadata.Builder clearKubernetesApiServerVersion()

Output only. Kubernetes API server version string as reported by '/version'.

string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

clearMemoryMb()

public KubernetesMetadata.Builder clearMemoryMb()

Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB.

int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

clearNodeCount()

public KubernetesMetadata.Builder clearNodeCount()

Output only. Node count as reported by Kubernetes nodes resources.

int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

clearNodeProviderId()

public KubernetesMetadata.Builder clearNodeProviderId()

Output only. Node providerID as reported by the first node in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-node clusters (like GKE-on-GCP), the node_count will be zero and the node_provider_id will be empty.

string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public KubernetesMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
KubernetesMetadata.Builder
Overrides

clearUpdateTime()

public KubernetesMetadata.Builder clearUpdateTime()

Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.

.google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KubernetesMetadata.Builder

clearVcpuCount()

public KubernetesMetadata.Builder clearVcpuCount()

Output only. vCPU count as reported by Kubernetes nodes resources.

int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

clone()

public KubernetesMetadata.Builder clone()
Returns
Type Description
KubernetesMetadata.Builder
Overrides

getDefaultInstanceForType()

public KubernetesMetadata getDefaultInstanceForType()
Returns
Type Description
KubernetesMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKubernetesApiServerVersion()

public String getKubernetesApiServerVersion()

Output only. Kubernetes API server version string as reported by '/version'.

string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The kubernetesApiServerVersion.

getKubernetesApiServerVersionBytes()

public ByteString getKubernetesApiServerVersionBytes()

Output only. Kubernetes API server version string as reported by '/version'.

string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for kubernetesApiServerVersion.

getMemoryMb()

public int getMemoryMb()

Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB.

int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The memoryMb.

getNodeCount()

public int getNodeCount()

Output only. Node count as reported by Kubernetes nodes resources.

int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The nodeCount.

getNodeProviderId()

public String getNodeProviderId()

Output only. Node providerID as reported by the first node in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-node clusters (like GKE-on-GCP), the node_count will be zero and the node_provider_id will be empty.

string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The nodeProviderId.

getNodeProviderIdBytes()

public ByteString getNodeProviderIdBytes()

Output only. Node providerID as reported by the first node in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-node clusters (like GKE-on-GCP), the node_count will be zero and the node_provider_id will be empty.

string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for nodeProviderId.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.

.google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.

.google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.

.google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVcpuCount()

public int getVcpuCount()

Output only. vCPU count as reported by Kubernetes nodes resources.

int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The vcpuCount.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.

.google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KubernetesMetadata other)

public KubernetesMetadata.Builder mergeFrom(KubernetesMetadata other)
Parameter
Name Description
other KubernetesMetadata
Returns
Type Description
KubernetesMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public KubernetesMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KubernetesMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public KubernetesMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
KubernetesMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
KubernetesMetadata.Builder
Overrides

mergeUpdateTime(Timestamp value)

public KubernetesMetadata.Builder mergeUpdateTime(Timestamp value)

Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.

.google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
KubernetesMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public KubernetesMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
KubernetesMetadata.Builder
Overrides

setKubernetesApiServerVersion(String value)

public KubernetesMetadata.Builder setKubernetesApiServerVersion(String value)

Output only. Kubernetes API server version string as reported by '/version'.

string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The kubernetesApiServerVersion to set.

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

setKubernetesApiServerVersionBytes(ByteString value)

public KubernetesMetadata.Builder setKubernetesApiServerVersionBytes(ByteString value)

Output only. Kubernetes API server version string as reported by '/version'.

string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for kubernetesApiServerVersion to set.

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

setMemoryMb(int value)

public KubernetesMetadata.Builder setMemoryMb(int value)

Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB.

int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The memoryMb to set.

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

setNodeCount(int value)

public KubernetesMetadata.Builder setNodeCount(int value)

Output only. Node count as reported by Kubernetes nodes resources.

int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The nodeCount to set.

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

setNodeProviderId(String value)

public KubernetesMetadata.Builder setNodeProviderId(String value)

Output only. Node providerID as reported by the first node in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-node clusters (like GKE-on-GCP), the node_count will be zero and the node_provider_id will be empty.

string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The nodeProviderId to set.

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

setNodeProviderIdBytes(ByteString value)

public KubernetesMetadata.Builder setNodeProviderIdBytes(ByteString value)

Output only. Node providerID as reported by the first node in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-node clusters (like GKE-on-GCP), the node_count will be zero and the node_provider_id will be empty.

string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for nodeProviderId to set.

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public KubernetesMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
KubernetesMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
KubernetesMetadata.Builder
Overrides

setUpdateTime(Timestamp value)

public KubernetesMetadata.Builder setUpdateTime(Timestamp value)

Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.

.google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
KubernetesMetadata.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public KubernetesMetadata.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.

.google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
KubernetesMetadata.Builder

setVcpuCount(int value)

public KubernetesMetadata.Builder setVcpuCount(int value)

Output only. vCPU count as reported by Kubernetes nodes resources.

int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The vcpuCount to set.

Returns
Type Description
KubernetesMetadata.Builder

This builder for chaining.