Class MessageField

All Implemented Interfaces:
HasAnnotations, HasName, HasOptions, HasProto, Comparable<Field<?>>

public class MessageField extends Field<Message>
Represents a message field defined in a Proto.
  • Field Details

  • Constructor Details

    • MessageField

      public MessageField()
    • MessageField

      public MessageField(Message message)
  • Method Details

    • getMessage

      public Message getMessage()
    • getJavaType

      public String getJavaType()
      Specified by:
      getJavaType in class Field<Message>
    • getRegularType

      public String getRegularType()
    • getDefaultValueAsString

      public String getDefaultValueAsString()
      Overrides:
      getDefaultValueAsString in class Field<Message>
    • isDelimited

      public boolean isDelimited()
      Overrides:
      isDelimited in class Field<Message>
    • isSamePackage

      public boolean isSamePackage()
    • getRelativePath

      public String getRelativePath()
    • getProtoType

      public String getProtoType()
      Description copied from class: Field
      Returns field type for proto files. Scalar value types: https://developers.google.com/protocol-buffers/docs/proto#scalar
      Overrides:
      getProtoType in class Field<Message>
      Returns:
      .proto type