Interface MergeFieldsOptionsOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    MergeFieldsOptions, MergeFieldsOptions.Builder

    public interface MergeFieldsOptionsOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getReplaceMessageFields()
      When merging message fields, the default behavior is to merge the content of two message fields together.
      boolean getReplaceRepeatedFields()
      When merging repeated fields, the default behavior is to append entries from the source repeated field to the destination repeated field.
      boolean hasReplaceMessageFields()
      When merging message fields, the default behavior is to merge the content of two message fields together.
      boolean hasReplaceRepeatedFields()
      When merging repeated fields, the default behavior is to append entries from the source repeated field to the destination repeated field.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasReplaceMessageFields

        boolean hasReplaceMessageFields()
         When merging message fields, the default behavior is to merge
         the content of two message fields together. If you instead want to use
         the field from the source message to replace the corresponding field in
         the destination message, set this flag to true. When this flag is set,
         specified submessage fields that are missing in source will be cleared in
         destination.
         
        optional bool replace_message_fields = 1;
        Returns:
        Whether the replaceMessageFields field is set.
      • getReplaceMessageFields

        boolean getReplaceMessageFields()
         When merging message fields, the default behavior is to merge
         the content of two message fields together. If you instead want to use
         the field from the source message to replace the corresponding field in
         the destination message, set this flag to true. When this flag is set,
         specified submessage fields that are missing in source will be cleared in
         destination.
         
        optional bool replace_message_fields = 1;
        Returns:
        The replaceMessageFields.
      • hasReplaceRepeatedFields

        boolean hasReplaceRepeatedFields()
         When merging repeated fields, the default behavior is to append
         entries from the source repeated field to the destination repeated field.
         If you instead want to keep only the entries from the source repeated
         field, set this flag to true.
        
         If you want to replace a repeated field within a message field on the
         destination message, you must set both replace_repeated_fields and
         replace_message_fields to true, otherwise the repeated fields will be
         appended.
         
        optional bool replace_repeated_fields = 2;
        Returns:
        Whether the replaceRepeatedFields field is set.
      • getReplaceRepeatedFields

        boolean getReplaceRepeatedFields()
         When merging repeated fields, the default behavior is to append
         entries from the source repeated field to the destination repeated field.
         If you instead want to keep only the entries from the source repeated
         field, set this flag to true.
        
         If you want to replace a repeated field within a message field on the
         destination message, you must set both replace_repeated_fields and
         replace_message_fields to true, otherwise the repeated fields will be
         appended.
         
        optional bool replace_repeated_fields = 2;
        Returns:
        The replaceRepeatedFields.