Class BertLmProto.Mask.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BertLmProto.Mask.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, BertLmProto.MaskOrBuilder
Enclosing class:
BertLmProto.Mask

public static final class BertLmProto.Mask.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder> implements BertLmProto.MaskOrBuilder
Protobuf type bert.Mask
  • Field Details

    • bitField0_

      private int bitField0_
    • start_

      private int start_
    • end_

      private int end_
    • candidates_

      private com.google.protobuf.LazyStringArrayList candidates_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
  • 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<BertLmProto.Mask.Builder>
    • clear

      public BertLmProto.Mask.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<BertLmProto.Mask.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<BertLmProto.Mask.Builder>
    • getDefaultInstanceForType

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

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

      public BertLmProto.Mask buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartial0

      private void buildPartial0(BertLmProto.Mask result)
    • clone

      public BertLmProto.Mask.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<BertLmProto.Mask.Builder>
    • setField

      public BertLmProto.Mask.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<BertLmProto.Mask.Builder>
    • clearField

      public BertLmProto.Mask.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<BertLmProto.Mask.Builder>
    • clearOneof

      public BertLmProto.Mask.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<BertLmProto.Mask.Builder>
    • setRepeatedField

      public BertLmProto.Mask.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<BertLmProto.Mask.Builder>
    • addRepeatedField

      public BertLmProto.Mask.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<BertLmProto.Mask.Builder>
    • mergeFrom

      public BertLmProto.Mask.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<BertLmProto.Mask.Builder>
    • mergeFrom

      public BertLmProto.Mask.Builder mergeFrom(BertLmProto.Mask other)
    • isInitialized

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

      public BertLmProto.Mask.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<BertLmProto.Mask.Builder>
      Throws:
      IOException
    • getStart

      public int getStart()
      uint32 start = 1;
      Specified by:
      getStart in interface BertLmProto.MaskOrBuilder
      Returns:
      The start.
    • setStart

      public BertLmProto.Mask.Builder setStart(int value)
      uint32 start = 1;
      Parameters:
      value - The start to set.
      Returns:
      This builder for chaining.
    • clearStart

      public BertLmProto.Mask.Builder clearStart()
      uint32 start = 1;
      Returns:
      This builder for chaining.
    • getEnd

      public int getEnd()
      uint32 end = 2;
      Specified by:
      getEnd in interface BertLmProto.MaskOrBuilder
      Returns:
      The end.
    • setEnd

      public BertLmProto.Mask.Builder setEnd(int value)
      uint32 end = 2;
      Parameters:
      value - The end to set.
      Returns:
      This builder for chaining.
    • clearEnd

      public BertLmProto.Mask.Builder clearEnd()
      uint32 end = 2;
      Returns:
      This builder for chaining.
    • ensureCandidatesIsMutable

      private void ensureCandidatesIsMutable()
    • getCandidatesList

      public com.google.protobuf.ProtocolStringList getCandidatesList()
      repeated string candidates = 3;
      Specified by:
      getCandidatesList in interface BertLmProto.MaskOrBuilder
      Returns:
      A list containing the candidates.
    • getCandidatesCount

      public int getCandidatesCount()
      repeated string candidates = 3;
      Specified by:
      getCandidatesCount in interface BertLmProto.MaskOrBuilder
      Returns:
      The count of candidates.
    • getCandidates

      public String getCandidates(int index)
      repeated string candidates = 3;
      Specified by:
      getCandidates in interface BertLmProto.MaskOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The candidates at the given index.
    • getCandidatesBytes

      public com.google.protobuf.ByteString getCandidatesBytes(int index)
      repeated string candidates = 3;
      Specified by:
      getCandidatesBytes in interface BertLmProto.MaskOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the candidates at the given index.
    • setCandidates

      public BertLmProto.Mask.Builder setCandidates(int index, String value)
      repeated string candidates = 3;
      Parameters:
      index - The index to set the value at.
      value - The candidates to set.
      Returns:
      This builder for chaining.
    • addCandidates

      public BertLmProto.Mask.Builder addCandidates(String value)
      repeated string candidates = 3;
      Parameters:
      value - The candidates to add.
      Returns:
      This builder for chaining.
    • addAllCandidates

      public BertLmProto.Mask.Builder addAllCandidates(Iterable<String> values)
      repeated string candidates = 3;
      Parameters:
      values - The candidates to add.
      Returns:
      This builder for chaining.
    • clearCandidates

      public BertLmProto.Mask.Builder clearCandidates()
      repeated string candidates = 3;
      Returns:
      This builder for chaining.
    • addCandidatesBytes

      public BertLmProto.Mask.Builder addCandidatesBytes(com.google.protobuf.ByteString value)
      repeated string candidates = 3;
      Parameters:
      value - The bytes of the candidates to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final BertLmProto.Mask.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<BertLmProto.Mask.Builder>
    • mergeUnknownFields

      public final BertLmProto.Mask.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<BertLmProto.Mask.Builder>