Package io.milvus.grpc
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 Summary
Modifier and TypeMethodDescriptionaddAllInputFieldIds(Iterable<? extends Long> values) repeated int64 input_field_ids = 6;addAllInputFieldNames(Iterable<String> values) repeated string input_field_names = 5;addAllOutputFieldIds(Iterable<? extends Long> values) repeated int64 output_field_ids = 8;addAllOutputFieldNames(Iterable<String> values) repeated string output_field_names = 7;addAllParams(Iterable<? extends KeyValuePair> values) repeated .milvus.proto.common.KeyValuePair params = 9;addInputFieldIds(long value) repeated int64 input_field_ids = 6;addInputFieldNames(String value) repeated string input_field_names = 5;addInputFieldNamesBytes(com.google.protobuf.ByteString value) repeated string input_field_names = 5;addOutputFieldIds(long value) repeated int64 output_field_ids = 8;addOutputFieldNames(String value) repeated string output_field_names = 7;addOutputFieldNamesBytes(com.google.protobuf.ByteString value) repeated string output_field_names = 7;addParams(int index, KeyValuePair value) repeated .milvus.proto.common.KeyValuePair params = 9;addParams(int index, KeyValuePair.Builder builderForValue) repeated .milvus.proto.common.KeyValuePair params = 9;addParams(KeyValuePair value) repeated .milvus.proto.common.KeyValuePair params = 9;addParams(KeyValuePair.Builder builderForValue) repeated .milvus.proto.common.KeyValuePair params = 9;repeated .milvus.proto.common.KeyValuePair params = 9;addParamsBuilder(int index) repeated .milvus.proto.common.KeyValuePair params = 9;addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()string description = 3;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()int64 id = 2;repeated int64 input_field_ids = 6;repeated string input_field_names = 5;string name = 1;clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) repeated int64 output_field_ids = 8;repeated string output_field_names = 7;repeated .milvus.proto.common.KeyValuePair params = 9;.milvus.proto.schema.FunctionType type = 4;clone()string description = 3;com.google.protobuf.ByteStringstring description = 3;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()int64 id = 2;longgetInputFieldIds(int index) repeated int64 input_field_ids = 6;intrepeated int64 input_field_ids = 6;repeated int64 input_field_ids = 6;getInputFieldNames(int index) repeated string input_field_names = 5;com.google.protobuf.ByteStringgetInputFieldNamesBytes(int index) repeated string input_field_names = 5;intrepeated string input_field_names = 5;com.google.protobuf.ProtocolStringListrepeated string input_field_names = 5;getName()string name = 1;com.google.protobuf.ByteStringstring name = 1;longgetOutputFieldIds(int index) repeated int64 output_field_ids = 8;intrepeated int64 output_field_ids = 8;repeated int64 output_field_ids = 8;getOutputFieldNames(int index) repeated string output_field_names = 7;com.google.protobuf.ByteStringgetOutputFieldNamesBytes(int index) repeated string output_field_names = 7;intrepeated string output_field_names = 7;com.google.protobuf.ProtocolStringListrepeated string output_field_names = 7;getParams(int index) repeated .milvus.proto.common.KeyValuePair params = 9;getParamsBuilder(int index) repeated .milvus.proto.common.KeyValuePair params = 9;repeated .milvus.proto.common.KeyValuePair params = 9;intrepeated .milvus.proto.common.KeyValuePair params = 9;repeated .milvus.proto.common.KeyValuePair params = 9;getParamsOrBuilder(int index) repeated .milvus.proto.common.KeyValuePair params = 9;List<? extends KeyValuePairOrBuilder> repeated .milvus.proto.common.KeyValuePair params = 9;getType().milvus.proto.schema.FunctionType type = 4;int.milvus.proto.schema.FunctionType type = 4;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(FunctionSchema other) final FunctionSchema.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeParams(int index) repeated .milvus.proto.common.KeyValuePair params = 9;setDescription(String value) string description = 3;setDescriptionBytes(com.google.protobuf.ByteString value) string description = 3;setId(long value) int64 id = 2;setInputFieldIds(int index, long value) repeated int64 input_field_ids = 6;setInputFieldNames(int index, String value) repeated string input_field_names = 5;string name = 1;setNameBytes(com.google.protobuf.ByteString value) string name = 1;setOutputFieldIds(int index, long value) repeated int64 output_field_ids = 8;setOutputFieldNames(int index, String value) repeated string output_field_names = 7;setParams(int index, KeyValuePair value) repeated .milvus.proto.common.KeyValuePair params = 9;setParams(int index, KeyValuePair.Builder builderForValue) repeated .milvus.proto.common.KeyValuePair params = 9;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setType(FunctionType value) .milvus.proto.schema.FunctionType type = 4;setTypeValue(int value) .milvus.proto.schema.FunctionType type = 4;final FunctionSchema.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-
setField
public FunctionSchema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-
setRepeatedField
public FunctionSchema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-
addRepeatedField
public FunctionSchema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FunctionSchema.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FunctionSchema.Builder>- Throws:
IOException
-
getName
string name = 1;- Specified by:
getNamein interfaceFunctionSchemaOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1;- Specified by:
getNameBytesin interfaceFunctionSchemaOrBuilder- Returns:
- The bytes for name.
-
setName
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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:
getIdin interfaceFunctionSchemaOrBuilder- Returns:
- The id.
-
setId
int64 id = 2;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
int64 id = 2;- Returns:
- This builder for chaining.
-
getDescription
string description = 3;- Specified by:
getDescriptionin interfaceFunctionSchemaOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()string description = 3;- Specified by:
getDescriptionBytesin interfaceFunctionSchemaOrBuilder- Returns:
- The bytes for description.
-
setDescription
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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:
getTypeValuein interfaceFunctionSchemaOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
.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
.milvus.proto.schema.FunctionType type = 4;- Specified by:
getTypein interfaceFunctionSchemaOrBuilder- Returns:
- The type.
-
setType
.milvus.proto.schema.FunctionType type = 4;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
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:
getInputFieldNamesListin interfaceFunctionSchemaOrBuilder- Returns:
- A list containing the inputFieldNames.
-
getInputFieldNamesCount
public int getInputFieldNamesCount()repeated string input_field_names = 5;- Specified by:
getInputFieldNamesCountin interfaceFunctionSchemaOrBuilder- Returns:
- The count of inputFieldNames.
-
getInputFieldNames
repeated string input_field_names = 5;- Specified by:
getInputFieldNamesin interfaceFunctionSchemaOrBuilder- 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:
getInputFieldNamesBytesin interfaceFunctionSchemaOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the inputFieldNames at the given index.
-
setInputFieldNames
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
repeated string input_field_names = 5;- Parameters:
value- The inputFieldNames to add.- Returns:
- This builder for chaining.
-
addAllInputFieldNames
repeated string input_field_names = 5;- Parameters:
values- The inputFieldNames to add.- Returns:
- This builder for chaining.
-
clearInputFieldNames
repeated string input_field_names = 5;- Returns:
- This builder for chaining.
-
addInputFieldNamesBytes
repeated string input_field_names = 5;- Parameters:
value- The bytes of the inputFieldNames to add.- Returns:
- This builder for chaining.
-
getInputFieldIdsList
repeated int64 input_field_ids = 6;- Specified by:
getInputFieldIdsListin interfaceFunctionSchemaOrBuilder- Returns:
- A list containing the inputFieldIds.
-
getInputFieldIdsCount
public int getInputFieldIdsCount()repeated int64 input_field_ids = 6;- Specified by:
getInputFieldIdsCountin interfaceFunctionSchemaOrBuilder- Returns:
- The count of inputFieldIds.
-
getInputFieldIds
public long getInputFieldIds(int index) repeated int64 input_field_ids = 6;- Specified by:
getInputFieldIdsin interfaceFunctionSchemaOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The inputFieldIds at the given index.
-
setInputFieldIds
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
repeated int64 input_field_ids = 6;- Parameters:
value- The inputFieldIds to add.- Returns:
- This builder for chaining.
-
addAllInputFieldIds
repeated int64 input_field_ids = 6;- Parameters:
values- The inputFieldIds to add.- Returns:
- This builder for chaining.
-
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:
getOutputFieldNamesListin interfaceFunctionSchemaOrBuilder- Returns:
- A list containing the outputFieldNames.
-
getOutputFieldNamesCount
public int getOutputFieldNamesCount()repeated string output_field_names = 7;- Specified by:
getOutputFieldNamesCountin interfaceFunctionSchemaOrBuilder- Returns:
- The count of outputFieldNames.
-
getOutputFieldNames
repeated string output_field_names = 7;- Specified by:
getOutputFieldNamesin interfaceFunctionSchemaOrBuilder- 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:
getOutputFieldNamesBytesin interfaceFunctionSchemaOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the outputFieldNames at the given index.
-
setOutputFieldNames
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
repeated string output_field_names = 7;- Parameters:
value- The outputFieldNames to add.- Returns:
- This builder for chaining.
-
addAllOutputFieldNames
repeated string output_field_names = 7;- Parameters:
values- The outputFieldNames to add.- Returns:
- This builder for chaining.
-
clearOutputFieldNames
repeated string output_field_names = 7;- Returns:
- This builder for chaining.
-
addOutputFieldNamesBytes
repeated string output_field_names = 7;- Parameters:
value- The bytes of the outputFieldNames to add.- Returns:
- This builder for chaining.
-
getOutputFieldIdsList
repeated int64 output_field_ids = 8;- Specified by:
getOutputFieldIdsListin interfaceFunctionSchemaOrBuilder- Returns:
- A list containing the outputFieldIds.
-
getOutputFieldIdsCount
public int getOutputFieldIdsCount()repeated int64 output_field_ids = 8;- Specified by:
getOutputFieldIdsCountin interfaceFunctionSchemaOrBuilder- Returns:
- The count of outputFieldIds.
-
getOutputFieldIds
public long getOutputFieldIds(int index) repeated int64 output_field_ids = 8;- Specified by:
getOutputFieldIdsin interfaceFunctionSchemaOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The outputFieldIds at the given index.
-
setOutputFieldIds
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
repeated int64 output_field_ids = 8;- Parameters:
value- The outputFieldIds to add.- Returns:
- This builder for chaining.
-
addAllOutputFieldIds
repeated int64 output_field_ids = 8;- Parameters:
values- The outputFieldIds to add.- Returns:
- This builder for chaining.
-
clearOutputFieldIds
repeated int64 output_field_ids = 8;- Returns:
- This builder for chaining.
-
getParamsList
repeated .milvus.proto.common.KeyValuePair params = 9;- Specified by:
getParamsListin interfaceFunctionSchemaOrBuilder
-
getParamsCount
public int getParamsCount()repeated .milvus.proto.common.KeyValuePair params = 9;- Specified by:
getParamsCountin interfaceFunctionSchemaOrBuilder
-
getParams
repeated .milvus.proto.common.KeyValuePair params = 9;- Specified by:
getParamsin interfaceFunctionSchemaOrBuilder
-
setParams
repeated .milvus.proto.common.KeyValuePair params = 9; -
setParams
repeated .milvus.proto.common.KeyValuePair params = 9; -
addParams
repeated .milvus.proto.common.KeyValuePair params = 9; -
addParams
repeated .milvus.proto.common.KeyValuePair params = 9; -
addParams
repeated .milvus.proto.common.KeyValuePair params = 9; -
addParams
repeated .milvus.proto.common.KeyValuePair params = 9; -
addAllParams
repeated .milvus.proto.common.KeyValuePair params = 9; -
clearParams
repeated .milvus.proto.common.KeyValuePair params = 9; -
removeParams
repeated .milvus.proto.common.KeyValuePair params = 9; -
getParamsBuilder
repeated .milvus.proto.common.KeyValuePair params = 9; -
getParamsOrBuilder
repeated .milvus.proto.common.KeyValuePair params = 9;- Specified by:
getParamsOrBuilderin interfaceFunctionSchemaOrBuilder
-
getParamsOrBuilderList
repeated .milvus.proto.common.KeyValuePair params = 9;- Specified by:
getParamsOrBuilderListin interfaceFunctionSchemaOrBuilder
-
addParamsBuilder
repeated .milvus.proto.common.KeyValuePair params = 9; -
addParamsBuilder
repeated .milvus.proto.common.KeyValuePair params = 9; -
getParamsBuilderList
repeated .milvus.proto.common.KeyValuePair params = 9; -
setUnknownFields
public final FunctionSchema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-
mergeUnknownFields
public final FunctionSchema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FunctionSchema.Builder>
-