Interface Protos.ExtensionOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder
    All Known Implementing Classes:
    Protos.Extension, Protos.Extension.Builder
    Enclosing class:
    Protos

    public static interface Protos.ExtensionOrBuilder
    extends com.google.protobuf.MessageLiteOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.protobuf.ByteString getData()
      required bytes data = 2;
      java.lang.String getId()
      like org.whatever.foo.bar
      com.google.protobuf.ByteString getIdBytes()
      like org.whatever.foo.bar
      boolean getMandatory()
      If we do not understand a mandatory extension, abort to prevent data loss.
      boolean hasData()
      required bytes data = 2;
      boolean hasId()
      like org.whatever.foo.bar
      boolean hasMandatory()
      If we do not understand a mandatory extension, abort to prevent data loss.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        getDefaultInstanceForType, isInitialized
    • Method Detail

      • hasId

        boolean hasId()
         like org.whatever.foo.bar
         
        required string id = 1;
        Returns:
        Whether the id field is set.
      • getId

        java.lang.String getId()
         like org.whatever.foo.bar
         
        required string id = 1;
        Returns:
        The id.
      • getIdBytes

        com.google.protobuf.ByteString getIdBytes()
         like org.whatever.foo.bar
         
        required string id = 1;
        Returns:
        The bytes for id.
      • hasData

        boolean hasData()
        required bytes data = 2;
        Returns:
        Whether the data field is set.
      • getData

        com.google.protobuf.ByteString getData()
        required bytes data = 2;
        Returns:
        The data.
      • hasMandatory

        boolean hasMandatory()
         If we do not understand a mandatory extension, abort to prevent data loss.
         For example, this could be applied to a new type of holding, such as a contract, where
         dropping of an extension in a read/write cycle could cause loss of value.
         
        required bool mandatory = 3;
        Returns:
        Whether the mandatory field is set.
      • getMandatory

        boolean getMandatory()
         If we do not understand a mandatory extension, abort to prevent data loss.
         For example, this could be applied to a new type of holding, such as a contract, where
         dropping of an extension in a read/write cycle could cause loss of value.
         
        required bool mandatory = 3;
        Returns:
        The mandatory.