Class KubernetesMetadata

  • All Implemented Interfaces:
    KubernetesMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class KubernetesMetadata
    extends com.google.protobuf.GeneratedMessageV3
    implements KubernetesMetadataOrBuilder
     KubernetesMetadata provides informational metadata for Memberships
     representing Kubernetes clusters.
     
    Protobuf type google.cloud.gkehub.v1beta1.KubernetesMetadata
    See Also:
    Serialized Form
    • Field Detail

      • KUBERNETES_API_SERVER_VERSION_FIELD_NUMBER

        public static final int KUBERNETES_API_SERVER_VERSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NODE_PROVIDER_ID_FIELD_NUMBER

        public static final int NODE_PROVIDER_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NODE_COUNT_FIELD_NUMBER

        public static final int NODE_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VCPU_COUNT_FIELD_NUMBER

        public static final int VCPU_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_TIME_FIELD_NUMBER

        public static final int UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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];
        Specified by:
        getKubernetesApiServerVersion in interface KubernetesMetadataOrBuilder
        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:
        getKubernetesApiServerVersionBytes in interface KubernetesMetadataOrBuilder
        Returns:
        The bytes for kubernetesApiServerVersion.
      • 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];
        Specified by:
        getNodeProviderId in interface KubernetesMetadataOrBuilder
        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:
        getNodeProviderIdBytes in interface KubernetesMetadataOrBuilder
        Returns:
        The bytes for nodeProviderId.
      • 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:
        getNodeCount in interface KubernetesMetadataOrBuilder
        Returns:
        The nodeCount.
      • 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:
        getVcpuCount in interface KubernetesMetadataOrBuilder
        Returns:
        The vcpuCount.
      • 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:
        getMemoryMb in interface KubernetesMetadataOrBuilder
        Returns:
        The memoryMb.
      • 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:
        hasUpdateTime in interface KubernetesMetadataOrBuilder
        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:
        getUpdateTime in interface KubernetesMetadataOrBuilder
        Returns:
        The updateTime.
      • 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:
        getUpdateTimeOrBuilder in interface KubernetesMetadataOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 KubernetesMetadata parseFrom​(ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected KubernetesMetadata.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<KubernetesMetadata> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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