Package protopoet

Class RpcFieldSpec

  • All Implemented Interfaces:
    Buildable<RpcFieldSpec>, protopoet.Useable.Field

    public final class RpcFieldSpec
    extends java.lang.Object
    implements protopoet.Useable.Field, Buildable<RpcFieldSpec>
    Defines an RPC field for use with ServiceSpec. Learn more: https://developers.google.com/protocol-buffers/docs/reference/proto3-spec#service_definition
    • Method Detail

      • emit

        public void emit​(protopoet.ProtoWriter writer)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • fieldName

        public java.lang.String fieldName()
        Specified by:
        fieldName in interface protopoet.Useable.Field
      • fieldNumber

        public java.util.Optional<java.lang.Integer> fieldNumber()
        Specified by:
        fieldNumber in interface protopoet.Useable.Field