Class FieldMaskUtil.TrimOptions
java.lang.Object
com.google.protobuf.util.FieldMaskUtil.TrimOptions
- Enclosing class:
FieldMaskUtil
Options to customize trimming behavior.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the unset state of primitive fields should be retained when trimming.setRetainPrimitiveFieldUnsetState(boolean value) Specify whether the unset state of primitive fields should be retained when trimming.
-
Field Details
-
retainPrimitiveFieldUnsetState
private boolean retainPrimitiveFieldUnsetState
-
-
Constructor Details
-
TrimOptions
public TrimOptions()
-
-
Method Details
-
retainPrimitiveFieldUnsetState
public boolean retainPrimitiveFieldUnsetState()Whether the unset state of primitive fields should be retained when trimming. -
setRetainPrimitiveFieldUnsetState
@CanIgnoreReturnValue public FieldMaskUtil.TrimOptions setRetainPrimitiveFieldUnsetState(boolean value) Specify whether the unset state of primitive fields should be retained when trimming. Defaults to false.If true, unset primitive fields indicated by the field mask will remain unset.
If false, unset primitive fields indicated by the field mask will be set to their default values.
-