Class FieldMaskUtil.TrimOptions

  • Enclosing class:
    FieldMaskUtil

    public static final class FieldMaskUtil.TrimOptions
    extends java.lang.Object
    Options to customize trimming behavior.
    • Constructor Detail

      • TrimOptions

        public TrimOptions()
    • 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.