Class Generated.TypeMeta.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.TypeMetaOrBuilder
    Enclosing class:
    Generated.TypeMeta

    public static final class Generated.TypeMeta.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
    implements Generated.TypeMetaOrBuilder
     TypeMeta describes an individual object in an API response or request
     with strings representing the type of the object and its API schema version.
     Structures that are versioned or persisted should inline TypeMeta.
    
     +k8s:deepcopy-gen=false
     
    Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta
    • Method Detail

      • 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.Builder<Generated.TypeMeta.Builder>
      • clear

        public Generated.TypeMeta.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
      • getDefaultInstanceForType

        public Generated.TypeMeta getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Generated.TypeMeta build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.TypeMeta buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Generated.TypeMeta.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
      • setField

        public Generated.TypeMeta.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
      • clearField

        public Generated.TypeMeta.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
      • clearOneof

        public Generated.TypeMeta.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
      • setRepeatedField

        public Generated.TypeMeta.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
      • addRepeatedField

        public Generated.TypeMeta.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
      • mergeFrom

        public Generated.TypeMeta.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.TypeMeta.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
      • mergeFrom

        public Generated.TypeMeta.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.TypeMeta.Builder>
        Throws:
        IOException
      • hasKind

        public boolean hasKind()
         Kind is a string value representing the REST resource this object represents.
         Servers may infer this from the endpoint the client submits requests to.
         Cannot be updated.
         In CamelCase.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional string kind = 1;
        Specified by:
        hasKind in interface Generated.TypeMetaOrBuilder
        Returns:
        Whether the kind field is set.
      • getKind

        public String getKind()
         Kind is a string value representing the REST resource this object represents.
         Servers may infer this from the endpoint the client submits requests to.
         Cannot be updated.
         In CamelCase.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional string kind = 1;
        Specified by:
        getKind in interface Generated.TypeMetaOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         Kind is a string value representing the REST resource this object represents.
         Servers may infer this from the endpoint the client submits requests to.
         Cannot be updated.
         In CamelCase.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional string kind = 1;
        Specified by:
        getKindBytes in interface Generated.TypeMetaOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public Generated.TypeMeta.Builder setKind​(String value)
         Kind is a string value representing the REST resource this object represents.
         Servers may infer this from the endpoint the client submits requests to.
         Cannot be updated.
         In CamelCase.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional string kind = 1;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public Generated.TypeMeta.Builder clearKind()
         Kind is a string value representing the REST resource this object represents.
         Servers may infer this from the endpoint the client submits requests to.
         Cannot be updated.
         In CamelCase.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional string kind = 1;
        Returns:
        This builder for chaining.
      • setKindBytes

        public Generated.TypeMeta.Builder setKindBytes​(com.google.protobuf.ByteString value)
         Kind is a string value representing the REST resource this object represents.
         Servers may infer this from the endpoint the client submits requests to.
         Cannot be updated.
         In CamelCase.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional string kind = 1;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • hasApiVersion

        public boolean hasApiVersion()
         APIVersion defines the versioned schema of this representation of an object.
         Servers should convert recognized schemas to the latest internal value, and
         may reject unrecognized values.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
         +optional
         
        optional string apiVersion = 2;
        Specified by:
        hasApiVersion in interface Generated.TypeMetaOrBuilder
        Returns:
        Whether the apiVersion field is set.
      • getApiVersion

        public String getApiVersion()
         APIVersion defines the versioned schema of this representation of an object.
         Servers should convert recognized schemas to the latest internal value, and
         may reject unrecognized values.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
         +optional
         
        optional string apiVersion = 2;
        Specified by:
        getApiVersion in interface Generated.TypeMetaOrBuilder
        Returns:
        The apiVersion.
      • getApiVersionBytes

        public com.google.protobuf.ByteString getApiVersionBytes()
         APIVersion defines the versioned schema of this representation of an object.
         Servers should convert recognized schemas to the latest internal value, and
         may reject unrecognized values.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
         +optional
         
        optional string apiVersion = 2;
        Specified by:
        getApiVersionBytes in interface Generated.TypeMetaOrBuilder
        Returns:
        The bytes for apiVersion.
      • setApiVersion

        public Generated.TypeMeta.Builder setApiVersion​(String value)
         APIVersion defines the versioned schema of this representation of an object.
         Servers should convert recognized schemas to the latest internal value, and
         may reject unrecognized values.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
         +optional
         
        optional string apiVersion = 2;
        Parameters:
        value - The apiVersion to set.
        Returns:
        This builder for chaining.
      • clearApiVersion

        public Generated.TypeMeta.Builder clearApiVersion()
         APIVersion defines the versioned schema of this representation of an object.
         Servers should convert recognized schemas to the latest internal value, and
         may reject unrecognized values.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
         +optional
         
        optional string apiVersion = 2;
        Returns:
        This builder for chaining.
      • setApiVersionBytes

        public Generated.TypeMeta.Builder setApiVersionBytes​(com.google.protobuf.ByteString value)
         APIVersion defines the versioned schema of this representation of an object.
         Servers should convert recognized schemas to the latest internal value, and
         may reject unrecognized values.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
         +optional
         
        optional string apiVersion = 2;
        Parameters:
        value - The bytes for apiVersion to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Generated.TypeMeta.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>
      • mergeUnknownFields

        public final Generated.TypeMeta.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.TypeMeta.Builder>