Class Generated.Unknown.Builder

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

    public static final class Generated.Unknown.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.Unknown.Builder>
    implements Generated.UnknownOrBuilder
     Unknown allows api objects with unknown types to be passed-through. This can be used
     to deal with the API objects from a plug-in. Unknown objects still have functioning
     TypeMeta features-- kind, version, etc.
     TODO: Make this object have easy access to field based accessors and settors for
     metadata and field mutatation.
    
     +k8s:deepcopy-gen=true
     +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
     +protobuf=true
     +k8s:openapi-gen=true
     
    Protobuf type k8s.io.apimachinery.pkg.runtime.Unknown
    • 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.Unknown.Builder>
      • clear

        public Generated.Unknown.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.Unknown.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.Unknown.Builder>
      • getDefaultInstanceForType

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

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

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

        public Generated.Unknown.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.Unknown.Builder>
      • setField

        public Generated.Unknown.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.Unknown.Builder>
      • clearField

        public Generated.Unknown.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.Unknown.Builder>
      • clearOneof

        public Generated.Unknown.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.Unknown.Builder>
      • setRepeatedField

        public Generated.Unknown.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.Unknown.Builder>
      • addRepeatedField

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

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

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

        public boolean hasTypeMeta()
        optional .k8s.io.apimachinery.pkg.runtime.TypeMeta typeMeta = 1;
        Specified by:
        hasTypeMeta in interface Generated.UnknownOrBuilder
        Returns:
        Whether the typeMeta field is set.
      • clearTypeMeta

        public Generated.Unknown.Builder clearTypeMeta()
        optional .k8s.io.apimachinery.pkg.runtime.TypeMeta typeMeta = 1;
      • getTypeMetaBuilder

        public Generated.TypeMeta.Builder getTypeMetaBuilder()
        optional .k8s.io.apimachinery.pkg.runtime.TypeMeta typeMeta = 1;
      • hasRaw

        public boolean hasRaw()
         Raw will hold the complete serialized object which couldn't be matched
         with a registered type. Most likely, nothing should be done with this
         except for passing it through the system.
         
        optional bytes raw = 2;
        Specified by:
        hasRaw in interface Generated.UnknownOrBuilder
        Returns:
        Whether the raw field is set.
      • getRaw

        public com.google.protobuf.ByteString getRaw()
         Raw will hold the complete serialized object which couldn't be matched
         with a registered type. Most likely, nothing should be done with this
         except for passing it through the system.
         
        optional bytes raw = 2;
        Specified by:
        getRaw in interface Generated.UnknownOrBuilder
        Returns:
        The raw.
      • setRaw

        public Generated.Unknown.Builder setRaw​(com.google.protobuf.ByteString value)
         Raw will hold the complete serialized object which couldn't be matched
         with a registered type. Most likely, nothing should be done with this
         except for passing it through the system.
         
        optional bytes raw = 2;
        Parameters:
        value - The raw to set.
        Returns:
        This builder for chaining.
      • clearRaw

        public Generated.Unknown.Builder clearRaw()
         Raw will hold the complete serialized object which couldn't be matched
         with a registered type. Most likely, nothing should be done with this
         except for passing it through the system.
         
        optional bytes raw = 2;
        Returns:
        This builder for chaining.
      • hasContentEncoding

        public boolean hasContentEncoding()
         ContentEncoding is encoding used to encode 'Raw' data.
         Unspecified means no encoding.
         
        optional string contentEncoding = 3;
        Specified by:
        hasContentEncoding in interface Generated.UnknownOrBuilder
        Returns:
        Whether the contentEncoding field is set.
      • getContentEncoding

        public String getContentEncoding()
         ContentEncoding is encoding used to encode 'Raw' data.
         Unspecified means no encoding.
         
        optional string contentEncoding = 3;
        Specified by:
        getContentEncoding in interface Generated.UnknownOrBuilder
        Returns:
        The contentEncoding.
      • getContentEncodingBytes

        public com.google.protobuf.ByteString getContentEncodingBytes()
         ContentEncoding is encoding used to encode 'Raw' data.
         Unspecified means no encoding.
         
        optional string contentEncoding = 3;
        Specified by:
        getContentEncodingBytes in interface Generated.UnknownOrBuilder
        Returns:
        The bytes for contentEncoding.
      • setContentEncoding

        public Generated.Unknown.Builder setContentEncoding​(String value)
         ContentEncoding is encoding used to encode 'Raw' data.
         Unspecified means no encoding.
         
        optional string contentEncoding = 3;
        Parameters:
        value - The contentEncoding to set.
        Returns:
        This builder for chaining.
      • clearContentEncoding

        public Generated.Unknown.Builder clearContentEncoding()
         ContentEncoding is encoding used to encode 'Raw' data.
         Unspecified means no encoding.
         
        optional string contentEncoding = 3;
        Returns:
        This builder for chaining.
      • setContentEncodingBytes

        public Generated.Unknown.Builder setContentEncodingBytes​(com.google.protobuf.ByteString value)
         ContentEncoding is encoding used to encode 'Raw' data.
         Unspecified means no encoding.
         
        optional string contentEncoding = 3;
        Parameters:
        value - The bytes for contentEncoding to set.
        Returns:
        This builder for chaining.
      • hasContentType

        public boolean hasContentType()
         ContentType  is serialization method used to serialize 'Raw'.
         Unspecified means ContentTypeJSON.
         
        optional string contentType = 4;
        Specified by:
        hasContentType in interface Generated.UnknownOrBuilder
        Returns:
        Whether the contentType field is set.
      • getContentType

        public String getContentType()
         ContentType  is serialization method used to serialize 'Raw'.
         Unspecified means ContentTypeJSON.
         
        optional string contentType = 4;
        Specified by:
        getContentType in interface Generated.UnknownOrBuilder
        Returns:
        The contentType.
      • getContentTypeBytes

        public com.google.protobuf.ByteString getContentTypeBytes()
         ContentType  is serialization method used to serialize 'Raw'.
         Unspecified means ContentTypeJSON.
         
        optional string contentType = 4;
        Specified by:
        getContentTypeBytes in interface Generated.UnknownOrBuilder
        Returns:
        The bytes for contentType.
      • setContentType

        public Generated.Unknown.Builder setContentType​(String value)
         ContentType  is serialization method used to serialize 'Raw'.
         Unspecified means ContentTypeJSON.
         
        optional string contentType = 4;
        Parameters:
        value - The contentType to set.
        Returns:
        This builder for chaining.
      • clearContentType

        public Generated.Unknown.Builder clearContentType()
         ContentType  is serialization method used to serialize 'Raw'.
         Unspecified means ContentTypeJSON.
         
        optional string contentType = 4;
        Returns:
        This builder for chaining.
      • setContentTypeBytes

        public Generated.Unknown.Builder setContentTypeBytes​(com.google.protobuf.ByteString value)
         ContentType  is serialization method used to serialize 'Raw'.
         Unspecified means ContentTypeJSON.
         
        optional string contentType = 4;
        Parameters:
        value - The bytes for contentType to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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