Class Generated.APIResourceList.Builder

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

    public static final class Generated.APIResourceList.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResourceList.Builder>
    implements Generated.APIResourceListOrBuilder
     APIResourceList is a list of APIResource, it is used to expose the name of the
     resources supported in a specific group and version, and if the resource
     is namespaced.
     
    Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList
    • 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.APIResourceList.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.APIResourceList.Builder>
      • getDefaultInstanceForType

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

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

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

        public Generated.APIResourceList.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.APIResourceList.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.APIResourceList.Builder>
      • mergeFrom

        public Generated.APIResourceList.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.APIResourceList.Builder>
        Throws:
        IOException
      • hasGroupVersion

        public boolean hasGroupVersion()
         groupVersion is the group and version this APIResourceList is for.
         
        optional string groupVersion = 1;
        Specified by:
        hasGroupVersion in interface Generated.APIResourceListOrBuilder
        Returns:
        Whether the groupVersion field is set.
      • getGroupVersionBytes

        public com.google.protobuf.ByteString getGroupVersionBytes()
         groupVersion is the group and version this APIResourceList is for.
         
        optional string groupVersion = 1;
        Specified by:
        getGroupVersionBytes in interface Generated.APIResourceListOrBuilder
        Returns:
        The bytes for groupVersion.
      • setGroupVersion

        public Generated.APIResourceList.Builder setGroupVersion​(String value)
         groupVersion is the group and version this APIResourceList is for.
         
        optional string groupVersion = 1;
        Parameters:
        value - The groupVersion to set.
        Returns:
        This builder for chaining.
      • clearGroupVersion

        public Generated.APIResourceList.Builder clearGroupVersion()
         groupVersion is the group and version this APIResourceList is for.
         
        optional string groupVersion = 1;
        Returns:
        This builder for chaining.
      • setGroupVersionBytes

        public Generated.APIResourceList.Builder setGroupVersionBytes​(com.google.protobuf.ByteString value)
         groupVersion is the group and version this APIResourceList is for.
         
        optional string groupVersion = 1;
        Parameters:
        value - The bytes for groupVersion to set.
        Returns:
        This builder for chaining.
      • getResourcesCount

        public int getResourcesCount()
         resources contains the name of the resources and if they are namespaced.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
        Specified by:
        getResourcesCount in interface Generated.APIResourceListOrBuilder
      • setResources

        public Generated.APIResourceList.Builder setResources​(int index,
                                                              Generated.APIResource value)
         resources contains the name of the resources and if they are namespaced.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
      • addResources

        public Generated.APIResourceList.Builder addResources​(int index,
                                                              Generated.APIResource value)
         resources contains the name of the resources and if they are namespaced.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
      • clearResources

        public Generated.APIResourceList.Builder clearResources()
         resources contains the name of the resources and if they are namespaced.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
      • removeResources

        public Generated.APIResourceList.Builder removeResources​(int index)
         resources contains the name of the resources and if they are namespaced.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
      • getResourcesBuilder

        public Generated.APIResource.Builder getResourcesBuilder​(int index)
         resources contains the name of the resources and if they are namespaced.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
      • addResourcesBuilder

        public Generated.APIResource.Builder addResourcesBuilder()
         resources contains the name of the resources and if they are namespaced.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
      • addResourcesBuilder

        public Generated.APIResource.Builder addResourcesBuilder​(int index)
         resources contains the name of the resources and if they are namespaced.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
      • getResourcesBuilderList

        public List<Generated.APIResource.Builder> getResourcesBuilderList()
         resources contains the name of the resources and if they are namespaced.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
      • setUnknownFields

        public final Generated.APIResourceList.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.APIResourceList.Builder>
      • mergeUnknownFields

        public final Generated.APIResourceList.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.APIResourceList.Builder>