Class TermsLookup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TermsLookup.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<TermsLookup.Builder>
org.opensearch.protobufs.TermsLookup.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, TermsLookupOrBuilder
Enclosing class:
TermsLookup

public static final class TermsLookup.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TermsLookup.Builder> implements TermsLookupOrBuilder
Protobuf type org.opensearch.protobufs.TermsLookup
  • 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<TermsLookup.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public TermsLookup.Builder mergeFrom(TermsLookup other)
    • isInitialized

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

      public TermsLookup.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<TermsLookup.Builder>
      Throws:
      IOException
    • getIndex

      public String getIndex()
      string index = 1 [json_name = "index"];
      Specified by:
      getIndex in interface TermsLookupOrBuilder
      Returns:
      The index.
    • getIndexBytes

      public com.google.protobuf.ByteString getIndexBytes()
      string index = 1 [json_name = "index"];
      Specified by:
      getIndexBytes in interface TermsLookupOrBuilder
      Returns:
      The bytes for index.
    • setIndex

      public TermsLookup.Builder setIndex(String value)
      string index = 1 [json_name = "index"];
      Parameters:
      value - The index to set.
      Returns:
      This builder for chaining.
    • clearIndex

      public TermsLookup.Builder clearIndex()
      string index = 1 [json_name = "index"];
      Returns:
      This builder for chaining.
    • setIndexBytes

      public TermsLookup.Builder setIndexBytes(com.google.protobuf.ByteString value)
      string index = 1 [json_name = "index"];
      Parameters:
      value - The bytes for index to set.
      Returns:
      This builder for chaining.
    • getId

      public String getId()
      string id = 2 [json_name = "id"];
      Specified by:
      getId in interface TermsLookupOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      string id = 2 [json_name = "id"];
      Specified by:
      getIdBytes in interface TermsLookupOrBuilder
      Returns:
      The bytes for id.
    • setId

      public TermsLookup.Builder setId(String value)
      string id = 2 [json_name = "id"];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public TermsLookup.Builder clearId()
      string id = 2 [json_name = "id"];
      Returns:
      This builder for chaining.
    • setIdBytes

      public TermsLookup.Builder setIdBytes(com.google.protobuf.ByteString value)
      string id = 2 [json_name = "id"];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getPath

      public String getPath()
      string path = 3 [json_name = "path"];
      Specified by:
      getPath in interface TermsLookupOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
      string path = 3 [json_name = "path"];
      Specified by:
      getPathBytes in interface TermsLookupOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public TermsLookup.Builder setPath(String value)
      string path = 3 [json_name = "path"];
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public TermsLookup.Builder clearPath()
      string path = 3 [json_name = "path"];
      Returns:
      This builder for chaining.
    • setPathBytes

      public TermsLookup.Builder setPathBytes(com.google.protobuf.ByteString value)
      string path = 3 [json_name = "path"];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • hasRouting

      public boolean hasRouting()
      optional string routing = 4 [json_name = "routing"];
      Specified by:
      hasRouting in interface TermsLookupOrBuilder
      Returns:
      Whether the routing field is set.
    • getRouting

      public String getRouting()
      optional string routing = 4 [json_name = "routing"];
      Specified by:
      getRouting in interface TermsLookupOrBuilder
      Returns:
      The routing.
    • getRoutingBytes

      public com.google.protobuf.ByteString getRoutingBytes()
      optional string routing = 4 [json_name = "routing"];
      Specified by:
      getRoutingBytes in interface TermsLookupOrBuilder
      Returns:
      The bytes for routing.
    • setRouting

      public TermsLookup.Builder setRouting(String value)
      optional string routing = 4 [json_name = "routing"];
      Parameters:
      value - The routing to set.
      Returns:
      This builder for chaining.
    • clearRouting

      public TermsLookup.Builder clearRouting()
      optional string routing = 4 [json_name = "routing"];
      Returns:
      This builder for chaining.
    • setRoutingBytes

      public TermsLookup.Builder setRoutingBytes(com.google.protobuf.ByteString value)
      optional string routing = 4 [json_name = "routing"];
      Parameters:
      value - The bytes for routing to set.
      Returns:
      This builder for chaining.
    • hasStore

      public boolean hasStore()
      optional bool store = 5 [json_name = "store"];
      Specified by:
      hasStore in interface TermsLookupOrBuilder
      Returns:
      Whether the store field is set.
    • getStore

      public boolean getStore()
      optional bool store = 5 [json_name = "store"];
      Specified by:
      getStore in interface TermsLookupOrBuilder
      Returns:
      The store.
    • setStore

      public TermsLookup.Builder setStore(boolean value)
      optional bool store = 5 [json_name = "store"];
      Parameters:
      value - The store to set.
      Returns:
      This builder for chaining.
    • clearStore

      public TermsLookup.Builder clearStore()
      optional bool store = 5 [json_name = "store"];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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