Class Generated.OwnerReference.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.OwnerReference.Builder>
-
- k8s.io.apimachinery.pkg.apis.meta.v1.Generated.OwnerReference.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.OwnerReferenceOrBuilder
- Enclosing class:
- Generated.OwnerReference
public static final class Generated.OwnerReference.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.OwnerReference.Builder> implements Generated.OwnerReferenceOrBuilder
OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. +structType=atomic
Protobuf typek8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.OwnerReference.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.OwnerReferencebuild()Generated.OwnerReferencebuildPartial()Generated.OwnerReference.Builderclear()Generated.OwnerReference.BuilderclearApiVersion()API version of the referent.Generated.OwnerReference.BuilderclearBlockOwnerDeletion()If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed.Generated.OwnerReference.BuilderclearController()If true, this reference points to the managing controller.Generated.OwnerReference.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.OwnerReference.BuilderclearKind()Kind of the referent.Generated.OwnerReference.BuilderclearName()Name of the referent.Generated.OwnerReference.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.OwnerReference.BuilderclearUid()UID of the referent.Generated.OwnerReference.Builderclone()StringgetApiVersion()API version of the referent.com.google.protobuf.ByteStringgetApiVersionBytes()API version of the referent.booleangetBlockOwnerDeletion()If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed.booleangetController()If true, this reference points to the managing controller.Generated.OwnerReferencegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.StringgetUid()UID of the referent.com.google.protobuf.ByteStringgetUidBytes()UID of the referent.booleanhasApiVersion()API version of the referent.booleanhasBlockOwnerDeletion()If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed.booleanhasController()If true, this reference points to the managing controller.booleanhasKind()Kind of the referent.booleanhasName()Name of the referent.booleanhasUid()UID of the referent.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.OwnerReference.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.OwnerReference.BuildermergeFrom(com.google.protobuf.Message other)Generated.OwnerReference.BuildermergeFrom(Generated.OwnerReference other)Generated.OwnerReference.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.OwnerReference.BuildersetApiVersion(String value)API version of the referent.Generated.OwnerReference.BuildersetApiVersionBytes(com.google.protobuf.ByteString value)API version of the referent.Generated.OwnerReference.BuildersetBlockOwnerDeletion(boolean value)If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed.Generated.OwnerReference.BuildersetController(boolean value)If true, this reference points to the managing controller.Generated.OwnerReference.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.OwnerReference.BuildersetKind(String value)Kind of the referent.Generated.OwnerReference.BuildersetKindBytes(com.google.protobuf.ByteString value)Kind of the referent.Generated.OwnerReference.BuildersetName(String value)Name of the referent.Generated.OwnerReference.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the referent.Generated.OwnerReference.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.OwnerReference.BuildersetUid(String value)UID of the referent.Generated.OwnerReference.BuildersetUidBytes(com.google.protobuf.ByteString value)UID of the referent.Generated.OwnerReference.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.OwnerReference.Builder>
-
clear
public Generated.OwnerReference.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.OwnerReference.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.OwnerReference.Builder>
-
getDefaultInstanceForType
public Generated.OwnerReference getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.OwnerReference build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.OwnerReference buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.OwnerReference.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.OwnerReference.Builder>
-
setField
public Generated.OwnerReference.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.OwnerReference.Builder>
-
clearField
public Generated.OwnerReference.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.OwnerReference.Builder>
-
clearOneof
public Generated.OwnerReference.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.OwnerReference.Builder>
-
setRepeatedField
public Generated.OwnerReference.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.OwnerReference.Builder>
-
addRepeatedField
public Generated.OwnerReference.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.OwnerReference.Builder>
-
mergeFrom
public Generated.OwnerReference.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.OwnerReference.Builder>
-
mergeFrom
public Generated.OwnerReference.Builder mergeFrom(Generated.OwnerReference other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.OwnerReference.Builder>
-
mergeFrom
public Generated.OwnerReference.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.OwnerReference.Builder>- Throws:
IOException
-
hasApiVersion
public boolean hasApiVersion()
API version of the referent.
optional string apiVersion = 5;- Specified by:
hasApiVersionin interfaceGenerated.OwnerReferenceOrBuilder- Returns:
- Whether the apiVersion field is set.
-
getApiVersion
public String getApiVersion()
API version of the referent.
optional string apiVersion = 5;- Specified by:
getApiVersionin interfaceGenerated.OwnerReferenceOrBuilder- Returns:
- The apiVersion.
-
getApiVersionBytes
public com.google.protobuf.ByteString getApiVersionBytes()
API version of the referent.
optional string apiVersion = 5;- Specified by:
getApiVersionBytesin interfaceGenerated.OwnerReferenceOrBuilder- Returns:
- The bytes for apiVersion.
-
setApiVersion
public Generated.OwnerReference.Builder setApiVersion(String value)
API version of the referent.
optional string apiVersion = 5;- Parameters:
value- The apiVersion to set.- Returns:
- This builder for chaining.
-
clearApiVersion
public Generated.OwnerReference.Builder clearApiVersion()
API version of the referent.
optional string apiVersion = 5;- Returns:
- This builder for chaining.
-
setApiVersionBytes
public Generated.OwnerReference.Builder setApiVersionBytes(com.google.protobuf.ByteString value)
API version of the referent.
optional string apiVersion = 5;- Parameters:
value- The bytes for apiVersion to set.- Returns:
- This builder for chaining.
-
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 string kind = 1;- Specified by:
hasKindin interfaceGenerated.OwnerReferenceOrBuilder- 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 string kind = 1;- Specified by:
getKindin interfaceGenerated.OwnerReferenceOrBuilder- 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 string kind = 1;- Specified by:
getKindBytesin interfaceGenerated.OwnerReferenceOrBuilder- Returns:
- The bytes for kind.
-
setKind
public Generated.OwnerReference.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 string kind = 1;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Generated.OwnerReference.Builder clearKind()
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
optional string kind = 1;- Returns:
- This builder for chaining.
-
setKindBytes
public Generated.OwnerReference.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 string kind = 1;- Parameters:
value- The bytes for kind 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 string name = 3;- Specified by:
hasNamein interfaceGenerated.OwnerReferenceOrBuilder- 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 string name = 3;- Specified by:
getNamein interfaceGenerated.OwnerReferenceOrBuilder- 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 string name = 3;- Specified by:
getNameBytesin interfaceGenerated.OwnerReferenceOrBuilder- Returns:
- The bytes for name.
-
setName
public Generated.OwnerReference.Builder setName(String value)
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
optional string name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Generated.OwnerReference.Builder clearName()
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
optional string name = 3;- Returns:
- This builder for chaining.
-
setNameBytes
public Generated.OwnerReference.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 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 string uid = 4;- Specified by:
hasUidin interfaceGenerated.OwnerReferenceOrBuilder- 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 string uid = 4;- Specified by:
getUidin interfaceGenerated.OwnerReferenceOrBuilder- 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 string uid = 4;- Specified by:
getUidBytesin interfaceGenerated.OwnerReferenceOrBuilder- Returns:
- The bytes for uid.
-
setUid
public Generated.OwnerReference.Builder setUid(String value)
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
optional string uid = 4;- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
public Generated.OwnerReference.Builder clearUid()
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
optional string uid = 4;- Returns:
- This builder for chaining.
-
setUidBytes
public Generated.OwnerReference.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 string uid = 4;- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
hasController
public boolean hasController()
If true, this reference points to the managing controller. +optional
optional bool controller = 6;- Specified by:
hasControllerin interfaceGenerated.OwnerReferenceOrBuilder- Returns:
- Whether the controller field is set.
-
getController
public boolean getController()
If true, this reference points to the managing controller. +optional
optional bool controller = 6;- Specified by:
getControllerin interfaceGenerated.OwnerReferenceOrBuilder- Returns:
- The controller.
-
setController
public Generated.OwnerReference.Builder setController(boolean value)
If true, this reference points to the managing controller. +optional
optional bool controller = 6;- Parameters:
value- The controller to set.- Returns:
- This builder for chaining.
-
clearController
public Generated.OwnerReference.Builder clearController()
If true, this reference points to the managing controller. +optional
optional bool controller = 6;- Returns:
- This builder for chaining.
-
hasBlockOwnerDeletion
public boolean hasBlockOwnerDeletion()
If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional
optional bool blockOwnerDeletion = 7;- Specified by:
hasBlockOwnerDeletionin interfaceGenerated.OwnerReferenceOrBuilder- Returns:
- Whether the blockOwnerDeletion field is set.
-
getBlockOwnerDeletion
public boolean getBlockOwnerDeletion()
If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional
optional bool blockOwnerDeletion = 7;- Specified by:
getBlockOwnerDeletionin interfaceGenerated.OwnerReferenceOrBuilder- Returns:
- The blockOwnerDeletion.
-
setBlockOwnerDeletion
public Generated.OwnerReference.Builder setBlockOwnerDeletion(boolean value)
If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional
optional bool blockOwnerDeletion = 7;- Parameters:
value- The blockOwnerDeletion to set.- Returns:
- This builder for chaining.
-
clearBlockOwnerDeletion
public Generated.OwnerReference.Builder clearBlockOwnerDeletion()
If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional
optional bool blockOwnerDeletion = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.OwnerReference.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.OwnerReference.Builder>
-
mergeUnknownFields
public final Generated.OwnerReference.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.OwnerReference.Builder>
-
-