Class MLServerProto.MatchRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MLServerProto.MatchRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.MatchRequest.Builder>
org.languagetool.rules.ml.MLServerProto.MatchRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, MLServerProto.MatchRequestOrBuilder
Enclosing class:
MLServerProto.MatchRequest

public static final class MLServerProto.MatchRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.MatchRequest.Builder> implements MLServerProto.MatchRequestOrBuilder
Protobuf type lt_ml_server.MatchRequest
  • Field Details

    • bitField0_

      private int bitField0_
    • sentences_

      private com.google.protobuf.LazyStringArrayList sentences_
    • inputLogging_

      private boolean inputLogging_
    • textSessionID_

      private com.google.protobuf.Internal.LongList textSessionID_
  • 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<MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MLServerProto.MatchRequest 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(MLServerProto.MatchRequest result)
    • 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<MLServerProto.MatchRequest.Builder>
    • setField

      public MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.Builder>
    • clearField

      public MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.Builder>
    • clearOneof

      public MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.Builder>
    • setRepeatedField

      public MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.Builder>
    • addRepeatedField

      public MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.Builder>
    • mergeFrom

      public MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.Builder>
    • mergeFrom

      public MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.Builder>
      Throws:
      IOException
    • ensureSentencesIsMutable

      private void ensureSentencesIsMutable()
    • getSentencesList

      public com.google.protobuf.ProtocolStringList getSentencesList()
       input text to be analyzed
       
      repeated string sentences = 1;
      Specified by:
      getSentencesList in interface MLServerProto.MatchRequestOrBuilder
      Returns:
      A list containing the sentences.
    • getSentencesCount

      public int getSentencesCount()
       input text to be analyzed
       
      repeated string sentences = 1;
      Specified by:
      getSentencesCount in interface MLServerProto.MatchRequestOrBuilder
      Returns:
      The count of sentences.
    • getSentences

      public String getSentences(int index)
       input text to be analyzed
       
      repeated string sentences = 1;
      Specified by:
      getSentences in interface MLServerProto.MatchRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sentences at the given index.
    • getSentencesBytes

      public com.google.protobuf.ByteString getSentencesBytes(int index)
       input text to be analyzed
       
      repeated string sentences = 1;
      Specified by:
      getSentencesBytes in interface MLServerProto.MatchRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sentences at the given index.
    • setSentences

      public MLServerProto.MatchRequest.Builder setSentences(int index, String value)
       input text to be analyzed
       
      repeated string sentences = 1;
      Parameters:
      index - The index to set the value at.
      value - The sentences to set.
      Returns:
      This builder for chaining.
    • addSentences

      public MLServerProto.MatchRequest.Builder addSentences(String value)
       input text to be analyzed
       
      repeated string sentences = 1;
      Parameters:
      value - The sentences to add.
      Returns:
      This builder for chaining.
    • addAllSentences

      public MLServerProto.MatchRequest.Builder addAllSentences(Iterable<String> values)
       input text to be analyzed
       
      repeated string sentences = 1;
      Parameters:
      values - The sentences to add.
      Returns:
      This builder for chaining.
    • clearSentences

      public MLServerProto.MatchRequest.Builder clearSentences()
       input text to be analyzed
       
      repeated string sentences = 1;
      Returns:
      This builder for chaining.
    • addSentencesBytes

      public MLServerProto.MatchRequest.Builder addSentencesBytes(com.google.protobuf.ByteString value)
       input text to be analyzed
       
      repeated string sentences = 1;
      Parameters:
      value - The bytes of the sentences to add.
      Returns:
      This builder for chaining.
    • getInputLogging

      public boolean getInputLogging()
       allow logging of input on error
       
      bool inputLogging = 2;
      Specified by:
      getInputLogging in interface MLServerProto.MatchRequestOrBuilder
      Returns:
      The inputLogging.
    • setInputLogging

      public MLServerProto.MatchRequest.Builder setInputLogging(boolean value)
       allow logging of input on error
       
      bool inputLogging = 2;
      Parameters:
      value - The inputLogging to set.
      Returns:
      This builder for chaining.
    • clearInputLogging

      public MLServerProto.MatchRequest.Builder clearInputLogging()
       allow logging of input on error
       
      bool inputLogging = 2;
      Returns:
      This builder for chaining.
    • ensureTextSessionIDIsMutable

      private void ensureTextSessionIDIsMutable()
    • getTextSessionIDList

      public List<Long> getTextSessionIDList()
       session ID, for partial rollout & A/B tests
       
      repeated int64 textSessionID = 3;
      Specified by:
      getTextSessionIDList in interface MLServerProto.MatchRequestOrBuilder
      Returns:
      A list containing the textSessionID.
    • getTextSessionIDCount

      public int getTextSessionIDCount()
       session ID, for partial rollout & A/B tests
       
      repeated int64 textSessionID = 3;
      Specified by:
      getTextSessionIDCount in interface MLServerProto.MatchRequestOrBuilder
      Returns:
      The count of textSessionID.
    • getTextSessionID

      public long getTextSessionID(int index)
       session ID, for partial rollout & A/B tests
       
      repeated int64 textSessionID = 3;
      Specified by:
      getTextSessionID in interface MLServerProto.MatchRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The textSessionID at the given index.
    • setTextSessionID

      public MLServerProto.MatchRequest.Builder setTextSessionID(int index, long value)
       session ID, for partial rollout & A/B tests
       
      repeated int64 textSessionID = 3;
      Parameters:
      index - The index to set the value at.
      value - The textSessionID to set.
      Returns:
      This builder for chaining.
    • addTextSessionID

      public MLServerProto.MatchRequest.Builder addTextSessionID(long value)
       session ID, for partial rollout & A/B tests
       
      repeated int64 textSessionID = 3;
      Parameters:
      value - The textSessionID to add.
      Returns:
      This builder for chaining.
    • addAllTextSessionID

      public MLServerProto.MatchRequest.Builder addAllTextSessionID(Iterable<? extends Long> values)
       session ID, for partial rollout & A/B tests
       
      repeated int64 textSessionID = 3;
      Parameters:
      values - The textSessionID to add.
      Returns:
      This builder for chaining.
    • clearTextSessionID

      public MLServerProto.MatchRequest.Builder clearTextSessionID()
       session ID, for partial rollout & A/B tests
       
      repeated int64 textSessionID = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.Builder>
    • mergeUnknownFields

      public final MLServerProto.MatchRequest.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<MLServerProto.MatchRequest.Builder>