Class TypeUnion.UnionType.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TypeUnion.UnionType.Builder>
com.apivolve.xolir.TypeUnion.UnionType.Builder
All Implemented Interfaces:
TypeUnion.UnionTypeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TypeUnion.UnionType

public static final class TypeUnion.UnionType.Builder extends com.google.protobuf.GeneratedMessage.Builder<TypeUnion.UnionType.Builder> implements TypeUnion.UnionTypeOrBuilder
Protobuf type xolir.UnionType
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TypeUnion.UnionType.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TypeUnion.UnionType.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TypeUnion.UnionType.Builder>
    • getDefaultInstanceForType

      public TypeUnion.UnionType getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TypeUnion.UnionType build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TypeUnion.UnionType buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TypeUnion.UnionType.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TypeUnion.UnionType.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TypeUnion.UnionType.Builder>
    • mergeFrom

      public TypeUnion.UnionType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TypeUnion.UnionType.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       if is_anonymous then name is auto-generated
       
      string name = 1;
      Specified by:
      getName in interface TypeUnion.UnionTypeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       if is_anonymous then name is auto-generated
       
      string name = 1;
      Specified by:
      getNameBytes in interface TypeUnion.UnionTypeOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TypeUnion.UnionType.Builder setName(String value)
       if is_anonymous then name is auto-generated
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TypeUnion.UnionType.Builder clearName()
       if is_anonymous then name is auto-generated
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public TypeUnion.UnionType.Builder setNameBytes(com.google.protobuf.ByteString value)
       if is_anonymous then name is auto-generated
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getIsAnonymous

      public boolean getIsAnonymous()
      bool is_anonymous = 3;
      Specified by:
      getIsAnonymous in interface TypeUnion.UnionTypeOrBuilder
      Returns:
      The isAnonymous.
    • setIsAnonymous

      public TypeUnion.UnionType.Builder setIsAnonymous(boolean value)
      bool is_anonymous = 3;
      Parameters:
      value - The isAnonymous to set.
      Returns:
      This builder for chaining.
    • clearIsAnonymous

      public TypeUnion.UnionType.Builder clearIsAnonymous()
      bool is_anonymous = 3;
      Returns:
      This builder for chaining.
    • getOptionTypesList

      public List<Refs.TypeRef> getOptionTypesList()
      repeated .xolir.TypeRef option_types = 2;
      Specified by:
      getOptionTypesList in interface TypeUnion.UnionTypeOrBuilder
    • getOptionTypesCount

      public int getOptionTypesCount()
      repeated .xolir.TypeRef option_types = 2;
      Specified by:
      getOptionTypesCount in interface TypeUnion.UnionTypeOrBuilder
    • getOptionTypes

      public Refs.TypeRef getOptionTypes(int index)
      repeated .xolir.TypeRef option_types = 2;
      Specified by:
      getOptionTypes in interface TypeUnion.UnionTypeOrBuilder
    • setOptionTypes

      public TypeUnion.UnionType.Builder setOptionTypes(int index, Refs.TypeRef value)
      repeated .xolir.TypeRef option_types = 2;
    • setOptionTypes

      public TypeUnion.UnionType.Builder setOptionTypes(int index, Refs.TypeRef.Builder builderForValue)
      repeated .xolir.TypeRef option_types = 2;
    • addOptionTypes

      public TypeUnion.UnionType.Builder addOptionTypes(Refs.TypeRef value)
      repeated .xolir.TypeRef option_types = 2;
    • addOptionTypes

      public TypeUnion.UnionType.Builder addOptionTypes(int index, Refs.TypeRef value)
      repeated .xolir.TypeRef option_types = 2;
    • addOptionTypes

      public TypeUnion.UnionType.Builder addOptionTypes(Refs.TypeRef.Builder builderForValue)
      repeated .xolir.TypeRef option_types = 2;
    • addOptionTypes

      public TypeUnion.UnionType.Builder addOptionTypes(int index, Refs.TypeRef.Builder builderForValue)
      repeated .xolir.TypeRef option_types = 2;
    • addAllOptionTypes

      public TypeUnion.UnionType.Builder addAllOptionTypes(Iterable<? extends Refs.TypeRef> values)
      repeated .xolir.TypeRef option_types = 2;
    • clearOptionTypes

      public TypeUnion.UnionType.Builder clearOptionTypes()
      repeated .xolir.TypeRef option_types = 2;
    • removeOptionTypes

      public TypeUnion.UnionType.Builder removeOptionTypes(int index)
      repeated .xolir.TypeRef option_types = 2;
    • getOptionTypesBuilder

      public Refs.TypeRef.Builder getOptionTypesBuilder(int index)
      repeated .xolir.TypeRef option_types = 2;
    • getOptionTypesOrBuilder

      public Refs.TypeRefOrBuilder getOptionTypesOrBuilder(int index)
      repeated .xolir.TypeRef option_types = 2;
      Specified by:
      getOptionTypesOrBuilder in interface TypeUnion.UnionTypeOrBuilder
    • getOptionTypesOrBuilderList

      public List<? extends Refs.TypeRefOrBuilder> getOptionTypesOrBuilderList()
      repeated .xolir.TypeRef option_types = 2;
      Specified by:
      getOptionTypesOrBuilderList in interface TypeUnion.UnionTypeOrBuilder
    • addOptionTypesBuilder

      public Refs.TypeRef.Builder addOptionTypesBuilder()
      repeated .xolir.TypeRef option_types = 2;
    • addOptionTypesBuilder

      public Refs.TypeRef.Builder addOptionTypesBuilder(int index)
      repeated .xolir.TypeRef option_types = 2;
    • getOptionTypesBuilderList

      public List<Refs.TypeRef.Builder> getOptionTypesBuilderList()
      repeated .xolir.TypeRef option_types = 2;