Class Generated.PatchOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.PatchOptions.Builder>
-
- k8s.io.apimachinery.pkg.apis.meta.v1.Generated.PatchOptions.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.PatchOptionsOrBuilder
- Enclosing class:
- Generated.PatchOptions
public static final class Generated.PatchOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.PatchOptions.Builder> implements Generated.PatchOptionsOrBuilder
PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.
Protobuf typek8s.io.apimachinery.pkg.apis.meta.v1.PatchOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.PatchOptions.BuilderaddAllDryRun(Iterable<String> values)When present, indicates that modifications should not be persisted.Generated.PatchOptions.BuilderaddDryRun(String value)When present, indicates that modifications should not be persisted.Generated.PatchOptions.BuilderaddDryRunBytes(com.google.protobuf.ByteString value)When present, indicates that modifications should not be persisted.Generated.PatchOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PatchOptionsbuild()Generated.PatchOptionsbuildPartial()Generated.PatchOptions.Builderclear()Generated.PatchOptions.BuilderclearDryRun()When present, indicates that modifications should not be persisted.Generated.PatchOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.PatchOptions.BuilderclearFieldManager()fieldManager is a name associated with the actor or entity that is making these changes.Generated.PatchOptions.BuilderclearFieldValidation()fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields.Generated.PatchOptions.BuilderclearForce()Force is going to "force" Apply requests.Generated.PatchOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.PatchOptions.Builderclone()Generated.PatchOptionsgetDefaultInstanceForType()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.StringgetFieldValidation()fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields.com.google.protobuf.ByteStringgetFieldValidationBytes()fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields.booleangetForce()Force is going to "force" Apply requests.booleanhasFieldManager()fieldManager is a name associated with the actor or entity that is making these changes.booleanhasFieldValidation()fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields.booleanhasForce()Force is going to "force" Apply requests.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.PatchOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.PatchOptions.BuildermergeFrom(com.google.protobuf.Message other)Generated.PatchOptions.BuildermergeFrom(Generated.PatchOptions other)Generated.PatchOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.PatchOptions.BuildersetDryRun(int index, String value)When present, indicates that modifications should not be persisted.Generated.PatchOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PatchOptions.BuildersetFieldManager(String value)fieldManager is a name associated with the actor or entity that is making these changes.Generated.PatchOptions.BuildersetFieldManagerBytes(com.google.protobuf.ByteString value)fieldManager is a name associated with the actor or entity that is making these changes.Generated.PatchOptions.BuildersetFieldValidation(String value)fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields.Generated.PatchOptions.BuildersetFieldValidationBytes(com.google.protobuf.ByteString value)fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields.Generated.PatchOptions.BuildersetForce(boolean value)Force is going to "force" Apply requests.Generated.PatchOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.PatchOptions.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.PatchOptions.Builder>
-
clear
public Generated.PatchOptions.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.PatchOptions.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.PatchOptions.Builder>
-
getDefaultInstanceForType
public Generated.PatchOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.PatchOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.PatchOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.PatchOptions.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.PatchOptions.Builder>
-
setField
public Generated.PatchOptions.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.PatchOptions.Builder>
-
clearField
public Generated.PatchOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PatchOptions.Builder>
-
clearOneof
public Generated.PatchOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PatchOptions.Builder>
-
setRepeatedField
public Generated.PatchOptions.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.PatchOptions.Builder>
-
addRepeatedField
public Generated.PatchOptions.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.PatchOptions.Builder>
-
mergeFrom
public Generated.PatchOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.PatchOptions.Builder>
-
mergeFrom
public Generated.PatchOptions.Builder mergeFrom(Generated.PatchOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PatchOptions.Builder>
-
mergeFrom
public Generated.PatchOptions.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.PatchOptions.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.PatchOptionsOrBuilder- 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.PatchOptionsOrBuilder- 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.PatchOptionsOrBuilder- 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.PatchOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dryRun at the given index.
-
setDryRun
public Generated.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 +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.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 +listType=atomic
repeated string dryRun = 1;- Parameters:
value- The dryRun to add.- Returns:
- This builder for chaining.
-
addAllDryRun
public Generated.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 +listType=atomic
repeated string dryRun = 1;- Parameters:
values- The dryRun to add.- Returns:
- This builder for chaining.
-
clearDryRun
public Generated.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 +listType=atomic
repeated string dryRun = 1;- Returns:
- This builder for chaining.
-
addDryRunBytes
public Generated.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 +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. Force flag must be unset for non-apply patch requests. +optional
optional bool force = 2;- Specified by:
hasForcein interfaceGenerated.PatchOptionsOrBuilder- 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. Force flag must be unset for non-apply patch requests. +optional
optional bool force = 2;- Specified by:
getForcein interfaceGenerated.PatchOptionsOrBuilder- Returns:
- The force.
-
setForce
public Generated.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;- Parameters:
value- The force to set.- Returns:
- This builder for chaining.
-
clearForce
public Generated.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;- 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 for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +optional
optional string fieldManager = 3;- Specified by:
hasFieldManagerin interfaceGenerated.PatchOptionsOrBuilder- 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 for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +optional
optional string fieldManager = 3;- Specified by:
getFieldManagerin interfaceGenerated.PatchOptionsOrBuilder- 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 for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +optional
optional string fieldManager = 3;- Specified by:
getFieldManagerBytesin interfaceGenerated.PatchOptionsOrBuilder- Returns:
- The bytes for fieldManager.
-
setFieldManager
public Generated.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;- Parameters:
value- The fieldManager to set.- Returns:
- This builder for chaining.
-
clearFieldManager
public Generated.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;- Returns:
- This builder for chaining.
-
setFieldManagerBytes
public Generated.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;- Parameters:
value- The bytes for fieldManager to set.- Returns:
- This builder for chaining.
-
hasFieldValidation
public boolean hasFieldValidation()
fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. +optional
optional string fieldValidation = 4;- Specified by:
hasFieldValidationin interfaceGenerated.PatchOptionsOrBuilder- Returns:
- Whether the fieldValidation field is set.
-
getFieldValidation
public String getFieldValidation()
fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. +optional
optional string fieldValidation = 4;- Specified by:
getFieldValidationin interfaceGenerated.PatchOptionsOrBuilder- Returns:
- The fieldValidation.
-
getFieldValidationBytes
public com.google.protobuf.ByteString getFieldValidationBytes()
fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. +optional
optional string fieldValidation = 4;- Specified by:
getFieldValidationBytesin interfaceGenerated.PatchOptionsOrBuilder- Returns:
- The bytes for fieldValidation.
-
setFieldValidation
public Generated.PatchOptions.Builder setFieldValidation(String value)
fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. +optional
optional string fieldValidation = 4;- Parameters:
value- The fieldValidation to set.- Returns:
- This builder for chaining.
-
clearFieldValidation
public Generated.PatchOptions.Builder clearFieldValidation()
fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. +optional
optional string fieldValidation = 4;- Returns:
- This builder for chaining.
-
setFieldValidationBytes
public Generated.PatchOptions.Builder setFieldValidationBytes(com.google.protobuf.ByteString value)
fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. +optional
optional string fieldValidation = 4;- Parameters:
value- The bytes for fieldValidation to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.PatchOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PatchOptions.Builder>
-
mergeUnknownFields
public final Generated.PatchOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PatchOptions.Builder>
-
-