Class KubernetesMetadata.Builder (1.19.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.v1.KubernetesMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public KubernetesMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
KubernetesMetadata.Builder
Overrides

build()

public KubernetesMetadata build()
Returns
TypeDescription
KubernetesMetadata

buildPartial()

public KubernetesMetadata buildPartial()
Returns
TypeDescription
KubernetesMetadata

clear()

public KubernetesMetadata.Builder clear()
Returns
TypeDescription
KubernetesMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public KubernetesMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
KubernetesMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public KubernetesMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
KubernetesMetadata.Builder

This builder for chaining.

clone()

public KubernetesMetadata.Builder clone()
Returns
TypeDescription
KubernetesMetadata.Builder
Overrides

getDefaultInstanceForType()

public KubernetesMetadata getDefaultInstanceForType()
Returns
TypeDescription
KubernetesMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(KubernetesMetadata other)

public KubernetesMetadata.Builder mergeFrom(KubernetesMetadata other)
Parameter
NameDescription
otherKubernetesMetadata
Returns
TypeDescription
KubernetesMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public KubernetesMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KubernetesMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public KubernetesMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
KubernetesMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
KubernetesMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public KubernetesMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The kubernetesApiServerVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kubernetesApiServerVersion to set.

Returns
TypeDescription
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
NameDescription
valueint

The memoryMb to set.

Returns
TypeDescription
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
NameDescription
valueint

The nodeCount to set.

Returns
TypeDescription
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
NameDescription
valueString

The nodeProviderId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nodeProviderId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
KubernetesMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueint

The vcpuCount to set.

Returns
TypeDescription
KubernetesMetadata.Builder

This builder for chaining.