public static final class Meta.PatchOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Meta.PatchOptions.Builder> implements Meta.PatchOptionsOrBuilder
PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.Protobuf type
k8s.io.apimachinery.pkg.apis.meta.v1.PatchOptions| Modifier and Type | Method and Description |
|---|---|
Meta.PatchOptions.Builder |
addAllDryRun(Iterable<String> values)
When present, indicates that modifications should not be
persisted.
|
Meta.PatchOptions.Builder |
addDryRun(String value)
When present, indicates that modifications should not be
persisted.
|
Meta.PatchOptions.Builder |
addDryRunBytes(com.google.protobuf.ByteString value)
When present, indicates that modifications should not be
persisted.
|
Meta.PatchOptions.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Meta.PatchOptions |
build() |
Meta.PatchOptions |
buildPartial() |
Meta.PatchOptions.Builder |
clear() |
Meta.PatchOptions.Builder |
clearDryRun()
When present, indicates that modifications should not be
persisted.
|
Meta.PatchOptions.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Meta.PatchOptions.Builder |
clearFieldManager()
fieldManager is a name associated with the actor or entity
that is making these changes.
|
Meta.PatchOptions.Builder |
clearForce()
Force is going to "force" Apply requests.
|
Meta.PatchOptions.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Meta.PatchOptions.Builder |
clone() |
Meta.PatchOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDryRun(int index)
When present, indicates that modifications should not be
persisted.
|
com.google.protobuf.ByteString |
getDryRunBytes(int index)
When present, indicates that modifications should not be
persisted.
|
int |
getDryRunCount()
When present, indicates that modifications should not be
persisted.
|
com.google.protobuf.ProtocolStringList |
getDryRunList()
When present, indicates that modifications should not be
persisted.
|
String |
getFieldManager()
fieldManager is a name associated with the actor or entity
that is making these changes.
|
com.google.protobuf.ByteString |
getFieldManagerBytes()
fieldManager is a name associated with the actor or entity
that is making these changes.
|
boolean |
getForce()
Force is going to "force" Apply requests.
|
boolean |
hasFieldManager()
fieldManager is a name associated with the actor or entity
that is making these changes.
|
boolean |
hasForce()
Force is going to "force" Apply requests.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Meta.PatchOptions.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Meta.PatchOptions.Builder |
mergeFrom(com.google.protobuf.Message other) |
Meta.PatchOptions.Builder |
mergeFrom(Meta.PatchOptions other) |
Meta.PatchOptions.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Meta.PatchOptions.Builder |
setDryRun(int index,
String value)
When present, indicates that modifications should not be
persisted.
|
Meta.PatchOptions.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Meta.PatchOptions.Builder |
setFieldManager(String value)
fieldManager is a name associated with the actor or entity
that is making these changes.
|
Meta.PatchOptions.Builder |
setFieldManagerBytes(com.google.protobuf.ByteString value)
fieldManager is a name associated with the actor or entity
that is making these changes.
|
Meta.PatchOptions.Builder |
setForce(boolean value)
Force is going to "force" Apply requests.
|
Meta.PatchOptions.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Meta.PatchOptions.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.PatchOptions.Builder>public Meta.PatchOptions.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.PatchOptions.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<Meta.PatchOptions.Builder>public Meta.PatchOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Meta.PatchOptions build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Meta.PatchOptions buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Meta.PatchOptions.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.PatchOptions.Builder>public Meta.PatchOptions.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<Meta.PatchOptions.Builder>public Meta.PatchOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.PatchOptions.Builder>public Meta.PatchOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.PatchOptions.Builder>public Meta.PatchOptions.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<Meta.PatchOptions.Builder>public Meta.PatchOptions.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<Meta.PatchOptions.Builder>public Meta.PatchOptions.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Meta.PatchOptions.Builder>public Meta.PatchOptions.Builder mergeFrom(Meta.PatchOptions other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.PatchOptions.Builder>public Meta.PatchOptions.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<Meta.PatchOptions.Builder>IOExceptionpublic 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
repeated string dryRun = 1;getDryRunList in interface Meta.PatchOptionsOrBuilderpublic 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
repeated string dryRun = 1;getDryRunCount in interface Meta.PatchOptionsOrBuilderpublic 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
repeated string dryRun = 1;getDryRun in interface Meta.PatchOptionsOrBuilderpublic 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
repeated string dryRun = 1;getDryRunBytes in interface Meta.PatchOptionsOrBuilderpublic Meta.PatchOptions.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
repeated string dryRun = 1;public Meta.PatchOptions.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
repeated string dryRun = 1;public Meta.PatchOptions.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
repeated string dryRun = 1;public Meta.PatchOptions.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
repeated string dryRun = 1;public Meta.PatchOptions.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
repeated string dryRun = 1;public boolean hasForce()
Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +optional
optional bool force = 2;hasForce in interface Meta.PatchOptionsOrBuilderpublic boolean getForce()
Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +optional
optional bool force = 2;getForce in interface Meta.PatchOptionsOrBuilderpublic Meta.PatchOptions.Builder setForce(boolean value)
Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +optional
optional bool force = 2;public Meta.PatchOptions.Builder clearForce()
Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +optional
optional bool force = 2;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 for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +optional
optional string fieldManager = 3;hasFieldManager in interface Meta.PatchOptionsOrBuilderpublic 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 for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +optional
optional string fieldManager = 3;getFieldManager in interface Meta.PatchOptionsOrBuilderpublic 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 for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +optional
optional string fieldManager = 3;getFieldManagerBytes in interface Meta.PatchOptionsOrBuilderpublic Meta.PatchOptions.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 for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +optional
optional string fieldManager = 3;public Meta.PatchOptions.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 for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +optional
optional string fieldManager = 3;public Meta.PatchOptions.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 for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +optional
optional string fieldManager = 3;public final Meta.PatchOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.PatchOptions.Builder>public final Meta.PatchOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.PatchOptions.Builder>Copyright © 2023. All rights reserved.