Package k8s.io.api.core.v1
Class Generated.TypedLocalObjectReference
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.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=atomicProtobuf typek8s.io.api.core.v1.TypedLocalObjectReference- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.TypedLocalObjectReference.BuilderTypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.-
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
-
-
Field Summary
Fields Modifier and Type Field Description static intAPIGROUP_FIELD_NUMBERstatic intKIND_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.TypedLocalObjectReference>PARSERDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetApiGroup()APIGroup is the group for the resource being referenced.com.google.protobuf.ByteStringgetApiGroupBytes()APIGroup is the group for the resource being referenced.static Generated.TypedLocalObjectReferencegetDefaultInstance()Generated.TypedLocalObjectReferencegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetKind()Kind is the type of resource being referencedcom.google.protobuf.ByteStringgetKindBytes()Kind is the type of resource being referencedStringgetName()Name is the name of resource being referencedcom.google.protobuf.ByteStringgetNameBytes()Name is the name of resource being referencedcom.google.protobuf.Parser<Generated.TypedLocalObjectReference>getParserForType()intgetSerializedSize()booleanhasApiGroup()APIGroup is the group for the resource being referenced.inthashCode()booleanhasKind()Kind is the type of resource being referencedbooleanhasName()Name is the name of resource being referencedprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.TypedLocalObjectReference.BuildernewBuilder()static Generated.TypedLocalObjectReference.BuildernewBuilder(Generated.TypedLocalObjectReference prototype)Generated.TypedLocalObjectReference.BuildernewBuilderForType()protected Generated.TypedLocalObjectReference.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.TypedLocalObjectReferenceparseDelimitedFrom(InputStream input)static Generated.TypedLocalObjectReferenceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.TypedLocalObjectReferenceparseFrom(byte[] data)static Generated.TypedLocalObjectReferenceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.TypedLocalObjectReferenceparseFrom(com.google.protobuf.ByteString data)static Generated.TypedLocalObjectReferenceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.TypedLocalObjectReferenceparseFrom(com.google.protobuf.CodedInputStream input)static Generated.TypedLocalObjectReferenceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.TypedLocalObjectReferenceparseFrom(InputStream input)static Generated.TypedLocalObjectReferenceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.TypedLocalObjectReferenceparseFrom(ByteBuffer data)static Generated.TypedLocalObjectReferenceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.TypedLocalObjectReference>parser()Generated.TypedLocalObjectReference.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
APIGROUP_FIELD_NUMBER
public static final int APIGROUP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.TypedLocalObjectReference> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.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:
hasApiGroupin interfaceGenerated.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:
getApiGroupin interfaceGenerated.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:
getApiGroupBytesin interfaceGenerated.TypedLocalObjectReferenceOrBuilder- Returns:
- The bytes for apiGroup.
-
hasKind
public boolean hasKind()
Kind is the type of resource being referenced
optional string kind = 2;- Specified by:
hasKindin interfaceGenerated.TypedLocalObjectReferenceOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
Kind is the type of resource being referenced
optional string kind = 2;- Specified by:
getKindin interfaceGenerated.TypedLocalObjectReferenceOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
Kind is the type of resource being referenced
optional string kind = 2;- Specified by:
getKindBytesin interfaceGenerated.TypedLocalObjectReferenceOrBuilder- Returns:
- The bytes for kind.
-
hasName
public boolean hasName()
Name is the name of resource being referenced
optional string name = 3;- Specified by:
hasNamein interfaceGenerated.TypedLocalObjectReferenceOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
Name is the name of resource being referenced
optional string name = 3;- Specified by:
getNamein interfaceGenerated.TypedLocalObjectReferenceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name is the name of resource being referenced
optional string name = 3;- Specified by:
getNameBytesin interfaceGenerated.TypedLocalObjectReferenceOrBuilder- Returns:
- The bytes for name.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Generated.TypedLocalObjectReference parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
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
-
parseFrom
public static Generated.TypedLocalObjectReference parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.TypedLocalObjectReference parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.TypedLocalObjectReference parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.TypedLocalObjectReference parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.TypedLocalObjectReference parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.TypedLocalObjectReference parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.TypedLocalObjectReference.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.TypedLocalObjectReference.Builder newBuilder()
-
newBuilder
public static Generated.TypedLocalObjectReference.Builder newBuilder(Generated.TypedLocalObjectReference prototype)
-
toBuilder
public Generated.TypedLocalObjectReference.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.TypedLocalObjectReference.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.TypedLocalObjectReference getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.TypedLocalObjectReference> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.TypedLocalObjectReference> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.TypedLocalObjectReference getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-