Class Generated.Unknown

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

    public static final class Generated.Unknown
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Generated.Unknown.Builder
      Unknown allows api objects with unknown types to be passed-through.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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 Generated.Unknown parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<Generated.Unknown> 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 Generated.Unknown getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder