All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.milvus.grpc.CollectionSchema Maven / Gradle / Ivy

There is a newer version: 2.4.8
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: schema.proto

package io.milvus.grpc;

/**
 * 
 **
 * @brief Collection schema
 * 
* * Protobuf type {@code milvus.proto.schema.CollectionSchema} */ public final class CollectionSchema extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:milvus.proto.schema.CollectionSchema) CollectionSchemaOrBuilder { private static final long serialVersionUID = 0L; // Use CollectionSchema.newBuilder() to construct. private CollectionSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CollectionSchema() { name_ = ""; description_ = ""; fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CollectionSchema(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_CollectionSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_CollectionSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.CollectionSchema.class, io.milvus.grpc.CollectionSchema.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * string description = 2; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * string description = 2; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTOID_FIELD_NUMBER = 3; private boolean autoID_ = false; /** *
   * deprecated later, keep compatible with c++ part now
   * 
* * bool autoID = 3 [deprecated = true]; * @deprecated milvus.proto.schema.CollectionSchema.autoID is deprecated. * See schema.proto;l=71 * @return The autoID. */ @java.lang.Override @java.lang.Deprecated public boolean getAutoID() { return autoID_; } public static final int FIELDS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List fields_; /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ @java.lang.Override public java.util.List getFieldsOrBuilderList() { return fields_; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ @java.lang.Override public io.milvus.grpc.FieldSchema getFields(int index) { return fields_.get(index); } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ @java.lang.Override public io.milvus.grpc.FieldSchemaOrBuilder getFieldsOrBuilder( int index) { return fields_.get(index); } public static final int ENABLE_DYNAMIC_FIELD_FIELD_NUMBER = 5; private boolean enableDynamicField_ = false; /** *
   * mark whether this table has the dynamic field function enabled.
   * 
* * bool enable_dynamic_field = 5; * @return The enableDynamicField. */ @java.lang.Override public boolean getEnableDynamicField() { return enableDynamicField_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (autoID_ != false) { output.writeBool(3, autoID_); } for (int i = 0; i < fields_.size(); i++) { output.writeMessage(4, fields_.get(i)); } if (enableDynamicField_ != false) { output.writeBool(5, enableDynamicField_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (autoID_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, autoID_); } for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, fields_.get(i)); } if (enableDynamicField_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, enableDynamicField_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.milvus.grpc.CollectionSchema)) { return super.equals(obj); } io.milvus.grpc.CollectionSchema other = (io.milvus.grpc.CollectionSchema) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (getAutoID() != other.getAutoID()) return false; if (!getFieldsList() .equals(other.getFieldsList())) return false; if (getEnableDynamicField() != other.getEnableDynamicField()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + AUTOID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAutoID()); if (getFieldsCount() > 0) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } hash = (37 * hash) + ENABLE_DYNAMIC_FIELD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnableDynamicField()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.milvus.grpc.CollectionSchema parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.CollectionSchema parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.CollectionSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.CollectionSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.CollectionSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.CollectionSchema parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.CollectionSchema parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.CollectionSchema parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.milvus.grpc.CollectionSchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.milvus.grpc.CollectionSchema parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.milvus.grpc.CollectionSchema parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.CollectionSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.milvus.grpc.CollectionSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * @brief Collection schema
   * 
* * Protobuf type {@code milvus.proto.schema.CollectionSchema} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:milvus.proto.schema.CollectionSchema) io.milvus.grpc.CollectionSchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_CollectionSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_CollectionSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.CollectionSchema.class, io.milvus.grpc.CollectionSchema.Builder.class); } // Construct using io.milvus.grpc.CollectionSchema.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; description_ = ""; autoID_ = false; if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); } else { fields_ = null; fieldsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); enableDynamicField_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_CollectionSchema_descriptor; } @java.lang.Override public io.milvus.grpc.CollectionSchema getDefaultInstanceForType() { return io.milvus.grpc.CollectionSchema.getDefaultInstance(); } @java.lang.Override public io.milvus.grpc.CollectionSchema build() { io.milvus.grpc.CollectionSchema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.milvus.grpc.CollectionSchema buildPartial() { io.milvus.grpc.CollectionSchema result = new io.milvus.grpc.CollectionSchema(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.milvus.grpc.CollectionSchema result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000008); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } } private void buildPartial0(io.milvus.grpc.CollectionSchema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.autoID_ = autoID_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.enableDynamicField_ = enableDynamicField_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.milvus.grpc.CollectionSchema) { return mergeFrom((io.milvus.grpc.CollectionSchema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.milvus.grpc.CollectionSchema other) { if (other == io.milvus.grpc.CollectionSchema.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000002; onChanged(); } if (other.getAutoID() != false) { setAutoID(other.getAutoID()); } if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000008); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } if (other.getEnableDynamicField() != false) { setEnableDynamicField(other.getEnableDynamicField()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { autoID_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { io.milvus.grpc.FieldSchema m = input.readMessage( io.milvus.grpc.FieldSchema.parser(), extensionRegistry); if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(m); } else { fieldsBuilder_.addMessage(m); } break; } // case 34 case 40: { enableDynamicField_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object description_ = ""; /** * string description = 2; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 2; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private boolean autoID_ ; /** *
     * deprecated later, keep compatible with c++ part now
     * 
