Class Generated.ApplyOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.ApplyOptions.Builder>
-
- k8s.io.apimachinery.pkg.apis.meta.v1.Generated.ApplyOptions.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.ApplyOptionsOrBuilder
- Enclosing class:
- Generated.ApplyOptions
public static final class Generated.ApplyOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.ApplyOptions.Builder> implements Generated.ApplyOptionsOrBuilder
ApplyOptions may be provided when applying an API object. FieldManager is required for apply requests. ApplyOptions is equivalent to PatchOptions. It is provided as a convenience with documentation that speaks specifically to how the options fields relate to apply.
Protobuf typek8s.io.apimachinery.pkg.apis.meta.v1.ApplyOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.ApplyOptions.BuilderaddAllDryRun(Iterable<String> values)When present, indicates that modifications should not be persisted.Generated.ApplyOptions.BuilderaddDryRun(String value)When present, indicates that modifications should not be persisted.Generated.ApplyOptions.BuilderaddDryRunBytes(com.google.protobuf.ByteString value)When present, indicates that modifications should not be persisted.Generated.ApplyOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.ApplyOptionsbuild()Generated.ApplyOptionsbuildPartial()Generated.ApplyOptions.Builderclear()Generated.ApplyOptions.BuilderclearDryRun()When present, indicates that modifications should not be persisted.Generated.ApplyOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.ApplyOptions.BuilderclearFieldManager()fieldManager is a name associated with the actor or entity that is making these changes.Generated.ApplyOptions.BuilderclearForce()Force is going to "force" Apply requests.Generated.ApplyOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.ApplyOptions.Builderclone()Generated.ApplyOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDryRun(int index)When present, indicates that modifications should not be persisted.com.google.protobuf.ByteStringgetDryRunBytes(int index)When present, indicates that modifications should not be persisted.intgetDryRunCount()When present, indicates that modifications should not be persisted.com.google.protobuf.ProtocolStringListgetDryRunList()When present, indicates that modifications should not be persisted.StringgetFieldManager()fieldManager is a name associated with the actor or entity that is making these changes.com.google.protobuf.ByteStringgetFieldManagerBytes()fieldManager is a name associated with the actor or entity that is making these changes.booleangetForce()Force is going to "force" Apply requests.booleanhasFieldManager()fieldManager is a name associated with the actor or entity that is making these changes.booleanhasForce()Force is going to "force" Apply requests.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.ApplyOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.ApplyOptions.BuildermergeFrom(com.google.protobuf.Message other)Generated.ApplyOptions.BuildermergeFrom(Generated.ApplyOptions other)Generated.ApplyOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.ApplyOptions.BuildersetDryRun(int index, String value)When present, indicates that modifications should not be persisted.Generated.ApplyOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.ApplyOptions.BuildersetFieldManager(String value)fieldManager is a name associated with the actor or entity that is making these changes.Generated.ApplyOptions.BuildersetFieldManagerBytes(com.google.protobuf.ByteString value)fieldManager is a name associated with the actor or entity that is making these changes.Generated.ApplyOptions.BuildersetForce(boolean value)Force is going to "force" Apply requests.Generated.ApplyOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.ApplyOptions.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.ApplyOptions.Builder>
-
clear
public Generated.ApplyOptions.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.ApplyOptions.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.ApplyOptions.Builder>
-
getDefaultInstanceForType
public Generated.ApplyOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.ApplyOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.ApplyOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.ApplyOptions.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.ApplyOptions.Builder>
-
setField
public Generated.ApplyOptions.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.ApplyOptions.Builder>
-
clearField
public Generated.ApplyOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ApplyOptions.Builder>
-
clearOneof
public Generated.ApplyOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ApplyOptions.Builder>
-
setRepeatedField
public Generated.ApplyOptions.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.ApplyOptions.Builder>
-
addRepeatedField
public Generated.ApplyOptions.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.ApplyOptions.Builder>
-
mergeFrom
public Generated.ApplyOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.ApplyOptions.Builder>
-
mergeFrom
public Generated.ApplyOptions.Builder mergeFrom(Generated.ApplyOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ApplyOptions.Builder>
-
mergeFrom
public Generated.ApplyOptions.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.ApplyOptions.Builder>- Throws:
IOException
-
getDryRunList
public com.google.protobuf.ProtocolStringList getDryRunList()
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic
repeated string dryRun = 1;- Specified by:
getDryRunListin interfaceGenerated.ApplyOptionsOrBuilder- Returns:
- A list containing the dryRun.
-
getDryRunCount
public int getDryRunCount()
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic
repeated string dryRun = 1;- Specified by:
getDryRunCountin interfaceGenerated.ApplyOptionsOrBuilder- Returns:
- The count of dryRun.
-
getDryRun
public String getDryRun(int index)
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic
repeated string dryRun = 1;- Specified by:
getDryRunin interfaceGenerated.ApplyOptionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dryRun at the given index.
-
getDryRunBytes
public com.google.protobuf.ByteString getDryRunBytes(int index)
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic
repeated string dryRun = 1;- Specified by:
getDryRunBytesin interfaceGenerated.ApplyOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dryRun at the given index.
-
setDryRun
public Generated.ApplyOptions.Builder setDryRun(int index, String value)
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic
repeated string dryRun = 1;- Parameters:
index- The index to set the value at.value- The dryRun to set.- Returns:
- This builder for chaining.
-
addDryRun
public Generated.ApplyOptions.Builder addDryRun(String value)
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic
repeated string dryRun = 1;- Parameters:
value- The dryRun to add.- Returns:
- This builder for chaining.
-
addAllDryRun
public Generated.ApplyOptions.Builder addAllDryRun(Iterable<String> values)
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic
repeated string dryRun = 1;- Parameters:
values- The dryRun to add.- Returns:
- This builder for chaining.
-
clearDryRun
public Generated.ApplyOptions.Builder clearDryRun()
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic
repeated string dryRun = 1;- Returns:
- This builder for chaining.
-
addDryRunBytes
public Generated.ApplyOptions.Builder addDryRunBytes(com.google.protobuf.ByteString value)
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional +listType=atomic
repeated string dryRun = 1;- Parameters:
value- The bytes of the dryRun to add.- Returns:
- This builder for chaining.
-
hasForce
public boolean hasForce()
Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people.
optional bool force = 2;- Specified by:
hasForcein interfaceGenerated.ApplyOptionsOrBuilder- Returns:
- Whether the force field is set.
-
getForce
public boolean getForce()
Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people.
optional bool force = 2;- Specified by:
getForcein interfaceGenerated.ApplyOptionsOrBuilder- Returns:
- The force.
-
setForce
public Generated.ApplyOptions.Builder setForce(boolean value)
Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people.
optional bool force = 2;- Parameters:
value- The force to set.- Returns:
- This builder for chaining.
-
clearForce
public Generated.ApplyOptions.Builder clearForce()
Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people.
optional bool force = 2;- Returns:
- This builder for chaining.
-
hasFieldManager
public boolean hasFieldManager()
fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required.
optional string fieldManager = 3;- Specified by:
hasFieldManagerin interfaceGenerated.ApplyOptionsOrBuilder- Returns:
- Whether the fieldManager field is set.
-
getFieldManager
public String getFieldManager()
fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required.
optional string fieldManager = 3;- Specified by:
getFieldManagerin interfaceGenerated.ApplyOptionsOrBuilder- Returns:
- The fieldManager.
-
getFieldManagerBytes
public com.google.protobuf.ByteString getFieldManagerBytes()
fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required.
optional string fieldManager = 3;- Specified by:
getFieldManagerBytesin interfaceGenerated.ApplyOptionsOrBuilder- Returns:
- The bytes for fieldManager.
-
setFieldManager
public Generated.ApplyOptions.Builder setFieldManager(String value)
fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required.
optional string fieldManager = 3;- Parameters:
value- The fieldManager to set.- Returns:
- This builder for chaining.
-
clearFieldManager
public Generated.ApplyOptions.Builder clearFieldManager()
fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required.
optional string fieldManager = 3;- Returns:
- This builder for chaining.
-
setFieldManagerBytes
public Generated.ApplyOptions.Builder setFieldManagerBytes(com.google.protobuf.ByteString value)
fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required.
optional string fieldManager = 3;- Parameters:
value- The bytes for fieldManager to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.ApplyOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ApplyOptions.Builder>
-
mergeUnknownFields
public final Generated.ApplyOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ApplyOptions.Builder>
-
-