Class FunctionSchema.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<FunctionSchema.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
io.milvus.grpc.FunctionSchema.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FunctionSchemaOrBuilder, Cloneable
Enclosing class:
FunctionSchema

public static final class FunctionSchema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder> implements FunctionSchemaOrBuilder
Protobuf type milvus.proto.schema.FunctionSchema
  • 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<FunctionSchema.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public FunctionSchema.Builder mergeFrom(FunctionSchema other)
    • isInitialized

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

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

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

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

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

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

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

      public long getId()
      int64 id = 2;
      Specified by:
      getId in interface FunctionSchemaOrBuilder
      Returns:
      The id.
    • setId

      public FunctionSchema.Builder setId(long value)
      int64 id = 2;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public FunctionSchema.Builder clearId()
      int64 id = 2;
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
      string description = 3;
      Specified by:
      getDescription in interface FunctionSchemaOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      string description = 3;
      Specified by:
      getDescriptionBytes in interface FunctionSchemaOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public FunctionSchema.Builder setDescription(String value)
      string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public FunctionSchema.Builder clearDescription()
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public FunctionSchema.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
      string description = 3;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
      .milvus.proto.schema.FunctionType type = 4;
      Specified by:
      getTypeValue in interface FunctionSchemaOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public FunctionSchema.Builder setTypeValue(int value)
      .milvus.proto.schema.FunctionType type = 4;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public FunctionType getType()
      .milvus.proto.schema.FunctionType type = 4;
      Specified by:
      getType in interface FunctionSchemaOrBuilder
      Returns:
      The type.
    • setType

      public FunctionSchema.Builder setType(FunctionType value)
      .milvus.proto.schema.FunctionType type = 4;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public FunctionSchema.Builder clearType()
      .milvus.proto.schema.FunctionType type = 4;
      Returns:
      This builder for chaining.
    • getInputFieldNamesList

      public com.google.protobuf.ProtocolStringList getInputFieldNamesList()
      repeated string input_field_names = 5;
      Specified by:
      getInputFieldNamesList in interface FunctionSchemaOrBuilder
      Returns:
      A list containing the inputFieldNames.
    • getInputFieldNamesCount

      public int getInputFieldNamesCount()
      repeated string input_field_names = 5;
      Specified by:
      getInputFieldNamesCount in interface FunctionSchemaOrBuilder
      Returns:
      The count of inputFieldNames.
    • getInputFieldNames

      public String getInputFieldNames(int index)
      repeated string input_field_names = 5;
      Specified by:
      getInputFieldNames in interface FunctionSchemaOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The inputFieldNames at the given index.
    • getInputFieldNamesBytes

      public com.google.protobuf.ByteString getInputFieldNamesBytes(int index)
      repeated string input_field_names = 5;
      Specified by:
      getInputFieldNamesBytes in interface FunctionSchemaOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the inputFieldNames at the given index.
    • setInputFieldNames

      public FunctionSchema.Builder setInputFieldNames(int index, String value)
      repeated string input_field_names = 5;
      Parameters:
      index - The index to set the value at.
      value - The inputFieldNames to set.
      Returns:
      This builder for chaining.
    • addInputFieldNames

      public FunctionSchema.Builder addInputFieldNames(String value)
      repeated string input_field_names = 5;
      Parameters:
      value - The inputFieldNames to add.
      Returns:
      This builder for chaining.
    • addAllInputFieldNames

      public FunctionSchema.Builder addAllInputFieldNames(Iterable<String> values)
      repeated string input_field_names = 5;
      Parameters:
      values - The inputFieldNames to add.
      Returns:
      This builder for chaining.
    • clearInputFieldNames

      public FunctionSchema.Builder clearInputFieldNames()
      repeated string input_field_names = 5;
      Returns:
      This builder for chaining.
    • addInputFieldNamesBytes

      public FunctionSchema.Builder addInputFieldNamesBytes(com.google.protobuf.ByteString value)
      repeated string input_field_names = 5;
      Parameters:
      value - The bytes of the inputFieldNames to add.
      Returns:
      This builder for chaining.
    • getInputFieldIdsList

      public List<Long> getInputFieldIdsList()
      repeated int64 input_field_ids = 6;
      Specified by:
      getInputFieldIdsList in interface FunctionSchemaOrBuilder
      Returns:
      A list containing the inputFieldIds.
    • getInputFieldIdsCount

      public int getInputFieldIdsCount()
      repeated int64 input_field_ids = 6;
      Specified by:
      getInputFieldIdsCount in interface FunctionSchemaOrBuilder
      Returns:
      The count of inputFieldIds.
    • getInputFieldIds

      public long getInputFieldIds(int index)
      repeated int64 input_field_ids = 6;
      Specified by:
      getInputFieldIds in interface FunctionSchemaOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The inputFieldIds at the given index.
    • setInputFieldIds

      public FunctionSchema.Builder setInputFieldIds(int index, long value)
      repeated int64 input_field_ids = 6;
      Parameters:
      index - The index to set the value at.
      value - The inputFieldIds to set.
      Returns:
      This builder for chaining.
    • addInputFieldIds

      public FunctionSchema.Builder addInputFieldIds(long value)
      repeated int64 input_field_ids = 6;
      Parameters:
      value - The inputFieldIds to add.
      Returns:
      This builder for chaining.
    • addAllInputFieldIds

      public FunctionSchema.Builder addAllInputFieldIds(Iterable<? extends Long> values)
      repeated int64 input_field_ids = 6;
      Parameters:
      values - The inputFieldIds to add.
      Returns:
      This builder for chaining.
    • clearInputFieldIds

      public FunctionSchema.Builder clearInputFieldIds()
      repeated int64 input_field_ids = 6;
      Returns:
      This builder for chaining.
    • getOutputFieldNamesList

      public com.google.protobuf.ProtocolStringList getOutputFieldNamesList()
      repeated string output_field_names = 7;
      Specified by:
      getOutputFieldNamesList in interface FunctionSchemaOrBuilder
      Returns:
      A list containing the outputFieldNames.
    • getOutputFieldNamesCount

      public int getOutputFieldNamesCount()
      repeated string output_field_names = 7;
      Specified by:
      getOutputFieldNamesCount in interface FunctionSchemaOrBuilder
      Returns:
      The count of outputFieldNames.
    • getOutputFieldNames

      public String getOutputFieldNames(int index)
      repeated string output_field_names = 7;
      Specified by:
      getOutputFieldNames in interface FunctionSchemaOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The outputFieldNames at the given index.
    • getOutputFieldNamesBytes

      public com.google.protobuf.ByteString getOutputFieldNamesBytes(int index)
      repeated string output_field_names = 7;
      Specified by:
      getOutputFieldNamesBytes in interface FunctionSchemaOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the outputFieldNames at the given index.
    • setOutputFieldNames

      public FunctionSchema.Builder setOutputFieldNames(int index, String value)
      repeated string output_field_names = 7;
      Parameters:
      index - The index to set the value at.
      value - The outputFieldNames to set.
      Returns:
      This builder for chaining.
    • addOutputFieldNames

      public FunctionSchema.Builder addOutputFieldNames(String value)
      repeated string output_field_names = 7;
      Parameters:
      value - The outputFieldNames to add.
      Returns:
      This builder for chaining.
    • addAllOutputFieldNames

      public FunctionSchema.Builder addAllOutputFieldNames(Iterable<String> values)
      repeated string output_field_names = 7;
      Parameters:
      values - The outputFieldNames to add.
      Returns:
      This builder for chaining.
    • clearOutputFieldNames

      public FunctionSchema.Builder clearOutputFieldNames()
      repeated string output_field_names = 7;
      Returns:
      This builder for chaining.
    • addOutputFieldNamesBytes

      public FunctionSchema.Builder addOutputFieldNamesBytes(com.google.protobuf.ByteString value)
      repeated string output_field_names = 7;
      Parameters:
      value - The bytes of the outputFieldNames to add.
      Returns:
      This builder for chaining.
    • getOutputFieldIdsList

      public List<Long> getOutputFieldIdsList()
      repeated int64 output_field_ids = 8;
      Specified by:
      getOutputFieldIdsList in interface FunctionSchemaOrBuilder
      Returns:
      A list containing the outputFieldIds.
    • getOutputFieldIdsCount

      public int getOutputFieldIdsCount()
      repeated int64 output_field_ids = 8;
      Specified by:
      getOutputFieldIdsCount in interface FunctionSchemaOrBuilder
      Returns:
      The count of outputFieldIds.
    • getOutputFieldIds

      public long getOutputFieldIds(int index)
      repeated int64 output_field_ids = 8;
      Specified by:
      getOutputFieldIds in interface FunctionSchemaOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The outputFieldIds at the given index.
    • setOutputFieldIds

      public FunctionSchema.Builder setOutputFieldIds(int index, long value)
      repeated int64 output_field_ids = 8;
      Parameters:
      index - The index to set the value at.
      value - The outputFieldIds to set.
      Returns:
      This builder for chaining.
    • addOutputFieldIds

      public FunctionSchema.Builder addOutputFieldIds(long value)
      repeated int64 output_field_ids = 8;
      Parameters:
      value - The outputFieldIds to add.
      Returns:
      This builder for chaining.
    • addAllOutputFieldIds

      public FunctionSchema.Builder addAllOutputFieldIds(Iterable<? extends Long> values)
      repeated int64 output_field_ids = 8;
      Parameters:
      values - The outputFieldIds to add.
      Returns:
      This builder for chaining.
    • clearOutputFieldIds

      public FunctionSchema.Builder clearOutputFieldIds()
      repeated int64 output_field_ids = 8;
      Returns:
      This builder for chaining.
    • getParamsList

      public List<KeyValuePair> getParamsList()
      repeated .milvus.proto.common.KeyValuePair params = 9;
      Specified by:
      getParamsList in interface FunctionSchemaOrBuilder
    • getParamsCount

      public int getParamsCount()
      repeated .milvus.proto.common.KeyValuePair params = 9;
      Specified by:
      getParamsCount in interface FunctionSchemaOrBuilder
    • getParams

      public KeyValuePair getParams(int index)
      repeated .milvus.proto.common.KeyValuePair params = 9;
      Specified by:
      getParams in interface FunctionSchemaOrBuilder
    • setParams

      public FunctionSchema.Builder setParams(int index, KeyValuePair value)
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • setParams

      public FunctionSchema.Builder setParams(int index, KeyValuePair.Builder builderForValue)
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • addParams

      public FunctionSchema.Builder addParams(KeyValuePair value)
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • addParams

      public FunctionSchema.Builder addParams(int index, KeyValuePair value)
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • addParams

      public FunctionSchema.Builder addParams(KeyValuePair.Builder builderForValue)
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • addParams

      public FunctionSchema.Builder addParams(int index, KeyValuePair.Builder builderForValue)
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • addAllParams

      public FunctionSchema.Builder addAllParams(Iterable<? extends KeyValuePair> values)
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • clearParams

      public FunctionSchema.Builder clearParams()
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • removeParams

      public FunctionSchema.Builder removeParams(int index)
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • getParamsBuilder

      public KeyValuePair.Builder getParamsBuilder(int index)
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • getParamsOrBuilder

      public KeyValuePairOrBuilder getParamsOrBuilder(int index)
      repeated .milvus.proto.common.KeyValuePair params = 9;
      Specified by:
      getParamsOrBuilder in interface FunctionSchemaOrBuilder
    • getParamsOrBuilderList

      public List<? extends KeyValuePairOrBuilder> getParamsOrBuilderList()
      repeated .milvus.proto.common.KeyValuePair params = 9;
      Specified by:
      getParamsOrBuilderList in interface FunctionSchemaOrBuilder
    • addParamsBuilder

      public KeyValuePair.Builder addParamsBuilder()
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • addParamsBuilder

      public KeyValuePair.Builder addParamsBuilder(int index)
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • getParamsBuilderList

      public List<KeyValuePair.Builder> getParamsBuilderList()
      repeated .milvus.proto.common.KeyValuePair params = 9;
    • setUnknownFields

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

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