org.opensearch.migrations.trafficcapture.protos.TrafficStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of captureProtobufs Show documentation
Show all versions of captureProtobufs Show documentation
Everything opensearch migrations
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TrafficCaptureStream.proto
package org.opensearch.migrations.trafficcapture.protos;
/**
* Protobuf type {@code TrafficStream}
*/
public final class TrafficStream extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:TrafficStream)
TrafficStreamOrBuilder {
private static final long serialVersionUID = 0L;
// Use TrafficStream.newBuilder() to construct.
private TrafficStream(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TrafficStream() {
connectionId_ = "";
nodeId_ = "";
subStream_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TrafficStream();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opensearch.migrations.trafficcapture.protos.TrafficCapture.internal_static_TrafficStream_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opensearch.migrations.trafficcapture.protos.TrafficCapture.internal_static_TrafficStream_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opensearch.migrations.trafficcapture.protos.TrafficStream.class, org.opensearch.migrations.trafficcapture.protos.TrafficStream.Builder.class);
}
private int bitField0_;
private int indexCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object index_;
public enum IndexCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
NUMBER(3),
NUMBEROFTHISLASTCHUNK(4),
INDEX_NOT_SET(0);
private final int value;
private IndexCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IndexCase valueOf(int value) {
return forNumber(value);
}
public static IndexCase forNumber(int value) {
switch (value) {
case 3: return NUMBER;
case 4: return NUMBEROFTHISLASTCHUNK;
case 0: return INDEX_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public IndexCase
getIndexCase() {
return IndexCase.forNumber(
indexCase_);
}
public static final int CONNECTIONID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object connectionId_ = "";
/**
*
* persistent identifier for all stream objects within a single connection
*
*
* string connectionId = 1;
* @return The connectionId.
*/
@java.lang.Override
public java.lang.String getConnectionId() {
java.lang.Object ref = connectionId_;
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();
connectionId_ = s;
return s;
}
}
/**
*
* persistent identifier for all stream objects within a single connection
*
*
* string connectionId = 1;
* @return The bytes for connectionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConnectionIdBytes() {
java.lang.Object ref = connectionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
connectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NODEID_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object nodeId_ = "";
/**
*
* unique namespace such as a nodeId or computer mac address
*
*
* string nodeId = 5;
* @return The nodeId.
*/
@java.lang.Override
public java.lang.String getNodeId() {
java.lang.Object ref = nodeId_;
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();
nodeId_ = s;
return s;
}
}
/**
*
* unique namespace such as a nodeId or computer mac address
*
*
* string nodeId = 5;
* @return The bytes for nodeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNodeIdBytes() {
java.lang.Object ref = nodeId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRIORREQUESTSRECEIVED_FIELD_NUMBER = 6;
private int priorRequestsReceived_ = 0;
/**
* optional int32 priorRequestsReceived = 6;
* @return Whether the priorRequestsReceived field is set.
*/
@java.lang.Override
public boolean hasPriorRequestsReceived() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 priorRequestsReceived = 6;
* @return The priorRequestsReceived.
*/
@java.lang.Override
public int getPriorRequestsReceived() {
return priorRequestsReceived_;
}
public static final int LASTOBSERVATIONWASUNTERMINATEDREAD_FIELD_NUMBER = 7;
private boolean lastObservationWasUnterminatedRead_ = false;
/**
*
* there were previous Read observations encountered that
*
*
* optional bool lastObservationWasUnterminatedRead = 7;
* @return Whether the lastObservationWasUnterminatedRead field is set.
*/
@java.lang.Override
public boolean hasLastObservationWasUnterminatedRead() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* there were previous Read observations encountered that
*
*
* optional bool lastObservationWasUnterminatedRead = 7;
* @return The lastObservationWasUnterminatedRead.
*/
@java.lang.Override
public boolean getLastObservationWasUnterminatedRead() {
return lastObservationWasUnterminatedRead_;
}
public static final int SUBSTREAM_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List subStream_;
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
@java.lang.Override
public java.util.List getSubStreamList() {
return subStream_;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
@java.lang.Override
public java.util.List extends org.opensearch.migrations.trafficcapture.protos.TrafficObservationOrBuilder>
getSubStreamOrBuilderList() {
return subStream_;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
@java.lang.Override
public int getSubStreamCount() {
return subStream_.size();
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
@java.lang.Override
public org.opensearch.migrations.trafficcapture.protos.TrafficObservation getSubStream(int index) {
return subStream_.get(index);
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
@java.lang.Override
public org.opensearch.migrations.trafficcapture.protos.TrafficObservationOrBuilder getSubStreamOrBuilder(
int index) {
return subStream_.get(index);
}
public static final int NUMBER_FIELD_NUMBER = 3;
/**
* int32 number = 3;
* @return Whether the number field is set.
*/
@java.lang.Override
public boolean hasNumber() {
return indexCase_ == 3;
}
/**
* int32 number = 3;
* @return The number.
*/
@java.lang.Override
public int getNumber() {
if (indexCase_ == 3) {
return (java.lang.Integer) index_;
}
return 0;
}
public static final int NUMBEROFTHISLASTCHUNK_FIELD_NUMBER = 4;
/**
* int32 numberOfThisLastChunk = 4;
* @return Whether the numberOfThisLastChunk field is set.
*/
@java.lang.Override
public boolean hasNumberOfThisLastChunk() {
return indexCase_ == 4;
}
/**
* int32 numberOfThisLastChunk = 4;
* @return The numberOfThisLastChunk.
*/
@java.lang.Override
public int getNumberOfThisLastChunk() {
if (indexCase_ == 4) {
return (java.lang.Integer) index_;
}
return 0;
}
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(connectionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_);
}
for (int i = 0; i < subStream_.size(); i++) {
output.writeMessage(2, subStream_.get(i));
}
if (indexCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) index_));
}
if (indexCase_ == 4) {
output.writeInt32(
4, (int)((java.lang.Integer) index_));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(6, priorRequestsReceived_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(7, lastObservationWasUnterminatedRead_);
}
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(connectionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_);
}
for (int i = 0; i < subStream_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, subStream_.get(i));
}
if (indexCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) index_));
}
if (indexCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
4, (int)((java.lang.Integer) index_));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, priorRequestsReceived_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, lastObservationWasUnterminatedRead_);
}
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 org.opensearch.migrations.trafficcapture.protos.TrafficStream)) {
return super.equals(obj);
}
org.opensearch.migrations.trafficcapture.protos.TrafficStream other = (org.opensearch.migrations.trafficcapture.protos.TrafficStream) obj;
if (!getConnectionId()
.equals(other.getConnectionId())) return false;
if (!getNodeId()
.equals(other.getNodeId())) return false;
if (hasPriorRequestsReceived() != other.hasPriorRequestsReceived()) return false;
if (hasPriorRequestsReceived()) {
if (getPriorRequestsReceived()
!= other.getPriorRequestsReceived()) return false;
}
if (hasLastObservationWasUnterminatedRead() != other.hasLastObservationWasUnterminatedRead()) return false;
if (hasLastObservationWasUnterminatedRead()) {
if (getLastObservationWasUnterminatedRead()
!= other.getLastObservationWasUnterminatedRead()) return false;
}
if (!getSubStreamList()
.equals(other.getSubStreamList())) return false;
if (!getIndexCase().equals(other.getIndexCase())) return false;
switch (indexCase_) {
case 3:
if (getNumber()
!= other.getNumber()) return false;
break;
case 4:
if (getNumberOfThisLastChunk()
!= other.getNumberOfThisLastChunk()) return false;
break;
case 0:
default:
}
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) + CONNECTIONID_FIELD_NUMBER;
hash = (53 * hash) + getConnectionId().hashCode();
hash = (37 * hash) + NODEID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId().hashCode();
if (hasPriorRequestsReceived()) {
hash = (37 * hash) + PRIORREQUESTSRECEIVED_FIELD_NUMBER;
hash = (53 * hash) + getPriorRequestsReceived();
}
if (hasLastObservationWasUnterminatedRead()) {
hash = (37 * hash) + LASTOBSERVATIONWASUNTERMINATEDREAD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLastObservationWasUnterminatedRead());
}
if (getSubStreamCount() > 0) {
hash = (37 * hash) + SUBSTREAM_FIELD_NUMBER;
hash = (53 * hash) + getSubStreamList().hashCode();
}
switch (indexCase_) {
case 3:
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNumber();
break;
case 4:
hash = (37 * hash) + NUMBEROFTHISLASTCHUNK_FIELD_NUMBER;
hash = (53 * hash) + getNumberOfThisLastChunk();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream 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 org.opensearch.migrations.trafficcapture.protos.TrafficStream parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream 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 org.opensearch.migrations.trafficcapture.protos.TrafficStream parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream 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(org.opensearch.migrations.trafficcapture.protos.TrafficStream 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 TrafficStream}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:TrafficStream)
org.opensearch.migrations.trafficcapture.protos.TrafficStreamOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opensearch.migrations.trafficcapture.protos.TrafficCapture.internal_static_TrafficStream_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opensearch.migrations.trafficcapture.protos.TrafficCapture.internal_static_TrafficStream_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opensearch.migrations.trafficcapture.protos.TrafficStream.class, org.opensearch.migrations.trafficcapture.protos.TrafficStream.Builder.class);
}
// Construct using org.opensearch.migrations.trafficcapture.protos.TrafficStream.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
connectionId_ = "";
nodeId_ = "";
priorRequestsReceived_ = 0;
lastObservationWasUnterminatedRead_ = false;
if (subStreamBuilder_ == null) {
subStream_ = java.util.Collections.emptyList();
} else {
subStream_ = null;
subStreamBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
indexCase_ = 0;
index_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.opensearch.migrations.trafficcapture.protos.TrafficCapture.internal_static_TrafficStream_descriptor;
}
@java.lang.Override
public org.opensearch.migrations.trafficcapture.protos.TrafficStream getDefaultInstanceForType() {
return org.opensearch.migrations.trafficcapture.protos.TrafficStream.getDefaultInstance();
}
@java.lang.Override
public org.opensearch.migrations.trafficcapture.protos.TrafficStream build() {
org.opensearch.migrations.trafficcapture.protos.TrafficStream result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.opensearch.migrations.trafficcapture.protos.TrafficStream buildPartial() {
org.opensearch.migrations.trafficcapture.protos.TrafficStream result = new org.opensearch.migrations.trafficcapture.protos.TrafficStream(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.opensearch.migrations.trafficcapture.protos.TrafficStream result) {
if (subStreamBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
subStream_ = java.util.Collections.unmodifiableList(subStream_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.subStream_ = subStream_;
} else {
result.subStream_ = subStreamBuilder_.build();
}
}
private void buildPartial0(org.opensearch.migrations.trafficcapture.protos.TrafficStream result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.connectionId_ = connectionId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.nodeId_ = nodeId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.priorRequestsReceived_ = priorRequestsReceived_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.lastObservationWasUnterminatedRead_ = lastObservationWasUnterminatedRead_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(org.opensearch.migrations.trafficcapture.protos.TrafficStream result) {
result.indexCase_ = indexCase_;
result.index_ = this.index_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.opensearch.migrations.trafficcapture.protos.TrafficStream) {
return mergeFrom((org.opensearch.migrations.trafficcapture.protos.TrafficStream)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.opensearch.migrations.trafficcapture.protos.TrafficStream other) {
if (other == org.opensearch.migrations.trafficcapture.protos.TrafficStream.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getNodeId().isEmpty()) {
nodeId_ = other.nodeId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasPriorRequestsReceived()) {
setPriorRequestsReceived(other.getPriorRequestsReceived());
}
if (other.hasLastObservationWasUnterminatedRead()) {
setLastObservationWasUnterminatedRead(other.getLastObservationWasUnterminatedRead());
}
if (subStreamBuilder_ == null) {
if (!other.subStream_.isEmpty()) {
if (subStream_.isEmpty()) {
subStream_ = other.subStream_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureSubStreamIsMutable();
subStream_.addAll(other.subStream_);
}
onChanged();
}
} else {
if (!other.subStream_.isEmpty()) {
if (subStreamBuilder_.isEmpty()) {
subStreamBuilder_.dispose();
subStreamBuilder_ = null;
subStream_ = other.subStream_;
bitField0_ = (bitField0_ & ~0x00000010);
subStreamBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSubStreamFieldBuilder() : null;
} else {
subStreamBuilder_.addAllMessages(other.subStream_);
}
}
}
switch (other.getIndexCase()) {
case NUMBER: {
setNumber(other.getNumber());
break;
}
case NUMBEROFTHISLASTCHUNK: {
setNumberOfThisLastChunk(other.getNumberOfThisLastChunk());
break;
}
case INDEX_NOT_SET: {
break;
}
}
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: {
connectionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
org.opensearch.migrations.trafficcapture.protos.TrafficObservation m =
input.readMessage(
org.opensearch.migrations.trafficcapture.protos.TrafficObservation.parser(),
extensionRegistry);
if (subStreamBuilder_ == null) {
ensureSubStreamIsMutable();
subStream_.add(m);
} else {
subStreamBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
index_ = input.readInt32();
indexCase_ = 3;
break;
} // case 24
case 32: {
index_ = input.readInt32();
indexCase_ = 4;
break;
} // case 32
case 42: {
nodeId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 42
case 48: {
priorRequestsReceived_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 48
case 56: {
lastObservationWasUnterminatedRead_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 56
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 indexCase_ = 0;
private java.lang.Object index_;
public IndexCase
getIndexCase() {
return IndexCase.forNumber(
indexCase_);
}
public Builder clearIndex() {
indexCase_ = 0;
index_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object connectionId_ = "";
/**
*
* persistent identifier for all stream objects within a single connection
*
*
* string connectionId = 1;
* @return The connectionId.
*/
public java.lang.String getConnectionId() {
java.lang.Object ref = connectionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
connectionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* persistent identifier for all stream objects within a single connection
*
*
* string connectionId = 1;
* @return The bytes for connectionId.
*/
public com.google.protobuf.ByteString
getConnectionIdBytes() {
java.lang.Object ref = connectionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
connectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* persistent identifier for all stream objects within a single connection
*
*
* string connectionId = 1;
* @param value The connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
connectionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* persistent identifier for all stream objects within a single connection
*
*
* string connectionId = 1;
* @return This builder for chaining.
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* persistent identifier for all stream objects within a single connection
*
*
* string connectionId = 1;
* @param value The bytes for connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
connectionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object nodeId_ = "";
/**
*
* unique namespace such as a nodeId or computer mac address
*
*
* string nodeId = 5;
* @return The nodeId.
*/
public java.lang.String getNodeId() {
java.lang.Object ref = nodeId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nodeId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* unique namespace such as a nodeId or computer mac address
*
*
* string nodeId = 5;
* @return The bytes for nodeId.
*/
public com.google.protobuf.ByteString
getNodeIdBytes() {
java.lang.Object ref = nodeId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* unique namespace such as a nodeId or computer mac address
*
*
* string nodeId = 5;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nodeId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* unique namespace such as a nodeId or computer mac address
*
*
* string nodeId = 5;
* @return This builder for chaining.
*/
public Builder clearNodeId() {
nodeId_ = getDefaultInstance().getNodeId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* unique namespace such as a nodeId or computer mac address
*
*
* string nodeId = 5;
* @param value The bytes for nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nodeId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int priorRequestsReceived_ ;
/**
* optional int32 priorRequestsReceived = 6;
* @return Whether the priorRequestsReceived field is set.
*/
@java.lang.Override
public boolean hasPriorRequestsReceived() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 priorRequestsReceived = 6;
* @return The priorRequestsReceived.
*/
@java.lang.Override
public int getPriorRequestsReceived() {
return priorRequestsReceived_;
}
/**
* optional int32 priorRequestsReceived = 6;
* @param value The priorRequestsReceived to set.
* @return This builder for chaining.
*/
public Builder setPriorRequestsReceived(int value) {
priorRequestsReceived_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional int32 priorRequestsReceived = 6;
* @return This builder for chaining.
*/
public Builder clearPriorRequestsReceived() {
bitField0_ = (bitField0_ & ~0x00000004);
priorRequestsReceived_ = 0;
onChanged();
return this;
}
private boolean lastObservationWasUnterminatedRead_ ;
/**
*
* there were previous Read observations encountered that
*
*
* optional bool lastObservationWasUnterminatedRead = 7;
* @return Whether the lastObservationWasUnterminatedRead field is set.
*/
@java.lang.Override
public boolean hasLastObservationWasUnterminatedRead() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* there were previous Read observations encountered that
*
*
* optional bool lastObservationWasUnterminatedRead = 7;
* @return The lastObservationWasUnterminatedRead.
*/
@java.lang.Override
public boolean getLastObservationWasUnterminatedRead() {
return lastObservationWasUnterminatedRead_;
}
/**
*
* there were previous Read observations encountered that
*
*
* optional bool lastObservationWasUnterminatedRead = 7;
* @param value The lastObservationWasUnterminatedRead to set.
* @return This builder for chaining.
*/
public Builder setLastObservationWasUnterminatedRead(boolean value) {
lastObservationWasUnterminatedRead_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* there were previous Read observations encountered that
*
*
* optional bool lastObservationWasUnterminatedRead = 7;
* @return This builder for chaining.
*/
public Builder clearLastObservationWasUnterminatedRead() {
bitField0_ = (bitField0_ & ~0x00000008);
lastObservationWasUnterminatedRead_ = false;
onChanged();
return this;
}
private java.util.List subStream_ =
java.util.Collections.emptyList();
private void ensureSubStreamIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
subStream_ = new java.util.ArrayList(subStream_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.opensearch.migrations.trafficcapture.protos.TrafficObservation, org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder, org.opensearch.migrations.trafficcapture.protos.TrafficObservationOrBuilder> subStreamBuilder_;
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public java.util.List getSubStreamList() {
if (subStreamBuilder_ == null) {
return java.util.Collections.unmodifiableList(subStream_);
} else {
return subStreamBuilder_.getMessageList();
}
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public int getSubStreamCount() {
if (subStreamBuilder_ == null) {
return subStream_.size();
} else {
return subStreamBuilder_.getCount();
}
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public org.opensearch.migrations.trafficcapture.protos.TrafficObservation getSubStream(int index) {
if (subStreamBuilder_ == null) {
return subStream_.get(index);
} else {
return subStreamBuilder_.getMessage(index);
}
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public Builder setSubStream(
int index, org.opensearch.migrations.trafficcapture.protos.TrafficObservation value) {
if (subStreamBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubStreamIsMutable();
subStream_.set(index, value);
onChanged();
} else {
subStreamBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public Builder setSubStream(
int index, org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder builderForValue) {
if (subStreamBuilder_ == null) {
ensureSubStreamIsMutable();
subStream_.set(index, builderForValue.build());
onChanged();
} else {
subStreamBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public Builder addSubStream(org.opensearch.migrations.trafficcapture.protos.TrafficObservation value) {
if (subStreamBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubStreamIsMutable();
subStream_.add(value);
onChanged();
} else {
subStreamBuilder_.addMessage(value);
}
return this;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public Builder addSubStream(
int index, org.opensearch.migrations.trafficcapture.protos.TrafficObservation value) {
if (subStreamBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubStreamIsMutable();
subStream_.add(index, value);
onChanged();
} else {
subStreamBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public Builder addSubStream(
org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder builderForValue) {
if (subStreamBuilder_ == null) {
ensureSubStreamIsMutable();
subStream_.add(builderForValue.build());
onChanged();
} else {
subStreamBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public Builder addSubStream(
int index, org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder builderForValue) {
if (subStreamBuilder_ == null) {
ensureSubStreamIsMutable();
subStream_.add(index, builderForValue.build());
onChanged();
} else {
subStreamBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public Builder addAllSubStream(
java.lang.Iterable extends org.opensearch.migrations.trafficcapture.protos.TrafficObservation> values) {
if (subStreamBuilder_ == null) {
ensureSubStreamIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, subStream_);
onChanged();
} else {
subStreamBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public Builder clearSubStream() {
if (subStreamBuilder_ == null) {
subStream_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
subStreamBuilder_.clear();
}
return this;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public Builder removeSubStream(int index) {
if (subStreamBuilder_ == null) {
ensureSubStreamIsMutable();
subStream_.remove(index);
onChanged();
} else {
subStreamBuilder_.remove(index);
}
return this;
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder getSubStreamBuilder(
int index) {
return getSubStreamFieldBuilder().getBuilder(index);
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public org.opensearch.migrations.trafficcapture.protos.TrafficObservationOrBuilder getSubStreamOrBuilder(
int index) {
if (subStreamBuilder_ == null) {
return subStream_.get(index); } else {
return subStreamBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public java.util.List extends org.opensearch.migrations.trafficcapture.protos.TrafficObservationOrBuilder>
getSubStreamOrBuilderList() {
if (subStreamBuilder_ != null) {
return subStreamBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(subStream_);
}
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder addSubStreamBuilder() {
return getSubStreamFieldBuilder().addBuilder(
org.opensearch.migrations.trafficcapture.protos.TrafficObservation.getDefaultInstance());
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder addSubStreamBuilder(
int index) {
return getSubStreamFieldBuilder().addBuilder(
index, org.opensearch.migrations.trafficcapture.protos.TrafficObservation.getDefaultInstance());
}
/**
*
* have yet to have EOM observations after them
*
*
* repeated .TrafficObservation subStream = 2;
*/
public java.util.List
getSubStreamBuilderList() {
return getSubStreamFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.opensearch.migrations.trafficcapture.protos.TrafficObservation, org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder, org.opensearch.migrations.trafficcapture.protos.TrafficObservationOrBuilder>
getSubStreamFieldBuilder() {
if (subStreamBuilder_ == null) {
subStreamBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.opensearch.migrations.trafficcapture.protos.TrafficObservation, org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder, org.opensearch.migrations.trafficcapture.protos.TrafficObservationOrBuilder>(
subStream_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
subStream_ = null;
}
return subStreamBuilder_;
}
/**
* int32 number = 3;
* @return Whether the number field is set.
*/
public boolean hasNumber() {
return indexCase_ == 3;
}
/**
* int32 number = 3;
* @return The number.
*/
public int getNumber() {
if (indexCase_ == 3) {
return (java.lang.Integer) index_;
}
return 0;
}
/**
* int32 number = 3;
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(int value) {
indexCase_ = 3;
index_ = value;
onChanged();
return this;
}
/**
* int32 number = 3;
* @return This builder for chaining.
*/
public Builder clearNumber() {
if (indexCase_ == 3) {
indexCase_ = 0;
index_ = null;
onChanged();
}
return this;
}
/**
* int32 numberOfThisLastChunk = 4;
* @return Whether the numberOfThisLastChunk field is set.
*/
public boolean hasNumberOfThisLastChunk() {
return indexCase_ == 4;
}
/**
* int32 numberOfThisLastChunk = 4;
* @return The numberOfThisLastChunk.
*/
public int getNumberOfThisLastChunk() {
if (indexCase_ == 4) {
return (java.lang.Integer) index_;
}
return 0;
}
/**
* int32 numberOfThisLastChunk = 4;
* @param value The numberOfThisLastChunk to set.
* @return This builder for chaining.
*/
public Builder setNumberOfThisLastChunk(int value) {
indexCase_ = 4;
index_ = value;
onChanged();
return this;
}
/**
* int32 numberOfThisLastChunk = 4;
* @return This builder for chaining.
*/
public Builder clearNumberOfThisLastChunk() {
if (indexCase_ == 4) {
indexCase_ = 0;
index_ = null;
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:TrafficStream)
}
// @@protoc_insertion_point(class_scope:TrafficStream)
private static final org.opensearch.migrations.trafficcapture.protos.TrafficStream DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.opensearch.migrations.trafficcapture.protos.TrafficStream();
}
public static org.opensearch.migrations.trafficcapture.protos.TrafficStream getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TrafficStream 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 org.opensearch.migrations.trafficcapture.protos.TrafficStream getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}