Package com.google.protobuf.util
Class FieldMaskUtil.TrimOptions
- java.lang.Object
-
- com.google.protobuf.util.FieldMaskUtil.TrimOptions
-
- Enclosing class:
- FieldMaskUtil
public static final class FieldMaskUtil.TrimOptions extends java.lang.Object
Options to customize trimming behavior.
-
-
Constructor Summary
Constructors Constructor Description TrimOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
retainPrimitiveFieldUnsetState()
Whether the unset state of primitive fields should be retained when trimming.FieldMaskUtil.TrimOptions
setRetainPrimitiveFieldUnsetState(boolean value)
Specify whether the unset state of primitive fields should be retained when trimming.
-
-
-
Method Detail
-
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.
-
-