Interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
DescriptorProtos.ExtensionRangeOptions.Declaration, DescriptorProtos.ExtensionRangeOptions.Declaration.Builder
Enclosing class:
DescriptorProtos.ExtensionRangeOptions

public static interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The fully-qualified name of the extension field.
    com.google.protobuf.ByteString
    The fully-qualified name of the extension field.
    int
    The extension number declared within the extension range.
    boolean
    If true, indicates that the extension must be defined as repeated.
    boolean
    If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile.
    The fully-qualified type name of the extension field.
    com.google.protobuf.ByteString
    The fully-qualified type name of the extension field.
    boolean
    The fully-qualified name of the extension field.
    boolean
    The extension number declared within the extension range.
    boolean
    If true, indicates that the extension must be defined as repeated.
    boolean
    If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile.
    boolean
    The fully-qualified type name of the extension 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 Details

    • hasNumber

      boolean hasNumber()
       The extension number declared within the extension range.
       
      optional int32 number = 1;
      Returns:
      Whether the number field is set.
    • getNumber

      int getNumber()
       The extension number declared within the extension range.
       
      optional int32 number = 1;
      Returns:
      The number.
    • hasFullName

      boolean hasFullName()
       The fully-qualified name of the extension field. There must be a leading
       dot in front of the full name.
       
      optional string full_name = 2;
      Returns:
      Whether the fullName field is set.
    • getFullName

      String getFullName()
       The fully-qualified name of the extension field. There must be a leading
       dot in front of the full name.
       
      optional string full_name = 2;
      Returns:
      The fullName.
    • getFullNameBytes

      com.google.protobuf.ByteString getFullNameBytes()
       The fully-qualified name of the extension field. There must be a leading
       dot in front of the full name.
       
      optional string full_name = 2;
      Returns:
      The bytes for fullName.
    • hasType

      boolean hasType()
       The fully-qualified type name of the extension field. Unlike
       Metadata.type, Declaration.type must have a leading dot for messages
       and enums.
       
      optional string type = 3;
      Returns:
      Whether the type field is set.
    • getType

      String getType()
       The fully-qualified type name of the extension field. Unlike
       Metadata.type, Declaration.type must have a leading dot for messages
       and enums.
       
      optional string type = 3;
      Returns:
      The type.
    • getTypeBytes

      com.google.protobuf.ByteString getTypeBytes()
       The fully-qualified type name of the extension field. Unlike
       Metadata.type, Declaration.type must have a leading dot for messages
       and enums.
       
      optional string type = 3;
      Returns:
      The bytes for type.
    • hasReserved

      boolean hasReserved()
       If true, indicates that the number is reserved in the extension range,
       and any extension field with the number will fail to compile. Set this
       when a declared extension field is deleted.
       
      optional bool reserved = 5;
      Returns:
      Whether the reserved field is set.
    • getReserved

      boolean getReserved()
       If true, indicates that the number is reserved in the extension range,
       and any extension field with the number will fail to compile. Set this
       when a declared extension field is deleted.
       
      optional bool reserved = 5;
      Returns:
      The reserved.
    • hasRepeated

      boolean hasRepeated()
       If true, indicates that the extension must be defined as repeated.
       Otherwise the extension must be defined as optional.
       
      optional bool repeated = 6;
      Returns:
      Whether the repeated field is set.
    • getRepeated

      boolean getRepeated()
       If true, indicates that the extension must be defined as repeated.
       Otherwise the extension must be defined as optional.
       
      optional bool repeated = 6;
      Returns:
      The repeated.