Package k8s.io.api.core.v1
Class Generated.ObjectReference.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
- k8s.io.api.core.v1.Generated.ObjectReference.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.ObjectReferenceOrBuilder
- Enclosing class:
- Generated.ObjectReference
public static final class Generated.ObjectReference.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder> 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.ObjectReference.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.ObjectReferencebuild()Generated.ObjectReferencebuildPartial()Generated.ObjectReference.Builderclear()Generated.ObjectReference.BuilderclearApiVersion()API version of the referent.Generated.ObjectReference.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.ObjectReference.BuilderclearFieldPath()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].Generated.ObjectReference.BuilderclearKind()Kind of the referent.Generated.ObjectReference.BuilderclearName()Name of the referent.Generated.ObjectReference.BuilderclearNamespace()Namespace of the referent.Generated.ObjectReference.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.ObjectReference.BuilderclearResourceVersion()Specific resourceVersion to which this reference is made, if any.Generated.ObjectReference.BuilderclearUid()UID of the referent.Generated.ObjectReference.Builderclone()StringgetApiVersion()API version of the referent.com.google.protobuf.ByteStringgetApiVersionBytes()API version of the referent.Generated.ObjectReferencegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.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.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].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()Generated.ObjectReference.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.ObjectReference.BuildermergeFrom(com.google.protobuf.Message other)Generated.ObjectReference.BuildermergeFrom(Generated.ObjectReference other)Generated.ObjectReference.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.ObjectReference.BuildersetApiVersion(String value)API version of the referent.Generated.ObjectReference.BuildersetApiVersionBytes(com.google.protobuf.ByteString value)API version of the referent.Generated.ObjectReference.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.ObjectReference.BuildersetFieldPath(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].Generated.ObjectReference.BuildersetFieldPathBytes(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].Generated.ObjectReference.BuildersetKind(String value)Kind of the referent.Generated.ObjectReference.BuildersetKindBytes(com.google.protobuf.ByteString value)Kind of the referent.Generated.ObjectReference.BuildersetName(String value)Name of the referent.Generated.ObjectReference.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the referent.Generated.ObjectReference.BuildersetNamespace(String value)Namespace of the referent.Generated.ObjectReference.BuildersetNamespaceBytes(com.google.protobuf.ByteString value)Namespace of the referent.Generated.ObjectReference.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.ObjectReference.BuildersetResourceVersion(String value)Specific resourceVersion to which this reference is made, if any.Generated.ObjectReference.BuildersetResourceVersionBytes(com.google.protobuf.ByteString value)Specific resourceVersion to which this reference is made, if any.Generated.ObjectReference.BuildersetUid(String value)UID of the referent.Generated.ObjectReference.BuildersetUidBytes(com.google.protobuf.ByteString value)UID of the referent.Generated.ObjectReference.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Generated.ObjectReference.Builder>
-
clear
public Generated.ObjectReference.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
getDefaultInstanceForType
public Generated.ObjectReference getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.ObjectReference build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.ObjectReference buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.ObjectReference.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
setField
public Generated.ObjectReference.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
clearField
public Generated.ObjectReference.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
clearOneof
public Generated.ObjectReference.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
setRepeatedField
public Generated.ObjectReference.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
addRepeatedField
public Generated.ObjectReference.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
mergeFrom
public Generated.ObjectReference.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.ObjectReference.Builder>
-
mergeFrom
public Generated.ObjectReference.Builder mergeFrom(Generated.ObjectReference other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
mergeFrom
public Generated.ObjectReference.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.ObjectReference.Builder>- Throws:
IOException
-
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.
-
setKind
public Generated.ObjectReference.Builder setKind(String value)
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;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Generated.ObjectReference.Builder clearKind()
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;- Returns:
- This builder for chaining.
-
setKindBytes
public Generated.ObjectReference.Builder setKindBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
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.
-
setNamespace
public Generated.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;- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
public Generated.ObjectReference.Builder clearNamespace()
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ +optional
optional string namespace = 2;- Returns:
- This builder for chaining.
-
setNamespaceBytes
public Generated.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;- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
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.
-
setName
public Generated.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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Generated.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;- Returns:
- This builder for chaining.
-
setNameBytes
public Generated.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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setUid
public Generated.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;- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
public Generated.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;- Returns:
- This builder for chaining.
-
setUidBytes
public Generated.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;- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
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.
-
setApiVersion
public Generated.ObjectReference.Builder setApiVersion(String value)
API version of the referent. +optional
optional string apiVersion = 5;- Parameters:
value- The apiVersion to set.- Returns:
- This builder for chaining.
-
clearApiVersion
public Generated.ObjectReference.Builder clearApiVersion()
API version of the referent. +optional
optional string apiVersion = 5;- Returns:
- This builder for chaining.
-
setApiVersionBytes
public Generated.ObjectReference.Builder setApiVersionBytes(com.google.protobuf.ByteString value)
API version of the referent. +optional
optional string apiVersion = 5;- Parameters:
value- The bytes for apiVersion to set.- Returns:
- This builder for chaining.
-
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.
-
setResourceVersion
public Generated.ObjectReference.Builder setResourceVersion(String value)
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;- Parameters:
value- The resourceVersion to set.- Returns:
- This builder for chaining.
-
clearResourceVersion
public Generated.ObjectReference.Builder clearResourceVersion()
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;- Returns:
- This builder for chaining.
-
setResourceVersionBytes
public Generated.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/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional
optional string resourceVersion = 6;- Parameters:
value- The bytes for resourceVersion to set.- Returns:
- This builder for chaining.
-
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.
-
setFieldPath
public Generated.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. +optionaloptional string fieldPath = 7;- Parameters:
value- The fieldPath to set.- Returns:
- This builder for chaining.
-
clearFieldPath
public Generated.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. +optionaloptional string fieldPath = 7;- Returns:
- This builder for chaining.
-
setFieldPathBytes
public Generated.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. +optionaloptional string fieldPath = 7;- Parameters:
value- The bytes for fieldPath to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.ObjectReference.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
mergeUnknownFields
public final Generated.ObjectReference.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ObjectReference.Builder>
-
-