io.milvus.grpc.ReplicateMessageRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector database.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: milvus.proto
package io.milvus.grpc;
/**
* Protobuf type {@code milvus.proto.milvus.ReplicateMessageRequest}
*/
public final class ReplicateMessageRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.ReplicateMessageRequest)
ReplicateMessageRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReplicateMessageRequest.newBuilder() to construct.
private ReplicateMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReplicateMessageRequest() {
channelName_ = "";
msgs_ = emptyList(com.google.protobuf.ByteString.class);
startPositions_ = java.util.Collections.emptyList();
endPositions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReplicateMessageRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicateMessageRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicateMessageRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.ReplicateMessageRequest.class, io.milvus.grpc.ReplicateMessageRequest.Builder.class);
}
private int bitField0_;
public static final int BASE_FIELD_NUMBER = 1;
private io.milvus.grpc.MsgBase base_;
/**
* .milvus.proto.common.MsgBase base = 1;
* @return Whether the base field is set.
*/
@java.lang.Override
public boolean hasBase() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .milvus.proto.common.MsgBase base = 1;
* @return The base.
*/
@java.lang.Override
public io.milvus.grpc.MsgBase getBase() {
return base_ == null ? io.milvus.grpc.MsgBase.getDefaultInstance() : base_;
}
/**
* .milvus.proto.common.MsgBase base = 1;
*/
@java.lang.Override
public io.milvus.grpc.MsgBaseOrBuilder getBaseOrBuilder() {
return base_ == null ? io.milvus.grpc.MsgBase.getDefaultInstance() : base_;
}
public static final int CHANNEL_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object channelName_ = "";
/**
* string channel_name = 2;
* @return The channelName.
*/
@java.lang.Override
public java.lang.String getChannelName() {
java.lang.Object ref = channelName_;
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();
channelName_ = s;
return s;
}
}
/**
* string channel_name = 2;
* @return The bytes for channelName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChannelNameBytes() {
java.lang.Object ref = channelName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BEGINTS_FIELD_NUMBER = 3;
private long beginTs_ = 0L;
/**
* uint64 BeginTs = 3;
* @return The beginTs.
*/
@java.lang.Override
public long getBeginTs() {
return beginTs_;
}
public static final int ENDTS_FIELD_NUMBER = 4;
private long endTs_ = 0L;
/**
* uint64 EndTs = 4;
* @return The endTs.
*/
@java.lang.Override
public long getEndTs() {
return endTs_;
}
public static final int MSGS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList msgs_ =
emptyList(com.google.protobuf.ByteString.class);
/**
* repeated bytes Msgs = 5;
* @return A list containing the msgs.
*/
@java.lang.Override
public java.util.List
getMsgsList() {
return msgs_;
}
/**
* repeated bytes Msgs = 5;
* @return The count of msgs.
*/
public int getMsgsCount() {
return msgs_.size();
}
/**
* repeated bytes Msgs = 5;
* @param index The index of the element to return.
* @return The msgs at the given index.
*/
public com.google.protobuf.ByteString getMsgs(int index) {
return msgs_.get(index);
}
public static final int STARTPOSITIONS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List startPositions_;
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
@java.lang.Override
public java.util.List getStartPositionsList() {
return startPositions_;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
@java.lang.Override
public java.util.List extends milvus.proto.msg.Msg.MsgPositionOrBuilder>
getStartPositionsOrBuilderList() {
return startPositions_;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
@java.lang.Override
public int getStartPositionsCount() {
return startPositions_.size();
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
@java.lang.Override
public milvus.proto.msg.Msg.MsgPosition getStartPositions(int index) {
return startPositions_.get(index);
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
@java.lang.Override
public milvus.proto.msg.Msg.MsgPositionOrBuilder getStartPositionsOrBuilder(
int index) {
return startPositions_.get(index);
}
public static final int ENDPOSITIONS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List endPositions_;
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
@java.lang.Override
public java.util.List getEndPositionsList() {
return endPositions_;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
@java.lang.Override
public java.util.List extends milvus.proto.msg.Msg.MsgPositionOrBuilder>
getEndPositionsOrBuilderList() {
return endPositions_;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
@java.lang.Override
public int getEndPositionsCount() {
return endPositions_.size();
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
@java.lang.Override
public milvus.proto.msg.Msg.MsgPosition getEndPositions(int index) {
return endPositions_.get(index);
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
@java.lang.Override
public milvus.proto.msg.Msg.MsgPositionOrBuilder getEndPositionsOrBuilder(
int index) {
return endPositions_.get(index);
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getBase());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelName_);
}
if (beginTs_ != 0L) {
output.writeUInt64(3, beginTs_);
}
if (endTs_ != 0L) {
output.writeUInt64(4, endTs_);
}
for (int i = 0; i < msgs_.size(); i++) {
output.writeBytes(5, msgs_.get(i));
}
for (int i = 0; i < startPositions_.size(); i++) {
output.writeMessage(6, startPositions_.get(i));
}
for (int i = 0; i < endPositions_.size(); i++) {
output.writeMessage(7, endPositions_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBase());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelName_);
}
if (beginTs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, beginTs_);
}
if (endTs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, endTs_);
}
{
int dataSize = 0;
for (int i = 0; i < msgs_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(msgs_.get(i));
}
size += dataSize;
size += 1 * getMsgsList().size();
}
for (int i = 0; i < startPositions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, startPositions_.get(i));
}
for (int i = 0; i < endPositions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, endPositions_.get(i));
}
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.ReplicateMessageRequest)) {
return super.equals(obj);
}
io.milvus.grpc.ReplicateMessageRequest other = (io.milvus.grpc.ReplicateMessageRequest) obj;
if (hasBase() != other.hasBase()) return false;
if (hasBase()) {
if (!getBase()
.equals(other.getBase())) return false;
}
if (!getChannelName()
.equals(other.getChannelName())) return false;
if (getBeginTs()
!= other.getBeginTs()) return false;
if (getEndTs()
!= other.getEndTs()) return false;
if (!getMsgsList()
.equals(other.getMsgsList())) return false;
if (!getStartPositionsList()
.equals(other.getStartPositionsList())) return false;
if (!getEndPositionsList()
.equals(other.getEndPositionsList())) 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();
if (hasBase()) {
hash = (37 * hash) + BASE_FIELD_NUMBER;
hash = (53 * hash) + getBase().hashCode();
}
hash = (37 * hash) + CHANNEL_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChannelName().hashCode();
hash = (37 * hash) + BEGINTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBeginTs());
hash = (37 * hash) + ENDTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndTs());
if (getMsgsCount() > 0) {
hash = (37 * hash) + MSGS_FIELD_NUMBER;
hash = (53 * hash) + getMsgsList().hashCode();
}
if (getStartPositionsCount() > 0) {
hash = (37 * hash) + STARTPOSITIONS_FIELD_NUMBER;
hash = (53 * hash) + getStartPositionsList().hashCode();
}
if (getEndPositionsCount() > 0) {
hash = (37 * hash) + ENDPOSITIONS_FIELD_NUMBER;
hash = (53 * hash) + getEndPositionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.ReplicateMessageRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ReplicateMessageRequest 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.ReplicateMessageRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ReplicateMessageRequest 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.ReplicateMessageRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ReplicateMessageRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.ReplicateMessageRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.ReplicateMessageRequest 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.ReplicateMessageRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.ReplicateMessageRequest 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.ReplicateMessageRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.ReplicateMessageRequest 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.ReplicateMessageRequest 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;
}
/**
* Protobuf type {@code milvus.proto.milvus.ReplicateMessageRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.ReplicateMessageRequest)
io.milvus.grpc.ReplicateMessageRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicateMessageRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicateMessageRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.ReplicateMessageRequest.class, io.milvus.grpc.ReplicateMessageRequest.Builder.class);
}
// Construct using io.milvus.grpc.ReplicateMessageRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseFieldBuilder();
getStartPositionsFieldBuilder();
getEndPositionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
base_ = null;
if (baseBuilder_ != null) {
baseBuilder_.dispose();
baseBuilder_ = null;
}
channelName_ = "";
beginTs_ = 0L;
endTs_ = 0L;
msgs_ = emptyList(com.google.protobuf.ByteString.class);
if (startPositionsBuilder_ == null) {
startPositions_ = java.util.Collections.emptyList();
} else {
startPositions_ = null;
startPositionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (endPositionsBuilder_ == null) {
endPositions_ = java.util.Collections.emptyList();
} else {
endPositions_ = null;
endPositionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ReplicateMessageRequest_descriptor;
}
@java.lang.Override
public io.milvus.grpc.ReplicateMessageRequest getDefaultInstanceForType() {
return io.milvus.grpc.ReplicateMessageRequest.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.ReplicateMessageRequest build() {
io.milvus.grpc.ReplicateMessageRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.ReplicateMessageRequest buildPartial() {
io.milvus.grpc.ReplicateMessageRequest result = new io.milvus.grpc.ReplicateMessageRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.milvus.grpc.ReplicateMessageRequest result) {
if (startPositionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
startPositions_ = java.util.Collections.unmodifiableList(startPositions_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.startPositions_ = startPositions_;
} else {
result.startPositions_ = startPositionsBuilder_.build();
}
if (endPositionsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
endPositions_ = java.util.Collections.unmodifiableList(endPositions_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.endPositions_ = endPositions_;
} else {
result.endPositions_ = endPositionsBuilder_.build();
}
}
private void buildPartial0(io.milvus.grpc.ReplicateMessageRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.base_ = baseBuilder_ == null
? base_
: baseBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.channelName_ = channelName_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.beginTs_ = beginTs_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.endTs_ = endTs_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
msgs_.makeImmutable();
result.msgs_ = msgs_;
}
result.bitField0_ |= to_bitField0_;
}
@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.ReplicateMessageRequest) {
return mergeFrom((io.milvus.grpc.ReplicateMessageRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.ReplicateMessageRequest other) {
if (other == io.milvus.grpc.ReplicateMessageRequest.getDefaultInstance()) return this;
if (other.hasBase()) {
mergeBase(other.getBase());
}
if (!other.getChannelName().isEmpty()) {
channelName_ = other.channelName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getBeginTs() != 0L) {
setBeginTs(other.getBeginTs());
}
if (other.getEndTs() != 0L) {
setEndTs(other.getEndTs());
}
if (!other.msgs_.isEmpty()) {
if (msgs_.isEmpty()) {
msgs_ = other.msgs_;
msgs_.makeImmutable();
bitField0_ |= 0x00000010;
} else {
ensureMsgsIsMutable();
msgs_.addAll(other.msgs_);
}
onChanged();
}
if (startPositionsBuilder_ == null) {
if (!other.startPositions_.isEmpty()) {
if (startPositions_.isEmpty()) {
startPositions_ = other.startPositions_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureStartPositionsIsMutable();
startPositions_.addAll(other.startPositions_);
}
onChanged();
}
} else {
if (!other.startPositions_.isEmpty()) {
if (startPositionsBuilder_.isEmpty()) {
startPositionsBuilder_.dispose();
startPositionsBuilder_ = null;
startPositions_ = other.startPositions_;
bitField0_ = (bitField0_ & ~0x00000020);
startPositionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStartPositionsFieldBuilder() : null;
} else {
startPositionsBuilder_.addAllMessages(other.startPositions_);
}
}
}
if (endPositionsBuilder_ == null) {
if (!other.endPositions_.isEmpty()) {
if (endPositions_.isEmpty()) {
endPositions_ = other.endPositions_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureEndPositionsIsMutable();
endPositions_.addAll(other.endPositions_);
}
onChanged();
}
} else {
if (!other.endPositions_.isEmpty()) {
if (endPositionsBuilder_.isEmpty()) {
endPositionsBuilder_.dispose();
endPositionsBuilder_ = null;
endPositions_ = other.endPositions_;
bitField0_ = (bitField0_ & ~0x00000040);
endPositionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEndPositionsFieldBuilder() : null;
} else {
endPositionsBuilder_.addAllMessages(other.endPositions_);
}
}
}
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: {
input.readMessage(
getBaseFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
channelName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
beginTs_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
endTs_ = input.readUInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
com.google.protobuf.ByteString v = input.readBytes();
ensureMsgsIsMutable();
msgs_.add(v);
break;
} // case 42
case 50: {
milvus.proto.msg.Msg.MsgPosition m =
input.readMessage(
milvus.proto.msg.Msg.MsgPosition.parser(),
extensionRegistry);
if (startPositionsBuilder_ == null) {
ensureStartPositionsIsMutable();
startPositions_.add(m);
} else {
startPositionsBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
milvus.proto.msg.Msg.MsgPosition m =
input.readMessage(
milvus.proto.msg.Msg.MsgPosition.parser(),
extensionRegistry);
if (endPositionsBuilder_ == null) {
ensureEndPositionsIsMutable();
endPositions_.add(m);
} else {
endPositionsBuilder_.addMessage(m);
}
break;
} // case 58
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 io.milvus.grpc.MsgBase base_;
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.MsgBase, io.milvus.grpc.MsgBase.Builder, io.milvus.grpc.MsgBaseOrBuilder> baseBuilder_;
/**
* .milvus.proto.common.MsgBase base = 1;
* @return Whether the base field is set.
*/
public boolean hasBase() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .milvus.proto.common.MsgBase base = 1;
* @return The base.
*/
public io.milvus.grpc.MsgBase getBase() {
if (baseBuilder_ == null) {
return base_ == null ? io.milvus.grpc.MsgBase.getDefaultInstance() : base_;
} else {
return baseBuilder_.getMessage();
}
}
/**
* .milvus.proto.common.MsgBase base = 1;
*/
public Builder setBase(io.milvus.grpc.MsgBase value) {
if (baseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
base_ = value;
} else {
baseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .milvus.proto.common.MsgBase base = 1;
*/
public Builder setBase(
io.milvus.grpc.MsgBase.Builder builderForValue) {
if (baseBuilder_ == null) {
base_ = builderForValue.build();
} else {
baseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .milvus.proto.common.MsgBase base = 1;
*/
public Builder mergeBase(io.milvus.grpc.MsgBase value) {
if (baseBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
base_ != null &&
base_ != io.milvus.grpc.MsgBase.getDefaultInstance()) {
getBaseBuilder().mergeFrom(value);
} else {
base_ = value;
}
} else {
baseBuilder_.mergeFrom(value);
}
if (base_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .milvus.proto.common.MsgBase base = 1;
*/
public Builder clearBase() {
bitField0_ = (bitField0_ & ~0x00000001);
base_ = null;
if (baseBuilder_ != null) {
baseBuilder_.dispose();
baseBuilder_ = null;
}
onChanged();
return this;
}
/**
* .milvus.proto.common.MsgBase base = 1;
*/
public io.milvus.grpc.MsgBase.Builder getBaseBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseFieldBuilder().getBuilder();
}
/**
* .milvus.proto.common.MsgBase base = 1;
*/
public io.milvus.grpc.MsgBaseOrBuilder getBaseOrBuilder() {
if (baseBuilder_ != null) {
return baseBuilder_.getMessageOrBuilder();
} else {
return base_ == null ?
io.milvus.grpc.MsgBase.getDefaultInstance() : base_;
}
}
/**
* .milvus.proto.common.MsgBase base = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.MsgBase, io.milvus.grpc.MsgBase.Builder, io.milvus.grpc.MsgBaseOrBuilder>
getBaseFieldBuilder() {
if (baseBuilder_ == null) {
baseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.MsgBase, io.milvus.grpc.MsgBase.Builder, io.milvus.grpc.MsgBaseOrBuilder>(
getBase(),
getParentForChildren(),
isClean());
base_ = null;
}
return baseBuilder_;
}
private java.lang.Object channelName_ = "";
/**
* string channel_name = 2;
* @return The channelName.
*/
public java.lang.String getChannelName() {
java.lang.Object ref = channelName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channelName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string channel_name = 2;
* @return The bytes for channelName.
*/
public com.google.protobuf.ByteString
getChannelNameBytes() {
java.lang.Object ref = channelName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string channel_name = 2;
* @param value The channelName to set.
* @return This builder for chaining.
*/
public Builder setChannelName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
channelName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string channel_name = 2;
* @return This builder for chaining.
*/
public Builder clearChannelName() {
channelName_ = getDefaultInstance().getChannelName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string channel_name = 2;
* @param value The bytes for channelName to set.
* @return This builder for chaining.
*/
public Builder setChannelNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
channelName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long beginTs_ ;
/**
* uint64 BeginTs = 3;
* @return The beginTs.
*/
@java.lang.Override
public long getBeginTs() {
return beginTs_;
}
/**
* uint64 BeginTs = 3;
* @param value The beginTs to set.
* @return This builder for chaining.
*/
public Builder setBeginTs(long value) {
beginTs_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* uint64 BeginTs = 3;
* @return This builder for chaining.
*/
public Builder clearBeginTs() {
bitField0_ = (bitField0_ & ~0x00000004);
beginTs_ = 0L;
onChanged();
return this;
}
private long endTs_ ;
/**
* uint64 EndTs = 4;
* @return The endTs.
*/
@java.lang.Override
public long getEndTs() {
return endTs_;
}
/**
* uint64 EndTs = 4;
* @param value The endTs to set.
* @return This builder for chaining.
*/
public Builder setEndTs(long value) {
endTs_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* uint64 EndTs = 4;
* @return This builder for chaining.
*/
public Builder clearEndTs() {
bitField0_ = (bitField0_ & ~0x00000008);
endTs_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList msgs_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureMsgsIsMutable() {
if (!msgs_.isModifiable()) {
msgs_ = makeMutableCopy(msgs_);
}
bitField0_ |= 0x00000010;
}
/**
* repeated bytes Msgs = 5;
* @return A list containing the msgs.
*/
public java.util.List
getMsgsList() {
msgs_.makeImmutable();
return msgs_;
}
/**
* repeated bytes Msgs = 5;
* @return The count of msgs.
*/
public int getMsgsCount() {
return msgs_.size();
}
/**
* repeated bytes Msgs = 5;
* @param index The index of the element to return.
* @return The msgs at the given index.
*/
public com.google.protobuf.ByteString getMsgs(int index) {
return msgs_.get(index);
}
/**
* repeated bytes Msgs = 5;
* @param index The index to set the value at.
* @param value The msgs to set.
* @return This builder for chaining.
*/
public Builder setMsgs(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureMsgsIsMutable();
msgs_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated bytes Msgs = 5;
* @param value The msgs to add.
* @return This builder for chaining.
*/
public Builder addMsgs(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureMsgsIsMutable();
msgs_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated bytes Msgs = 5;
* @param values The msgs to add.
* @return This builder for chaining.
*/
public Builder addAllMsgs(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureMsgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, msgs_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated bytes Msgs = 5;
* @return This builder for chaining.
*/
public Builder clearMsgs() {
msgs_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private java.util.List startPositions_ =
java.util.Collections.emptyList();
private void ensureStartPositionsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
startPositions_ = new java.util.ArrayList(startPositions_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
milvus.proto.msg.Msg.MsgPosition, milvus.proto.msg.Msg.MsgPosition.Builder, milvus.proto.msg.Msg.MsgPositionOrBuilder> startPositionsBuilder_;
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public java.util.List getStartPositionsList() {
if (startPositionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(startPositions_);
} else {
return startPositionsBuilder_.getMessageList();
}
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public int getStartPositionsCount() {
if (startPositionsBuilder_ == null) {
return startPositions_.size();
} else {
return startPositionsBuilder_.getCount();
}
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public milvus.proto.msg.Msg.MsgPosition getStartPositions(int index) {
if (startPositionsBuilder_ == null) {
return startPositions_.get(index);
} else {
return startPositionsBuilder_.getMessage(index);
}
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public Builder setStartPositions(
int index, milvus.proto.msg.Msg.MsgPosition value) {
if (startPositionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStartPositionsIsMutable();
startPositions_.set(index, value);
onChanged();
} else {
startPositionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public Builder setStartPositions(
int index, milvus.proto.msg.Msg.MsgPosition.Builder builderForValue) {
if (startPositionsBuilder_ == null) {
ensureStartPositionsIsMutable();
startPositions_.set(index, builderForValue.build());
onChanged();
} else {
startPositionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public Builder addStartPositions(milvus.proto.msg.Msg.MsgPosition value) {
if (startPositionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStartPositionsIsMutable();
startPositions_.add(value);
onChanged();
} else {
startPositionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public Builder addStartPositions(
int index, milvus.proto.msg.Msg.MsgPosition value) {
if (startPositionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStartPositionsIsMutable();
startPositions_.add(index, value);
onChanged();
} else {
startPositionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public Builder addStartPositions(
milvus.proto.msg.Msg.MsgPosition.Builder builderForValue) {
if (startPositionsBuilder_ == null) {
ensureStartPositionsIsMutable();
startPositions_.add(builderForValue.build());
onChanged();
} else {
startPositionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public Builder addStartPositions(
int index, milvus.proto.msg.Msg.MsgPosition.Builder builderForValue) {
if (startPositionsBuilder_ == null) {
ensureStartPositionsIsMutable();
startPositions_.add(index, builderForValue.build());
onChanged();
} else {
startPositionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public Builder addAllStartPositions(
java.lang.Iterable extends milvus.proto.msg.Msg.MsgPosition> values) {
if (startPositionsBuilder_ == null) {
ensureStartPositionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, startPositions_);
onChanged();
} else {
startPositionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public Builder clearStartPositions() {
if (startPositionsBuilder_ == null) {
startPositions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
startPositionsBuilder_.clear();
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public Builder removeStartPositions(int index) {
if (startPositionsBuilder_ == null) {
ensureStartPositionsIsMutable();
startPositions_.remove(index);
onChanged();
} else {
startPositionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public milvus.proto.msg.Msg.MsgPosition.Builder getStartPositionsBuilder(
int index) {
return getStartPositionsFieldBuilder().getBuilder(index);
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public milvus.proto.msg.Msg.MsgPositionOrBuilder getStartPositionsOrBuilder(
int index) {
if (startPositionsBuilder_ == null) {
return startPositions_.get(index); } else {
return startPositionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public java.util.List extends milvus.proto.msg.Msg.MsgPositionOrBuilder>
getStartPositionsOrBuilderList() {
if (startPositionsBuilder_ != null) {
return startPositionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(startPositions_);
}
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public milvus.proto.msg.Msg.MsgPosition.Builder addStartPositionsBuilder() {
return getStartPositionsFieldBuilder().addBuilder(
milvus.proto.msg.Msg.MsgPosition.getDefaultInstance());
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public milvus.proto.msg.Msg.MsgPosition.Builder addStartPositionsBuilder(
int index) {
return getStartPositionsFieldBuilder().addBuilder(
index, milvus.proto.msg.Msg.MsgPosition.getDefaultInstance());
}
/**
* repeated .milvus.proto.msg.MsgPosition StartPositions = 6;
*/
public java.util.List
getStartPositionsBuilderList() {
return getStartPositionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
milvus.proto.msg.Msg.MsgPosition, milvus.proto.msg.Msg.MsgPosition.Builder, milvus.proto.msg.Msg.MsgPositionOrBuilder>
getStartPositionsFieldBuilder() {
if (startPositionsBuilder_ == null) {
startPositionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
milvus.proto.msg.Msg.MsgPosition, milvus.proto.msg.Msg.MsgPosition.Builder, milvus.proto.msg.Msg.MsgPositionOrBuilder>(
startPositions_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
startPositions_ = null;
}
return startPositionsBuilder_;
}
private java.util.List endPositions_ =
java.util.Collections.emptyList();
private void ensureEndPositionsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
endPositions_ = new java.util.ArrayList(endPositions_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
milvus.proto.msg.Msg.MsgPosition, milvus.proto.msg.Msg.MsgPosition.Builder, milvus.proto.msg.Msg.MsgPositionOrBuilder> endPositionsBuilder_;
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public java.util.List getEndPositionsList() {
if (endPositionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(endPositions_);
} else {
return endPositionsBuilder_.getMessageList();
}
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public int getEndPositionsCount() {
if (endPositionsBuilder_ == null) {
return endPositions_.size();
} else {
return endPositionsBuilder_.getCount();
}
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public milvus.proto.msg.Msg.MsgPosition getEndPositions(int index) {
if (endPositionsBuilder_ == null) {
return endPositions_.get(index);
} else {
return endPositionsBuilder_.getMessage(index);
}
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public Builder setEndPositions(
int index, milvus.proto.msg.Msg.MsgPosition value) {
if (endPositionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEndPositionsIsMutable();
endPositions_.set(index, value);
onChanged();
} else {
endPositionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public Builder setEndPositions(
int index, milvus.proto.msg.Msg.MsgPosition.Builder builderForValue) {
if (endPositionsBuilder_ == null) {
ensureEndPositionsIsMutable();
endPositions_.set(index, builderForValue.build());
onChanged();
} else {
endPositionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public Builder addEndPositions(milvus.proto.msg.Msg.MsgPosition value) {
if (endPositionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEndPositionsIsMutable();
endPositions_.add(value);
onChanged();
} else {
endPositionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public Builder addEndPositions(
int index, milvus.proto.msg.Msg.MsgPosition value) {
if (endPositionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEndPositionsIsMutable();
endPositions_.add(index, value);
onChanged();
} else {
endPositionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public Builder addEndPositions(
milvus.proto.msg.Msg.MsgPosition.Builder builderForValue) {
if (endPositionsBuilder_ == null) {
ensureEndPositionsIsMutable();
endPositions_.add(builderForValue.build());
onChanged();
} else {
endPositionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public Builder addEndPositions(
int index, milvus.proto.msg.Msg.MsgPosition.Builder builderForValue) {
if (endPositionsBuilder_ == null) {
ensureEndPositionsIsMutable();
endPositions_.add(index, builderForValue.build());
onChanged();
} else {
endPositionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public Builder addAllEndPositions(
java.lang.Iterable extends milvus.proto.msg.Msg.MsgPosition> values) {
if (endPositionsBuilder_ == null) {
ensureEndPositionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, endPositions_);
onChanged();
} else {
endPositionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public Builder clearEndPositions() {
if (endPositionsBuilder_ == null) {
endPositions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
endPositionsBuilder_.clear();
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public Builder removeEndPositions(int index) {
if (endPositionsBuilder_ == null) {
ensureEndPositionsIsMutable();
endPositions_.remove(index);
onChanged();
} else {
endPositionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public milvus.proto.msg.Msg.MsgPosition.Builder getEndPositionsBuilder(
int index) {
return getEndPositionsFieldBuilder().getBuilder(index);
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public milvus.proto.msg.Msg.MsgPositionOrBuilder getEndPositionsOrBuilder(
int index) {
if (endPositionsBuilder_ == null) {
return endPositions_.get(index); } else {
return endPositionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public java.util.List extends milvus.proto.msg.Msg.MsgPositionOrBuilder>
getEndPositionsOrBuilderList() {
if (endPositionsBuilder_ != null) {
return endPositionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(endPositions_);
}
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public milvus.proto.msg.Msg.MsgPosition.Builder addEndPositionsBuilder() {
return getEndPositionsFieldBuilder().addBuilder(
milvus.proto.msg.Msg.MsgPosition.getDefaultInstance());
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public milvus.proto.msg.Msg.MsgPosition.Builder addEndPositionsBuilder(
int index) {
return getEndPositionsFieldBuilder().addBuilder(
index, milvus.proto.msg.Msg.MsgPosition.getDefaultInstance());
}
/**
* repeated .milvus.proto.msg.MsgPosition EndPositions = 7;
*/
public java.util.List
getEndPositionsBuilderList() {
return getEndPositionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
milvus.proto.msg.Msg.MsgPosition, milvus.proto.msg.Msg.MsgPosition.Builder, milvus.proto.msg.Msg.MsgPositionOrBuilder>
getEndPositionsFieldBuilder() {
if (endPositionsBuilder_ == null) {
endPositionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
milvus.proto.msg.Msg.MsgPosition, milvus.proto.msg.Msg.MsgPosition.Builder, milvus.proto.msg.Msg.MsgPositionOrBuilder>(
endPositions_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
endPositions_ = null;
}
return endPositionsBuilder_;
}
@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.milvus.ReplicateMessageRequest)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.ReplicateMessageRequest)
private static final io.milvus.grpc.ReplicateMessageRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.ReplicateMessageRequest();
}
public static io.milvus.grpc.ReplicateMessageRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReplicateMessageRequest 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.ReplicateMessageRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}