Class Generated.TypedLocalObjectReference

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

    public static final class Generated.TypedLocalObjectReference
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.TypedLocalObjectReferenceOrBuilder
     TypedLocalObjectReference contains enough information to let you locate the
     typed referenced object inside the same namespace.
     ---
     New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
      1. Invalid usage help.  It is impossible to add specific help for individual usage.  In most embedded usages, there are particular
         restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
         Those cannot be well described when embedded.
      2. Inconsistent validation.  Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen.
      3. The fields are both imprecise and overly precise.  Kind is not a precise mapping to a URL. This can produce ambiguity
         during interpretation and require a REST mapping.  In most cases, the dependency is on the group,resource tuple
         and the version of the actual struct is irrelevant.
      4. We cannot easily change it.  Because this type is embedded in many locations, updates to this type
         will affect numerous schemas.  Don't make new APIs embed an underspecified API type they do not control.
    
     Instead of using this type, create a locally provided and used type that is well-focused on your reference.
     For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
     +structType=atomic
     
    Protobuf type k8s.io.api.core.v1.TypedLocalObjectReference
    See Also:
    Serialized Form
    • 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
      • hasApiGroup

        public boolean hasApiGroup()
         APIGroup is the group for the resource being referenced.
         If APIGroup is not specified, the specified Kind must be in the core API group.
         For any other third-party types, APIGroup is required.
         +optional
         
        optional string apiGroup = 1;
        Specified by:
        hasApiGroup in interface Generated.TypedLocalObjectReferenceOrBuilder
        Returns:
        Whether the apiGroup field is set.
      • getApiGroup

        public String getApiGroup()
         APIGroup is the group for the resource being referenced.
         If APIGroup is not specified, the specified Kind must be in the core API group.
         For any other third-party types, APIGroup is required.
         +optional
         
        optional string apiGroup = 1;
        Specified by:
        getApiGroup in interface Generated.TypedLocalObjectReferenceOrBuilder
        Returns:
        The apiGroup.
      • getApiGroupBytes

        public com.google.protobuf.ByteString getApiGroupBytes()
         APIGroup is the group for the resource being referenced.
         If APIGroup is not specified, the specified Kind must be in the core API group.
         For any other third-party types, APIGroup is required.
         +optional
         
        optional string apiGroup = 1;
        Specified by:
        getApiGroupBytes in interface Generated.TypedLocalObjectReferenceOrBuilder
        Returns:
        The bytes for apiGroup.
      • 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.TypedLocalObjectReference parseFrom​(ByteBuffer data,
                                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static Generated.TypedLocalObjectReference 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.TypedLocalObjectReference parseFrom​(byte[] data)
                                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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