* * bool autoID = 3 [deprecated = true]; * @deprecated milvus.proto.schema.CollectionSchema.autoID is deprecated. * See schema.proto;l=71 * @return The autoID. */ @java.lang.Override @java.lang.Deprecated public boolean getAutoID() { return autoID_; } /** *
     * deprecated later, keep compatible with c++ part now
     * 
* * bool autoID = 3 [deprecated = true]; * @deprecated milvus.proto.schema.CollectionSchema.autoID is deprecated. * See schema.proto;l=71 * @param value The autoID to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setAutoID(boolean value) { autoID_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * deprecated later, keep compatible with c++ part now
     * 
* * bool autoID = 3 [deprecated = true]; * @deprecated milvus.proto.schema.CollectionSchema.autoID is deprecated. * See schema.proto;l=71 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearAutoID() { bitField0_ = (bitField0_ & ~0x00000004); autoID_ = false; onChanged(); return this; } private java.util.List fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.FieldSchema, io.milvus.grpc.FieldSchema.Builder, io.milvus.grpc.FieldSchemaOrBuilder> fieldsBuilder_; /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public io.milvus.grpc.FieldSchema getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public Builder setFields( int index, io.milvus.grpc.FieldSchema value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public Builder setFields( int index, io.milvus.grpc.FieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public Builder addFields(io.milvus.grpc.FieldSchema value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public Builder addFields( int index, io.milvus.grpc.FieldSchema value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public Builder addFields( io.milvus.grpc.FieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public Builder addFields( int index, io.milvus.grpc.FieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { fieldsBuilder_.clear(); } return this; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public io.milvus.grpc.FieldSchema.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public io.milvus.grpc.FieldSchemaOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public java.util.List getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public io.milvus.grpc.FieldSchema.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( io.milvus.grpc.FieldSchema.getDefaultInstance()); } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public io.milvus.grpc.FieldSchema.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, io.milvus.grpc.FieldSchema.getDefaultInstance()); } /** * repeated .milvus.proto.schema.FieldSchema fields = 4; */ public java.util.List getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.FieldSchema, io.milvus.grpc.FieldSchema.Builder, io.milvus.grpc.FieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.FieldSchema, io.milvus.grpc.FieldSchema.Builder, io.milvus.grpc.FieldSchemaOrBuilder>( fields_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } private boolean enableDynamicField_ ; /** *
     * mark whether this table has the dynamic field function enabled.
     * 
* * bool enable_dynamic_field = 5; * @return The enableDynamicField. */ @java.lang.Override public boolean getEnableDynamicField() { return enableDynamicField_; } /** *
     * mark whether this table has the dynamic field function enabled.
     * 
* * bool enable_dynamic_field = 5; * @param value The enableDynamicField to set. * @return This builder for chaining. */ public Builder setEnableDynamicField(boolean value) { enableDynamicField_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * mark whether this table has the dynamic field function enabled.
     * 
* * bool enable_dynamic_field = 5; * @return This builder for chaining. */ public Builder clearEnableDynamicField() { bitField0_ = (bitField0_ & ~0x00000010); enableDynamicField_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:milvus.proto.schema.CollectionSchema) } // @@protoc_insertion_point(class_scope:milvus.proto.schema.CollectionSchema) private static final io.milvus.grpc.CollectionSchema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.milvus.grpc.CollectionSchema(); } public static io.milvus.grpc.CollectionSchema getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CollectionSchema parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.milvus.grpc.CollectionSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy