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

io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/data/tap/v3alpha/transport.proto

package io.envoyproxy.envoy.data.tap.v3alpha;

/**
 * 
 * Sequence of read/write events that constitute a buffered trace on a socket.
 * 
* * Protobuf type {@code envoy.data.tap.v3alpha.SocketBufferedTrace} */ public final class SocketBufferedTrace extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.data.tap.v3alpha.SocketBufferedTrace) SocketBufferedTraceOrBuilder { private static final long serialVersionUID = 0L; // Use SocketBufferedTrace.newBuilder() to construct. private SocketBufferedTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SocketBufferedTrace() { events_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SocketBufferedTrace(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SocketBufferedTrace( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { traceId_ = input.readUInt64(); break; } case 18: { io.envoyproxy.envoy.data.tap.v3alpha.Connection.Builder subBuilder = null; if (connection_ != null) { subBuilder = connection_.toBuilder(); } connection_ = input.readMessage(io.envoyproxy.envoy.data.tap.v3alpha.Connection.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(connection_); connection_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } events_.add( input.readMessage(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.parser(), extensionRegistry)); break; } case 32: { readTruncated_ = input.readBool(); break; } case 40: { writeTruncated_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketBufferedTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketBufferedTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace.class, io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace.Builder.class); } public static final int TRACE_ID_FIELD_NUMBER = 1; private long traceId_; /** *
   * Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used
   * for long term stable uniqueness. Matches connection IDs used in Envoy logs.
   * 
* * uint64 trace_id = 1; */ public long getTraceId() { return traceId_; } public static final int CONNECTION_FIELD_NUMBER = 2; private io.envoyproxy.envoy.data.tap.v3alpha.Connection connection_; /** *
   * Connection properties.
   * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public boolean hasConnection() { return connection_ != null; } /** *
   * Connection properties.
   * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public io.envoyproxy.envoy.data.tap.v3alpha.Connection getConnection() { return connection_ == null ? io.envoyproxy.envoy.data.tap.v3alpha.Connection.getDefaultInstance() : connection_; } /** *
   * Connection properties.
   * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public io.envoyproxy.envoy.data.tap.v3alpha.ConnectionOrBuilder getConnectionOrBuilder() { return getConnection(); } public static final int EVENTS_FIELD_NUMBER = 3; private java.util.List events_; /** *
   * Sequence of observed events.
   * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public java.util.List getEventsList() { return events_; } /** *
   * Sequence of observed events.
   * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public java.util.List getEventsOrBuilderList() { return events_; } /** *
   * Sequence of observed events.
   * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public int getEventsCount() { return events_.size(); } /** *
   * Sequence of observed events.
   * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent getEvents(int index) { return events_.get(index); } /** *
   * Sequence of observed events.
   * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public io.envoyproxy.envoy.data.tap.v3alpha.SocketEventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } public static final int READ_TRUNCATED_FIELD_NUMBER = 4; private boolean readTruncated_; /** *
   * Set to true if read events were truncated due to the :ref:`max_buffered_rx_bytes
   * <envoy_api_field_service.tap.v3alpha.OutputConfig.max_buffered_rx_bytes>` setting.
   * 
* * bool read_truncated = 4; */ public boolean getReadTruncated() { return readTruncated_; } public static final int WRITE_TRUNCATED_FIELD_NUMBER = 5; private boolean writeTruncated_; /** *
   * Set to true if write events were truncated due to the :ref:`max_buffered_tx_bytes
   * <envoy_api_field_service.tap.v3alpha.OutputConfig.max_buffered_tx_bytes>` setting.
   * 
* * bool write_truncated = 5; */ public boolean getWriteTruncated() { return writeTruncated_; } 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 (traceId_ != 0L) { output.writeUInt64(1, traceId_); } if (connection_ != null) { output.writeMessage(2, getConnection()); } for (int i = 0; i < events_.size(); i++) { output.writeMessage(3, events_.get(i)); } if (readTruncated_ != false) { output.writeBool(4, readTruncated_); } if (writeTruncated_ != false) { output.writeBool(5, writeTruncated_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (traceId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, traceId_); } if (connection_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getConnection()); } for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, events_.get(i)); } if (readTruncated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, readTruncated_); } if (writeTruncated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, writeTruncated_); } size += unknownFields.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.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace)) { return super.equals(obj); } io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace other = (io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace) obj; if (getTraceId() != other.getTraceId()) return false; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { if (!getConnection() .equals(other.getConnection())) return false; } if (!getEventsList() .equals(other.getEventsList())) return false; if (getReadTruncated() != other.getReadTruncated()) return false; if (getWriteTruncated() != other.getWriteTruncated()) return false; if (!unknownFields.equals(other.unknownFields)) 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) + TRACE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTraceId()); if (hasConnection()) { hash = (37 * hash) + CONNECTION_FIELD_NUMBER; hash = (53 * hash) + getConnection().hashCode(); } if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } hash = (37 * hash) + READ_TRUNCATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReadTruncated()); hash = (37 * hash) + WRITE_TRUNCATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWriteTruncated()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace 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.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace 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.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace 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.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace 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; } /** *
   * Sequence of read/write events that constitute a buffered trace on a socket.
   * 
* * Protobuf type {@code envoy.data.tap.v3alpha.SocketBufferedTrace} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.data.tap.v3alpha.SocketBufferedTrace) io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTraceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketBufferedTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketBufferedTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace.class, io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace.Builder.class); } // Construct using io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEventsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); traceId_ = 0L; if (connectionBuilder_ == null) { connection_ = null; } else { connection_ = null; connectionBuilder_ = null; } if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { eventsBuilder_.clear(); } readTruncated_ = false; writeTruncated_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketBufferedTrace_descriptor; } @java.lang.Override public io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace getDefaultInstanceForType() { return io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace build() { io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace buildPartial() { io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace result = new io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace(this); int from_bitField0_ = bitField0_; result.traceId_ = traceId_; if (connectionBuilder_ == null) { result.connection_ = connection_; } else { result.connection_ = connectionBuilder_.build(); } if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000001); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } result.readTruncated_ = readTruncated_; result.writeTruncated_ = writeTruncated_; onBuilt(); return result; } @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.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace) { return mergeFrom((io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace other) { if (other == io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace.getDefaultInstance()) return this; if (other.getTraceId() != 0L) { setTraceId(other.getTraceId()); } if (other.hasConnection()) { mergeConnection(other.getConnection()); } if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } if (other.getReadTruncated() != false) { setReadTruncated(other.getReadTruncated()); } if (other.getWriteTruncated() != false) { setWriteTruncated(other.getWriteTruncated()); } this.mergeUnknownFields(other.unknownFields); 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 { io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long traceId_ ; /** *
     * Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used
     * for long term stable uniqueness. Matches connection IDs used in Envoy logs.
     * 
* * uint64 trace_id = 1; */ public long getTraceId() { return traceId_; } /** *
     * Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used
     * for long term stable uniqueness. Matches connection IDs used in Envoy logs.
     * 
* * uint64 trace_id = 1; */ public Builder setTraceId(long value) { traceId_ = value; onChanged(); return this; } /** *
     * Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used
     * for long term stable uniqueness. Matches connection IDs used in Envoy logs.
     * 
* * uint64 trace_id = 1; */ public Builder clearTraceId() { traceId_ = 0L; onChanged(); return this; } private io.envoyproxy.envoy.data.tap.v3alpha.Connection connection_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v3alpha.Connection, io.envoyproxy.envoy.data.tap.v3alpha.Connection.Builder, io.envoyproxy.envoy.data.tap.v3alpha.ConnectionOrBuilder> connectionBuilder_; /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public io.envoyproxy.envoy.data.tap.v3alpha.Connection getConnection() { if (connectionBuilder_ == null) { return connection_ == null ? io.envoyproxy.envoy.data.tap.v3alpha.Connection.getDefaultInstance() : connection_; } else { return connectionBuilder_.getMessage(); } } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public Builder setConnection(io.envoyproxy.envoy.data.tap.v3alpha.Connection value) { if (connectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } connection_ = value; onChanged(); } else { connectionBuilder_.setMessage(value); } return this; } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public Builder setConnection( io.envoyproxy.envoy.data.tap.v3alpha.Connection.Builder builderForValue) { if (connectionBuilder_ == null) { connection_ = builderForValue.build(); onChanged(); } else { connectionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public Builder mergeConnection(io.envoyproxy.envoy.data.tap.v3alpha.Connection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = io.envoyproxy.envoy.data.tap.v3alpha.Connection.newBuilder(connection_).mergeFrom(value).buildPartial(); } else { connection_ = value; } onChanged(); } else { connectionBuilder_.mergeFrom(value); } return this; } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public Builder clearConnection() { if (connectionBuilder_ == null) { connection_ = null; onChanged(); } else { connection_ = null; connectionBuilder_ = null; } return this; } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public io.envoyproxy.envoy.data.tap.v3alpha.Connection.Builder getConnectionBuilder() { onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ public io.envoyproxy.envoy.data.tap.v3alpha.ConnectionOrBuilder getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { return connection_ == null ? io.envoyproxy.envoy.data.tap.v3alpha.Connection.getDefaultInstance() : connection_; } } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v3alpha.Connection connection = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v3alpha.Connection, io.envoyproxy.envoy.data.tap.v3alpha.Connection.Builder, io.envoyproxy.envoy.data.tap.v3alpha.ConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v3alpha.Connection, io.envoyproxy.envoy.data.tap.v3alpha.Connection.Builder, io.envoyproxy.envoy.data.tap.v3alpha.ConnectionOrBuilder>( getConnection(), getParentForChildren(), isClean()); connection_ = null; } return connectionBuilder_; } private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEventOrBuilder> eventsBuilder_; /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { return java.util.Collections.unmodifiableList(events_); } else { return eventsBuilder_.getMessageList(); } } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public Builder setEvents( int index, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); onChanged(); } else { eventsBuilder_.setMessage(index, value); } return this; } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public Builder setEvents( int index, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public Builder addEvents(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); onChanged(); } else { eventsBuilder_.addMessage(value); } return this; } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public Builder addEvents( int index, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(index, value); onChanged(); } else { eventsBuilder_.addMessage(index, value); } return this; } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public Builder addEvents( io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public Builder addEvents( int index, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); } return this; } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.remove(index); onChanged(); } else { eventsBuilder_.remove(index); } return this; } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public io.envoyproxy.envoy.data.tap.v3alpha.SocketEventOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(events_); } } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder addEventsBuilder() { return getEventsFieldBuilder().addBuilder( io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.getDefaultInstance()); } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder addEventsBuilder( int index) { return getEventsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.getDefaultInstance()); } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v3alpha.SocketEvent events = 3; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEventOrBuilder>( events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } private boolean readTruncated_ ; /** *
     * Set to true if read events were truncated due to the :ref:`max_buffered_rx_bytes
     * <envoy_api_field_service.tap.v3alpha.OutputConfig.max_buffered_rx_bytes>` setting.
     * 
* * bool read_truncated = 4; */ public boolean getReadTruncated() { return readTruncated_; } /** *
     * Set to true if read events were truncated due to the :ref:`max_buffered_rx_bytes
     * <envoy_api_field_service.tap.v3alpha.OutputConfig.max_buffered_rx_bytes>` setting.
     * 
* * bool read_truncated = 4; */ public Builder setReadTruncated(boolean value) { readTruncated_ = value; onChanged(); return this; } /** *
     * Set to true if read events were truncated due to the :ref:`max_buffered_rx_bytes
     * <envoy_api_field_service.tap.v3alpha.OutputConfig.max_buffered_rx_bytes>` setting.
     * 
* * bool read_truncated = 4; */ public Builder clearReadTruncated() { readTruncated_ = false; onChanged(); return this; } private boolean writeTruncated_ ; /** *
     * Set to true if write events were truncated due to the :ref:`max_buffered_tx_bytes
     * <envoy_api_field_service.tap.v3alpha.OutputConfig.max_buffered_tx_bytes>` setting.
     * 
* * bool write_truncated = 5; */ public boolean getWriteTruncated() { return writeTruncated_; } /** *
     * Set to true if write events were truncated due to the :ref:`max_buffered_tx_bytes
     * <envoy_api_field_service.tap.v3alpha.OutputConfig.max_buffered_tx_bytes>` setting.
     * 
* * bool write_truncated = 5; */ public Builder setWriteTruncated(boolean value) { writeTruncated_ = value; onChanged(); return this; } /** *
     * Set to true if write events were truncated due to the :ref:`max_buffered_tx_bytes
     * <envoy_api_field_service.tap.v3alpha.OutputConfig.max_buffered_tx_bytes>` setting.
     * 
* * bool write_truncated = 5; */ public Builder clearWriteTruncated() { writeTruncated_ = 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:envoy.data.tap.v3alpha.SocketBufferedTrace) } // @@protoc_insertion_point(class_scope:envoy.data.tap.v3alpha.SocketBufferedTrace) private static final io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace(); } public static io.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SocketBufferedTrace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SocketBufferedTrace(input, extensionRegistry); } }; 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.envoyproxy.envoy.data.tap.v3alpha.SocketBufferedTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy