Class DescriptorProtos.EnumOptions.Builder

    • Method Detail

      • internalGetFieldAccessorTable

        protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Description copied from class: GeneratedMessage.Builder
        Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.
      • getDefaultInstanceForType

        public DescriptorProtos.EnumOptions getDefaultInstanceForType()
        Description copied from interface: MessageLiteOrBuilder
        Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.
      • build

        public DescriptorProtos.EnumOptions build()
        Description copied from interface: MessageLite.Builder
        Constructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.
      • mergeFrom

        public DescriptorProtos.EnumOptions.Builder mergeFrom(Message other)
        Description copied from interface: Message.Builder
        Merge other into the message being built. other must have the exact same type as this (i.e. getDescriptorForType() == other.getDescriptorForType()). Merging occurs as follows. For each field:
        * For singular primitive fields, if the field is set in other, then other's value overwrites the value in this message.
        * For singular message fields, if the field is set in other, it is merged into the corresponding sub-message of this message using the same merging rules.
        * For repeated fields, the elements in other are concatenated with the elements in this message. This is equivalent to the Message::MergeFrom method in C++.
      • hasAllowAlias

        public boolean hasAllowAlias()
        optional bool allow_alias = 2;
         Set this option to true to allow mapping different tag names to the same
         value.
         
      • getAllowAlias

        public boolean getAllowAlias()
        optional bool allow_alias = 2;
         Set this option to true to allow mapping different tag names to the same
         value.
         
      • setAllowAlias

        public DescriptorProtos.EnumOptions.Builder setAllowAlias(boolean value)
        optional bool allow_alias = 2;
         Set this option to true to allow mapping different tag names to the same
         value.
         
      • clearAllowAlias

        public DescriptorProtos.EnumOptions.Builder clearAllowAlias()
        optional bool allow_alias = 2;
         Set this option to true to allow mapping different tag names to the same
         value.
         
      • hasDeprecated

        public boolean hasDeprecated()
        optional bool deprecated = 3 [default = false];
         Is this enum deprecated?
         Depending on the target platform, this can emit Deprecated annotations
         for the enum, or it will be completely ignored; in the very least, this
         is a formalization for deprecating enums.
         
      • getDeprecated

        public boolean getDeprecated()
        optional bool deprecated = 3 [default = false];
         Is this enum deprecated?
         Depending on the target platform, this can emit Deprecated annotations
         for the enum, or it will be completely ignored; in the very least, this
         is a formalization for deprecating enums.
         
      • setDeprecated

        public DescriptorProtos.EnumOptions.Builder setDeprecated(boolean value)
        optional bool deprecated = 3 [default = false];
         Is this enum deprecated?
         Depending on the target platform, this can emit Deprecated annotations
         for the enum, or it will be completely ignored; in the very least, this
         is a formalization for deprecating enums.
         
      • clearDeprecated

        public DescriptorProtos.EnumOptions.Builder clearDeprecated()
        optional bool deprecated = 3 [default = false];
         Is this enum deprecated?
         Depending on the target platform, this can emit Deprecated annotations
         for the enum, or it will be completely ignored; in the very least, this
         is a formalization for deprecating enums.
         
      • getUninterpretedOptionList

        public List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.
         
      • getUninterpretedOptionCount

        public int getUninterpretedOptionCount()
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.
         
      • getUninterpretedOption

        public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.
         
      • clearUninterpretedOption

        public DescriptorProtos.EnumOptions.Builder clearUninterpretedOption()
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.
         
      • removeUninterpretedOption

        public DescriptorProtos.EnumOptions.Builder removeUninterpretedOption(int index)
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.
         
      • getUninterpretedOptionBuilder

        public DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder(int index)
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.
         
      • getUninterpretedOptionOrBuilder

        public DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder(int index)
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.
         
      • getUninterpretedOptionOrBuilderList

        public List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList()
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.
         
      • addUninterpretedOptionBuilder

        public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder()
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.
         
      • addUninterpretedOptionBuilder

        public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder(int index)
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.
         
      • getUninterpretedOptionBuilderList

        public List<DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList()
        repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
         The parser stores options it doesn't recognize here. See above.