Class Message


  • public abstract class Message
    extends Object
    • Constructor Detail

      • Message

        public Message()
    • Method Detail

      • name

        public abstract String name()
      • fullProtoName

        public abstract String fullProtoName()
      • fields

        public abstract com.google.common.collect.ImmutableList<Field> fields()
      • enumValues

        public abstract com.google.common.collect.ImmutableMap<String,​Integer> enumValues()
      • type

        public abstract TypeNode type()
      • fieldMap

        public abstract com.google.common.collect.ImmutableMap<String,​Field> fieldMap()
      • operationRequestFields

        public abstract Map<String,​String> operationRequestFields()
      • operationResponseFields

        public abstract com.google.common.collect.BiMap<String,​String> operationResponseFields()
      • outerNestedTypes

        public abstract com.google.common.collect.ImmutableList<String> outerNestedTypes()
      • isEnum

        public boolean isEnum()
      • hasResource

        public boolean hasResource()
      • validateField

        public void validateField​(String fieldName,
                                  Map<String,​Message> messageTypes,
                                  TypeNode type)
        Validates if the field or fields exist in the message and the type of the leaf level field.
        Parameters:
        fieldName - The field name. For nested field, concatenate each field name with dot. For example: abc.def.ghi
        messageTypes - All messages configured in a rpc service.
        type - TypeNode The expected type for the leaf level field
      • findAndUnwrapPaginatedRepeatedField

        @Nullable
        public Field findAndUnwrapPaginatedRepeatedField()
        Returns the first list repeated field in a message, unwrapped from its list type.