Class SymbolsProtos.VarSymbol.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
org.sonar.python.types.protobuf.SymbolsProtos.VarSymbol.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, SymbolsProtos.VarSymbolOrBuilder
Enclosing class:
SymbolsProtos.VarSymbol

public static final class SymbolsProtos.VarSymbol.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder> implements SymbolsProtos.VarSymbolOrBuilder
Protobuf type protoblog.VarSymbol
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.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.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.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.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
    • getDefaultInstanceForType

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

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

      public SymbolsProtos.VarSymbol buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
    • setField

      public SymbolsProtos.VarSymbol.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
    • clearField

      public SymbolsProtos.VarSymbol.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
    • clearOneof

      public SymbolsProtos.VarSymbol.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
    • setRepeatedField

      public SymbolsProtos.VarSymbol.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
    • addRepeatedField

      public SymbolsProtos.VarSymbol.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
    • mergeFrom

      public SymbolsProtos.VarSymbol.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<SymbolsProtos.VarSymbol.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
    • mergeFrom

      public SymbolsProtos.VarSymbol.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<SymbolsProtos.VarSymbol.Builder>
      Throws:
      IOException
    • getName

      public String getName()
      string name = 1;
      Specified by:
      getName in interface SymbolsProtos.VarSymbolOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      string name = 1;
      Specified by:
      getNameBytes in interface SymbolsProtos.VarSymbolOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SymbolsProtos.VarSymbol.Builder setName(String value)
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SymbolsProtos.VarSymbol.Builder clearName()
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public SymbolsProtos.VarSymbol.Builder setNameBytes(com.google.protobuf.ByteString value)
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getFullyQualifiedName

      public String getFullyQualifiedName()
      string fully_qualified_name = 2;
      Specified by:
      getFullyQualifiedName in interface SymbolsProtos.VarSymbolOrBuilder
      Returns:
      The fullyQualifiedName.
    • getFullyQualifiedNameBytes

      public com.google.protobuf.ByteString getFullyQualifiedNameBytes()
      string fully_qualified_name = 2;
      Specified by:
      getFullyQualifiedNameBytes in interface SymbolsProtos.VarSymbolOrBuilder
      Returns:
      The bytes for fullyQualifiedName.
    • setFullyQualifiedName

      public SymbolsProtos.VarSymbol.Builder setFullyQualifiedName(String value)
      string fully_qualified_name = 2;
      Parameters:
      value - The fullyQualifiedName to set.
      Returns:
      This builder for chaining.
    • clearFullyQualifiedName

      public SymbolsProtos.VarSymbol.Builder clearFullyQualifiedName()
      string fully_qualified_name = 2;
      Returns:
      This builder for chaining.
    • setFullyQualifiedNameBytes

      public SymbolsProtos.VarSymbol.Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value)
      string fully_qualified_name = 2;
      Parameters:
      value - The bytes for fullyQualifiedName to set.
      Returns:
      This builder for chaining.
    • hasTypeAnnotation

      public boolean hasTypeAnnotation()
      optional .protoblog.Type type_annotation = 3;
      Specified by:
      hasTypeAnnotation in interface SymbolsProtos.VarSymbolOrBuilder
      Returns:
      Whether the typeAnnotation field is set.
    • getTypeAnnotation

      public SymbolsProtos.Type getTypeAnnotation()
      optional .protoblog.Type type_annotation = 3;
      Specified by:
      getTypeAnnotation in interface SymbolsProtos.VarSymbolOrBuilder
      Returns:
      The typeAnnotation.
    • setTypeAnnotation

      public SymbolsProtos.VarSymbol.Builder setTypeAnnotation(SymbolsProtos.Type value)
      optional .protoblog.Type type_annotation = 3;
    • setTypeAnnotation

      public SymbolsProtos.VarSymbol.Builder setTypeAnnotation(SymbolsProtos.Type.Builder builderForValue)
      optional .protoblog.Type type_annotation = 3;
    • mergeTypeAnnotation

      public SymbolsProtos.VarSymbol.Builder mergeTypeAnnotation(SymbolsProtos.Type value)
      optional .protoblog.Type type_annotation = 3;
    • clearTypeAnnotation

      public SymbolsProtos.VarSymbol.Builder clearTypeAnnotation()
      optional .protoblog.Type type_annotation = 3;
    • getTypeAnnotationBuilder

      public SymbolsProtos.Type.Builder getTypeAnnotationBuilder()
      optional .protoblog.Type type_annotation = 3;
    • getTypeAnnotationOrBuilder

      public SymbolsProtos.TypeOrBuilder getTypeAnnotationOrBuilder()
      optional .protoblog.Type type_annotation = 3;
      Specified by:
      getTypeAnnotationOrBuilder in interface SymbolsProtos.VarSymbolOrBuilder
    • getIsImportedModule

      public boolean getIsImportedModule()
      bool is_imported_module = 4;
      Specified by:
      getIsImportedModule in interface SymbolsProtos.VarSymbolOrBuilder
      Returns:
      The isImportedModule.
    • setIsImportedModule

      public SymbolsProtos.VarSymbol.Builder setIsImportedModule(boolean value)
      bool is_imported_module = 4;
      Parameters:
      value - The isImportedModule to set.
      Returns:
      This builder for chaining.
    • clearIsImportedModule

      public SymbolsProtos.VarSymbol.Builder clearIsImportedModule()
      bool is_imported_module = 4;
      Returns:
      This builder for chaining.
    • getValidForList

      public com.google.protobuf.ProtocolStringList getValidForList()
      repeated string valid_for = 5;
      Specified by:
      getValidForList in interface SymbolsProtos.VarSymbolOrBuilder
      Returns:
      A list containing the validFor.
    • getValidForCount

      public int getValidForCount()
      repeated string valid_for = 5;
      Specified by:
      getValidForCount in interface SymbolsProtos.VarSymbolOrBuilder
      Returns:
      The count of validFor.
    • getValidFor

      public String getValidFor(int index)
      repeated string valid_for = 5;
      Specified by:
      getValidFor in interface SymbolsProtos.VarSymbolOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The validFor at the given index.
    • getValidForBytes

      public com.google.protobuf.ByteString getValidForBytes(int index)
      repeated string valid_for = 5;
      Specified by:
      getValidForBytes in interface SymbolsProtos.VarSymbolOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the validFor at the given index.
    • setValidFor

      public SymbolsProtos.VarSymbol.Builder setValidFor(int index, String value)
      repeated string valid_for = 5;
      Parameters:
      index - The index to set the value at.
      value - The validFor to set.
      Returns:
      This builder for chaining.
    • addValidFor

      public SymbolsProtos.VarSymbol.Builder addValidFor(String value)
      repeated string valid_for = 5;
      Parameters:
      value - The validFor to add.
      Returns:
      This builder for chaining.
    • addAllValidFor

      public SymbolsProtos.VarSymbol.Builder addAllValidFor(Iterable<String> values)
      repeated string valid_for = 5;
      Parameters:
      values - The validFor to add.
      Returns:
      This builder for chaining.
    • clearValidFor

      public SymbolsProtos.VarSymbol.Builder clearValidFor()
      repeated string valid_for = 5;
      Returns:
      This builder for chaining.
    • addValidForBytes

      public SymbolsProtos.VarSymbol.Builder addValidForBytes(com.google.protobuf.ByteString value)
      repeated string valid_for = 5;
      Parameters:
      value - The bytes of the validFor to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final SymbolsProtos.VarSymbol.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>
    • mergeUnknownFields

      public final SymbolsProtos.VarSymbol.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SymbolsProtos.VarSymbol.Builder>