Package com.google.cloud.gkehub.v1
Class KubernetesMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<KubernetesMetadata.Builder>
com.google.cloud.gkehub.v1.KubernetesMetadata.Builder
- All Implemented Interfaces:
KubernetesMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- KubernetesMetadata
public static final class KubernetesMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<KubernetesMetadata.Builder>
implements KubernetesMetadataOrBuilder
KubernetesMetadata provides informational metadata for Memberships representing Kubernetes clusters.Protobuf type
google.cloud.gkehub.v1.KubernetesMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.Output only. vCPU count as reported by Kubernetes nodes resources.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.intOutput only.intOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.intOutput only. vCPU count as reported by Kubernetes nodes resources.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(KubernetesMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.Output only.setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString value) Output only.setMemoryMb(int value) Output only.setNodeCount(int value) Output only.setNodeProviderId(String value) Output only.setNodeProviderIdBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setVcpuCount(int value) Output only. vCPU count as reported by Kubernetes nodes resources.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<KubernetesMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<KubernetesMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<KubernetesMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KubernetesMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<KubernetesMetadata.Builder>
-
mergeFrom
public KubernetesMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KubernetesMetadata.Builder>- Throws:
IOException
-
getKubernetesApiServerVersion
Output only. Kubernetes API server version string as reported by `/version`.
string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getKubernetesApiServerVersionin interfaceKubernetesMetadataOrBuilder- Returns:
- The kubernetesApiServerVersion.
-
getKubernetesApiServerVersionBytes
public com.google.protobuf.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];- Specified by:
getKubernetesApiServerVersionBytesin interfaceKubernetesMetadataOrBuilder- Returns:
- The bytes for kubernetesApiServerVersion.
-
setKubernetesApiServerVersion
Output only. Kubernetes API server version string as reported by `/version`.
string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The kubernetesApiServerVersion to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setKubernetesApiServerVersionBytes
public KubernetesMetadata.Builder setKubernetesApiServerVersionBytes(com.google.protobuf.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];- Parameters:
value- The bytes for kubernetesApiServerVersion to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getNodeProviderIdin interfaceKubernetesMetadataOrBuilder- Returns:
- The nodeProviderId.
-
getNodeProviderIdBytes
public com.google.protobuf.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];- Specified by:
getNodeProviderIdBytesin interfaceKubernetesMetadataOrBuilder- Returns:
- The bytes for nodeProviderId.
-
setNodeProviderId
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];- Parameters:
value- The nodeProviderId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNodeProviderIdBytes
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];- Parameters:
value- The bytes for nodeProviderId to set.- Returns:
- This builder for chaining.
-
getNodeCount
public int getNodeCount()Output only. Node count as reported by Kubernetes nodes resources.
int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNodeCountin interfaceKubernetesMetadataOrBuilder- Returns:
- The nodeCount.
-
setNodeCount
Output only. Node count as reported by Kubernetes nodes resources.
int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The nodeCount to set.- Returns:
- This builder for chaining.
-
clearNodeCount
Output only. Node count as reported by Kubernetes nodes resources.
int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getVcpuCount
public int getVcpuCount()Output only. vCPU count as reported by Kubernetes nodes resources.
int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVcpuCountin interfaceKubernetesMetadataOrBuilder- Returns:
- The vcpuCount.
-
setVcpuCount
Output only. vCPU count as reported by Kubernetes nodes resources.
int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The vcpuCount to set.- Returns:
- This builder for chaining.
-
clearVcpuCount
Output only. vCPU count as reported by Kubernetes nodes resources.
int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
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];- Specified by:
getMemoryMbin interfaceKubernetesMetadataOrBuilder- Returns:
- The memoryMb.
-
setMemoryMb
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];- Parameters:
value- The memoryMb to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasUpdateTimein interfaceKubernetesMetadataOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.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];- Specified by:
getUpdateTimein interfaceKubernetesMetadataOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
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]; -
setUpdateTime
public KubernetesMetadata.Builder setUpdateTime(com.google.protobuf.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]; -
mergeUpdateTime
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]; -
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]; -
getUpdateTimeBuilder
public com.google.protobuf.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]; -
getUpdateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getUpdateTimeOrBuilderin interfaceKubernetesMetadataOrBuilder
-