Class RandomScoreFunctionSeed.Builder

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

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

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

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

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

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

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

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

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

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

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

      public RandomScoreFunctionSeed.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<RandomScoreFunctionSeed.Builder>
      Throws:
      IOException
    • getRandomScoreFunctionSeedCase

      public RandomScoreFunctionSeed.RandomScoreFunctionSeedCase getRandomScoreFunctionSeedCase()
      Specified by:
      getRandomScoreFunctionSeedCase in interface RandomScoreFunctionSeedOrBuilder
    • clearRandomScoreFunctionSeed

      public RandomScoreFunctionSeed.Builder clearRandomScoreFunctionSeed()
    • hasInt32

      public boolean hasInt32()
      int32 int32 = 1 [json_name = "int32"];
      Specified by:
      hasInt32 in interface RandomScoreFunctionSeedOrBuilder
      Returns:
      Whether the int32 field is set.
    • getInt32

      public int getInt32()
      int32 int32 = 1 [json_name = "int32"];
      Specified by:
      getInt32 in interface RandomScoreFunctionSeedOrBuilder
      Returns:
      The int32.
    • setInt32

      public RandomScoreFunctionSeed.Builder setInt32(int value)
      int32 int32 = 1 [json_name = "int32"];
      Parameters:
      value - The int32 to set.
      Returns:
      This builder for chaining.
    • clearInt32

      public RandomScoreFunctionSeed.Builder clearInt32()
      int32 int32 = 1 [json_name = "int32"];
      Returns:
      This builder for chaining.
    • hasInt64

      public boolean hasInt64()
      int64 int64 = 2 [json_name = "int64"];
      Specified by:
      hasInt64 in interface RandomScoreFunctionSeedOrBuilder
      Returns:
      Whether the int64 field is set.
    • getInt64

      public long getInt64()
      int64 int64 = 2 [json_name = "int64"];
      Specified by:
      getInt64 in interface RandomScoreFunctionSeedOrBuilder
      Returns:
      The int64.
    • setInt64

      public RandomScoreFunctionSeed.Builder setInt64(long value)
      int64 int64 = 2 [json_name = "int64"];
      Parameters:
      value - The int64 to set.
      Returns:
      This builder for chaining.
    • clearInt64

      public RandomScoreFunctionSeed.Builder clearInt64()
      int64 int64 = 2 [json_name = "int64"];
      Returns:
      This builder for chaining.
    • hasString

      public boolean hasString()
      string string = 3 [json_name = "string"];
      Specified by:
      hasString in interface RandomScoreFunctionSeedOrBuilder
      Returns:
      Whether the string field is set.
    • getString

      public String getString()
      string string = 3 [json_name = "string"];
      Specified by:
      getString in interface RandomScoreFunctionSeedOrBuilder
      Returns:
      The string.
    • getStringBytes

      public com.google.protobuf.ByteString getStringBytes()
      string string = 3 [json_name = "string"];
      Specified by:
      getStringBytes in interface RandomScoreFunctionSeedOrBuilder
      Returns:
      The bytes for string.
    • setString

      public RandomScoreFunctionSeed.Builder setString(String value)
      string string = 3 [json_name = "string"];
      Parameters:
      value - The string to set.
      Returns:
      This builder for chaining.
    • clearString

      public RandomScoreFunctionSeed.Builder clearString()
      string string = 3 [json_name = "string"];
      Returns:
      This builder for chaining.
    • setStringBytes

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

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

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