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

io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace Maven / Gradle / Ivy

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

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

/**
 * 
 * Sequence of read/write events that constitute a trace on a socket.
 * Multiple Trace messages might be emitted for a given connection ID, with the
 * sink (e.g. file set, network) responsible for later reassembly.
 * 
* * Protobuf type {@code envoy.data.tap.v2alpha.SocketTrace} */ public final class SocketTrace extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.data.tap.v2alpha.SocketTrace) SocketTraceOrBuilder { private static final long serialVersionUID = 0L; // Use SocketTrace.newBuilder() to construct. private SocketTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SocketTrace() { events_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SocketTrace( 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { io.envoyproxy.envoy.data.tap.v2alpha.Connection.Builder subBuilder = null; if (connection_ != null) { subBuilder = connection_.toBuilder(); } connection_ = input.readMessage(io.envoyproxy.envoy.data.tap.v2alpha.Connection.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(connection_); connection_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { events_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } events_.add( input.readMessage(io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent.parser(), extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { 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.v2alpha.TransportProto.internal_static_envoy_data_tap_v2alpha_SocketTrace_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.data.tap.v2alpha.TransportProto.internal_static_envoy_data_tap_v2alpha_SocketTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace.class, io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace.Builder.class); } private int bitField0_; public static final int CONNECTION_FIELD_NUMBER = 1; private io.envoyproxy.envoy.data.tap.v2alpha.Connection connection_; /** *
   * Connection properties.
   * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ public boolean hasConnection() { return connection_ != null; } /** *
   * Connection properties.
   * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ public io.envoyproxy.envoy.data.tap.v2alpha.Connection getConnection() { return connection_ == null ? io.envoyproxy.envoy.data.tap.v2alpha.Connection.getDefaultInstance() : connection_; } /** *
   * Connection properties.
   * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ public io.envoyproxy.envoy.data.tap.v2alpha.ConnectionOrBuilder getConnectionOrBuilder() { return getConnection(); } public static final int EVENTS_FIELD_NUMBER = 2; private java.util.List events_; /** *
   * Sequence of observed events.
   * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ public java.util.List getEventsList() { return events_; } /** *
   * Sequence of observed events.
   * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ public java.util.List getEventsOrBuilderList() { return events_; } /** *
   * Sequence of observed events.
   * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ public int getEventsCount() { return events_.size(); } /** *
   * Sequence of observed events.
   * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ public io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent getEvents(int index) { return events_.get(index); } /** *
   * Sequence of observed events.
   * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ public io.envoyproxy.envoy.data.tap.v2alpha.SocketEventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (connection_ != null) { output.writeMessage(1, getConnection()); } for (int i = 0; i < events_.size(); i++) { output.writeMessage(2, events_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (connection_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConnection()); } for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, events_.get(i)); } 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.v2alpha.SocketTrace)) { return super.equals(obj); } io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace other = (io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace) obj; boolean result = true; result = result && (hasConnection() == other.hasConnection()); if (hasConnection()) { result = result && getConnection() .equals(other.getConnection()); } result = result && getEventsList() .equals(other.getEventsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace 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.v2alpha.SocketTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace 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.v2alpha.SocketTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace 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.v2alpha.SocketTrace parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace 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.v2alpha.SocketTrace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace 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.v2alpha.SocketTrace 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.v2alpha.SocketTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 trace on a socket.
   * Multiple Trace messages might be emitted for a given connection ID, with the
   * sink (e.g. file set, network) responsible for later reassembly.
   * 
* * Protobuf type {@code envoy.data.tap.v2alpha.SocketTrace} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.data.tap.v2alpha.SocketTrace) io.envoyproxy.envoy.data.tap.v2alpha.SocketTraceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.data.tap.v2alpha.TransportProto.internal_static_envoy_data_tap_v2alpha_SocketTrace_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.data.tap.v2alpha.TransportProto.internal_static_envoy_data_tap_v2alpha_SocketTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace.class, io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace.Builder.class); } // Construct using io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace.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(); } } public Builder clear() { super.clear(); if (connectionBuilder_ == null) { connection_ = null; } else { connection_ = null; connectionBuilder_ = null; } if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { eventsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.data.tap.v2alpha.TransportProto.internal_static_envoy_data_tap_v2alpha_SocketTrace_descriptor; } public io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace getDefaultInstanceForType() { return io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace.getDefaultInstance(); } public io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace build() { io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace buildPartial() { io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace result = new io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (connectionBuilder_ == null) { result.connection_ = connection_; } else { result.connection_ = connectionBuilder_.build(); } if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000002); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace) { return mergeFrom((io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace other) { if (other == io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace.getDefaultInstance()) return this; if (other.hasConnection()) { mergeConnection(other.getConnection()); } if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000002); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.envoyproxy.envoy.data.tap.v2alpha.Connection connection_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.Connection, io.envoyproxy.envoy.data.tap.v2alpha.Connection.Builder, io.envoyproxy.envoy.data.tap.v2alpha.ConnectionOrBuilder> connectionBuilder_; /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ public io.envoyproxy.envoy.data.tap.v2alpha.Connection getConnection() { if (connectionBuilder_ == null) { return connection_ == null ? io.envoyproxy.envoy.data.tap.v2alpha.Connection.getDefaultInstance() : connection_; } else { return connectionBuilder_.getMessage(); } } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ public Builder setConnection(io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.Connection connection = 1; */ public Builder setConnection( io.envoyproxy.envoy.data.tap.v2alpha.Connection.Builder builderForValue) { if (connectionBuilder_ == null) { connection_ = builderForValue.build(); onChanged(); } else { connectionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ public Builder mergeConnection(io.envoyproxy.envoy.data.tap.v2alpha.Connection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = io.envoyproxy.envoy.data.tap.v2alpha.Connection.newBuilder(connection_).mergeFrom(value).buildPartial(); } else { connection_ = value; } onChanged(); } else { connectionBuilder_.mergeFrom(value); } return this; } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ public Builder clearConnection() { if (connectionBuilder_ == null) { connection_ = null; onChanged(); } else { connection_ = null; connectionBuilder_ = null; } return this; } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ public io.envoyproxy.envoy.data.tap.v2alpha.Connection.Builder getConnectionBuilder() { onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ public io.envoyproxy.envoy.data.tap.v2alpha.ConnectionOrBuilder getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { return connection_ == null ? io.envoyproxy.envoy.data.tap.v2alpha.Connection.getDefaultInstance() : connection_; } } /** *
     * Connection properties.
     * 
* * .envoy.data.tap.v2alpha.Connection connection = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.Connection, io.envoyproxy.envoy.data.tap.v2alpha.Connection.Builder, io.envoyproxy.envoy.data.tap.v2alpha.ConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.Connection, io.envoyproxy.envoy.data.tap.v2alpha.Connection.Builder, io.envoyproxy.envoy.data.tap.v2alpha.ConnectionOrBuilder>( getConnection(), getParentForChildren(), isClean()); connection_ = null; } return connectionBuilder_; } private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent, io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent.Builder, io.envoyproxy.envoy.data.tap.v2alpha.SocketEventOrBuilder> eventsBuilder_; /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ 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.v2alpha.SocketEvent events = 2; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ public io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ public Builder setEvents( int index, io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.SocketEvent events = 2; */ public Builder setEvents( int index, io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.SocketEvent events = 2; */ public Builder addEvents(io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.SocketEvent events = 2; */ public Builder addEvents( int index, io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.SocketEvent events = 2; */ public Builder addEvents( io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.SocketEvent events = 2; */ public Builder addEvents( int index, io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.SocketEvent events = 2; */ 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.v2alpha.SocketEvent events = 2; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ 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.v2alpha.SocketEvent events = 2; */ public io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ public io.envoyproxy.envoy.data.tap.v2alpha.SocketEventOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ 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.v2alpha.SocketEvent events = 2; */ public io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent.Builder addEventsBuilder() { return getEventsFieldBuilder().addBuilder( io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent.getDefaultInstance()); } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ public io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent.Builder addEventsBuilder( int index) { return getEventsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent.getDefaultInstance()); } /** *
     * Sequence of observed events.
     * 
* * repeated .envoy.data.tap.v2alpha.SocketEvent events = 2; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent, io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent.Builder, io.envoyproxy.envoy.data.tap.v2alpha.SocketEventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent, io.envoyproxy.envoy.data.tap.v2alpha.SocketEvent.Builder, io.envoyproxy.envoy.data.tap.v2alpha.SocketEventOrBuilder>( events_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.data.tap.v2alpha.SocketTrace) } // @@protoc_insertion_point(class_scope:envoy.data.tap.v2alpha.SocketTrace) private static final io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace(); } public static io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SocketTrace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SocketTrace(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public io.envoyproxy.envoy.data.tap.v2alpha.SocketTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy