public static final class V1.ObjectReference.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder> implements V1.ObjectReferenceOrBuilder
ObjectReference contains enough information to let you inspect or modify the referred object. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.ObjectProtobuf type
k8s.io.api.core.v1.ObjectReference| Modifier and Type | Method and Description |
|---|---|
V1.ObjectReference.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.ObjectReference |
build() |
V1.ObjectReference |
buildPartial() |
V1.ObjectReference.Builder |
clear() |
V1.ObjectReference.Builder |
clearApiVersion()
API version of the referent.
|
V1.ObjectReference.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.ObjectReference.Builder |
clearFieldPath()
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].
|
V1.ObjectReference.Builder |
clearKind()
Kind of the referent.
|
V1.ObjectReference.Builder |
clearName()
Name of the referent.
|
V1.ObjectReference.Builder |
clearNamespace()
Namespace of the referent.
|
V1.ObjectReference.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.ObjectReference.Builder |
clearResourceVersion()
Specific resourceVersion to which this reference is made, if any.
|
V1.ObjectReference.Builder |
clearUid()
UID of the referent.
|
V1.ObjectReference.Builder |
clone() |
String |
getApiVersion()
API version of the referent.
|
com.google.protobuf.ByteString |
getApiVersionBytes()
API version of the referent.
|
V1.ObjectReference |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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].
|
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].
|
String |
getKind()
Kind of the referent.
|
com.google.protobuf.ByteString |
getKindBytes()
Kind of the referent.
|
String |
getName()
Name of the referent.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the referent.
|
String |
getNamespace()
Namespace of the referent.
|
com.google.protobuf.ByteString |
getNamespaceBytes()
Namespace of the referent.
|
String |
getResourceVersion()
Specific resourceVersion to which this reference is made, if any.
|
com.google.protobuf.ByteString |
getResourceVersionBytes()
Specific resourceVersion to which this reference is made, if any.
|
String |
getUid()
UID of the referent.
|
com.google.protobuf.ByteString |
getUidBytes()
UID of the referent.
|
boolean |
hasApiVersion()
API version of the referent.
|
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].
|
boolean |
hasKind()
Kind of the referent.
|
boolean |
hasName()
Name of the referent.
|
boolean |
hasNamespace()
Namespace of the referent.
|
boolean |
hasResourceVersion()
Specific resourceVersion to which this reference is made, if any.
|
boolean |
hasUid()
UID of the referent.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.ObjectReference.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.ObjectReference.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.ObjectReference.Builder |
mergeFrom(V1.ObjectReference other) |
V1.ObjectReference.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.ObjectReference.Builder |
setApiVersion(String value)
API version of the referent.
|
V1.ObjectReference.Builder |
setApiVersionBytes(com.google.protobuf.ByteString value)
API version of the referent.
|
V1.ObjectReference.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.ObjectReference.Builder |
setFieldPath(String value)
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].
|
V1.ObjectReference.Builder |
setFieldPathBytes(com.google.protobuf.ByteString value)
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].
|
V1.ObjectReference.Builder |
setKind(String value)
Kind of the referent.
|
V1.ObjectReference.Builder |
setKindBytes(com.google.protobuf.ByteString value)
Kind of the referent.
|
V1.ObjectReference.Builder |
setName(String value)
Name of the referent.
|
V1.ObjectReference.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the referent.
|
V1.ObjectReference.Builder |
setNamespace(String value)
Namespace of the referent.
|
V1.ObjectReference.Builder |
setNamespaceBytes(com.google.protobuf.ByteString value)
Namespace of the referent.
|
V1.ObjectReference.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.ObjectReference.Builder |
setResourceVersion(String value)
Specific resourceVersion to which this reference is made, if any.
|
V1.ObjectReference.Builder |
setResourceVersionBytes(com.google.protobuf.ByteString value)
Specific resourceVersion to which this reference is made, if any.
|
V1.ObjectReference.Builder |
setUid(String value)
UID of the referent.
|
V1.ObjectReference.Builder |
setUidBytes(com.google.protobuf.ByteString value)
UID of the referent.
|
V1.ObjectReference.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public V1.ObjectReference.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public V1.ObjectReference getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.ObjectReference build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.ObjectReference buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.ObjectReference.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public V1.ObjectReference.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public V1.ObjectReference.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public V1.ObjectReference.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public V1.ObjectReference.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public V1.ObjectReference.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public V1.ObjectReference.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.ObjectReference.Builder>public V1.ObjectReference.Builder mergeFrom(V1.ObjectReference other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public V1.ObjectReference.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.ObjectReference.Builder>IOExceptionpublic boolean hasKind()
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds +optional
optional string kind = 1;hasKind in interface V1.ObjectReferenceOrBuilderpublic String getKind()
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds +optional
optional string kind = 1;getKind in interface V1.ObjectReferenceOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds +optional
optional string kind = 1;getKindBytes in interface V1.ObjectReferenceOrBuilderpublic V1.ObjectReference.Builder setKind(String value)
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds +optional
optional string kind = 1;public V1.ObjectReference.Builder clearKind()
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds +optional
optional string kind = 1;public V1.ObjectReference.Builder setKindBytes(com.google.protobuf.ByteString value)
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds +optional
optional string kind = 1;public boolean hasNamespace()
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ +optional
optional string namespace = 2;hasNamespace in interface V1.ObjectReferenceOrBuilderpublic String getNamespace()
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ +optional
optional string namespace = 2;getNamespace in interface V1.ObjectReferenceOrBuilderpublic 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;getNamespaceBytes in interface V1.ObjectReferenceOrBuilderpublic V1.ObjectReference.Builder setNamespace(String value)
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ +optional
optional string namespace = 2;public V1.ObjectReference.Builder clearNamespace()
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ +optional
optional string namespace = 2;public V1.ObjectReference.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ +optional
optional string namespace = 2;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;hasName in interface V1.ObjectReferenceOrBuilderpublic String getName()
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names +optional
optional string name = 3;getName in interface V1.ObjectReferenceOrBuilderpublic 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;getNameBytes in interface V1.ObjectReferenceOrBuilderpublic V1.ObjectReference.Builder setName(String value)
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names +optional
optional string name = 3;public V1.ObjectReference.Builder clearName()
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names +optional
optional string name = 3;public V1.ObjectReference.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names +optional
optional string name = 3;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;hasUid in interface V1.ObjectReferenceOrBuilderpublic String getUid()
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids +optional
optional string uid = 4;getUid in interface V1.ObjectReferenceOrBuilderpublic 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;getUidBytes in interface V1.ObjectReferenceOrBuilderpublic V1.ObjectReference.Builder setUid(String value)
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids +optional
optional string uid = 4;public V1.ObjectReference.Builder clearUid()
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids +optional
optional string uid = 4;public V1.ObjectReference.Builder setUidBytes(com.google.protobuf.ByteString value)
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids +optional
optional string uid = 4;public boolean hasApiVersion()
API version of the referent. +optional
optional string apiVersion = 5;hasApiVersion in interface V1.ObjectReferenceOrBuilderpublic String getApiVersion()
API version of the referent. +optional
optional string apiVersion = 5;getApiVersion in interface V1.ObjectReferenceOrBuilderpublic com.google.protobuf.ByteString getApiVersionBytes()
API version of the referent. +optional
optional string apiVersion = 5;getApiVersionBytes in interface V1.ObjectReferenceOrBuilderpublic V1.ObjectReference.Builder setApiVersion(String value)
API version of the referent. +optional
optional string apiVersion = 5;public V1.ObjectReference.Builder clearApiVersion()
API version of the referent. +optional
optional string apiVersion = 5;public V1.ObjectReference.Builder setApiVersionBytes(com.google.protobuf.ByteString value)
API version of the referent. +optional
optional string apiVersion = 5;public boolean hasResourceVersion()
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency +optional
optional string resourceVersion = 6;hasResourceVersion in interface V1.ObjectReferenceOrBuilderpublic String getResourceVersion()
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency +optional
optional string resourceVersion = 6;getResourceVersion in interface V1.ObjectReferenceOrBuilderpublic com.google.protobuf.ByteString getResourceVersionBytes()
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency +optional
optional string resourceVersion = 6;getResourceVersionBytes in interface V1.ObjectReferenceOrBuilderpublic V1.ObjectReference.Builder setResourceVersion(String value)
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency +optional
optional string resourceVersion = 6;public V1.ObjectReference.Builder clearResourceVersion()
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency +optional
optional string resourceVersion = 6;public V1.ObjectReference.Builder setResourceVersionBytes(com.google.protobuf.ByteString value)
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency +optional
optional string resourceVersion = 6;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.
+optional
optional string fieldPath = 7;hasFieldPath in interface V1.ObjectReferenceOrBuilderpublic 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.
+optional
optional string fieldPath = 7;getFieldPath in interface V1.ObjectReferenceOrBuilderpublic 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.
+optional
optional string fieldPath = 7;getFieldPathBytes in interface V1.ObjectReferenceOrBuilderpublic V1.ObjectReference.Builder setFieldPath(String value)
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.
+optional
optional string fieldPath = 7;public V1.ObjectReference.Builder clearFieldPath()
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.
+optional
optional string fieldPath = 7;public V1.ObjectReference.Builder setFieldPathBytes(com.google.protobuf.ByteString value)
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.
+optional
optional string fieldPath = 7;public final V1.ObjectReference.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>public final V1.ObjectReference.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ObjectReference.Builder>Copyright © 2020. All rights reserved.