Package k8s.io.api.core.v1
Class Generated.ObjectReference
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.ObjectReference
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.ObjectReferenceOrBuilder
- Enclosing class:
- Generated
public static final class Generated.ObjectReference extends com.google.protobuf.GeneratedMessageV3 implements Generated.ObjectReferenceOrBuilder
ObjectReference contains enough information to let you inspect or modify the referred object. --- New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. 1. Ignored fields. It includes many fields which are not generally honored. For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage. 2. 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. 3. 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. 4. 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. 5. 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 . +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +structType=atomicProtobuf typek8s.io.api.core.v1.ObjectReference- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.ObjectReference.BuilderObjectReference contains enough information to let you inspect or modify the referred object.-
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 intAPIVERSION_FIELD_NUMBERstatic intFIELDPATH_FIELD_NUMBERstatic intKIND_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNAMESPACE_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.ObjectReference>PARSERDeprecated.static intRESOURCEVERSION_FIELD_NUMBERstatic intUID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetApiVersion()API version of the referent.com.google.protobuf.ByteStringgetApiVersionBytes()API version of the referent.static Generated.ObjectReferencegetDefaultInstance()Generated.ObjectReferencegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetFieldPath()If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].com.google.protobuf.ByteStringgetFieldPathBytes()If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].StringgetKind()Kind of the referent.com.google.protobuf.ByteStringgetKindBytes()Kind of the referent.StringgetName()Name of the referent.com.google.protobuf.ByteStringgetNameBytes()Name of the referent.StringgetNamespace()Namespace of the referent.com.google.protobuf.ByteStringgetNamespaceBytes()Namespace of the referent.com.google.protobuf.Parser<Generated.ObjectReference>getParserForType()StringgetResourceVersion()Specific resourceVersion to which this reference is made, if any.com.google.protobuf.ByteStringgetResourceVersionBytes()Specific resourceVersion to which this reference is made, if any.intgetSerializedSize()StringgetUid()UID of the referent.com.google.protobuf.ByteStringgetUidBytes()UID of the referent.booleanhasApiVersion()API version of the referent.booleanhasFieldPath()If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].inthashCode()booleanhasKind()Kind of the referent.booleanhasName()Name of the referent.booleanhasNamespace()Namespace of the referent.booleanhasResourceVersion()Specific resourceVersion to which this reference is made, if any.booleanhasUid()UID of the referent.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.ObjectReference.BuildernewBuilder()static Generated.ObjectReference.BuildernewBuilder(Generated.ObjectReference prototype)Generated.ObjectReference.BuildernewBuilderForType()protected Generated.ObjectReference.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.ObjectReferenceparseDelimitedFrom(InputStream input)static Generated.ObjectReferenceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ObjectReferenceparseFrom(byte[] data)static Generated.ObjectReferenceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ObjectReferenceparseFrom(com.google.protobuf.ByteString data)static Generated.ObjectReferenceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ObjectReferenceparseFrom(com.google.protobuf.CodedInputStream input)static Generated.ObjectReferenceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ObjectReferenceparseFrom(InputStream input)static Generated.ObjectReferenceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ObjectReferenceparseFrom(ByteBuffer data)static Generated.ObjectReferenceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.ObjectReference>parser()Generated.ObjectReference.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
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAMESPACE_FIELD_NUMBER
public static final int NAMESPACE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
APIVERSION_FIELD_NUMBER
public static final int APIVERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCEVERSION_FIELD_NUMBER
public static final int RESOURCEVERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FIELDPATH_FIELD_NUMBER
public static final int FIELDPATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.ObjectReference> 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
-
hasKind
public boolean hasKind()
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional
optional string kind = 1;- Specified by:
hasKindin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional
optional string kind = 1;- Specified by:
getKindin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional
optional string kind = 1;- Specified by:
getKindBytesin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The bytes for kind.
-
hasNamespace
public boolean hasNamespace()
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ +optional
optional string namespace = 2;- Specified by:
hasNamespacein interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- Whether the namespace field is set.
-
getNamespace
public String getNamespace()
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ +optional
optional string namespace = 2;- Specified by:
getNamespacein interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ +optional
optional string namespace = 2;- Specified by:
getNamespaceBytesin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The bytes for namespace.
-
hasName
public boolean hasName()
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names +optional
optional string name = 3;- Specified by:
hasNamein interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names +optional
optional string name = 3;- Specified by:
getNamein interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names +optional
optional string name = 3;- Specified by:
getNameBytesin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The bytes for name.
-
hasUid
public boolean hasUid()
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids +optional
optional string uid = 4;- Specified by:
hasUidin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- Whether the uid field is set.
-
getUid
public String getUid()
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids +optional
optional string uid = 4;- Specified by:
getUidin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids +optional
optional string uid = 4;- Specified by:
getUidBytesin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The bytes for uid.
-
hasApiVersion
public boolean hasApiVersion()
API version of the referent. +optional
optional string apiVersion = 5;- Specified by:
hasApiVersionin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- Whether the apiVersion field is set.
-
getApiVersion
public String getApiVersion()
API version of the referent. +optional
optional string apiVersion = 5;- Specified by:
getApiVersionin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The apiVersion.
-
getApiVersionBytes
public com.google.protobuf.ByteString getApiVersionBytes()
API version of the referent. +optional
optional string apiVersion = 5;- Specified by:
getApiVersionBytesin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The bytes for apiVersion.
-
hasResourceVersion
public boolean hasResourceVersion()
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional
optional string resourceVersion = 6;- Specified by:
hasResourceVersionin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- Whether the resourceVersion field is set.
-
getResourceVersion
public String getResourceVersion()
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional
optional string resourceVersion = 6;- Specified by:
getResourceVersionin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The resourceVersion.
-
getResourceVersionBytes
public com.google.protobuf.ByteString getResourceVersionBytes()
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional
optional string resourceVersion = 6;- Specified by:
getResourceVersionBytesin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The bytes for resourceVersion.
-
hasFieldPath
public boolean hasFieldPath()
If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. +optionaloptional string fieldPath = 7;- Specified by:
hasFieldPathin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- Whether the fieldPath field is set.
-
getFieldPath
public String getFieldPath()
If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. +optionaloptional string fieldPath = 7;- Specified by:
getFieldPathin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The fieldPath.
-
getFieldPathBytes
public com.google.protobuf.ByteString getFieldPathBytes()
If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. +optionaloptional string fieldPath = 7;- Specified by:
getFieldPathBytesin interfaceGenerated.ObjectReferenceOrBuilder- Returns:
- The bytes for fieldPath.
-
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.ObjectReference parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ObjectReference parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ObjectReference parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ObjectReference 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.ObjectReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ObjectReference parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ObjectReference parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ObjectReference parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.ObjectReference parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.ObjectReference parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ObjectReference parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ObjectReference parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.ObjectReference.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.ObjectReference.Builder newBuilder()
-
newBuilder
public static Generated.ObjectReference.Builder newBuilder(Generated.ObjectReference prototype)
-
toBuilder
public Generated.ObjectReference.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.ObjectReference.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.ObjectReference getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.ObjectReference> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.ObjectReference> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.ObjectReference getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-