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

io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest 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/service/tap/v2alpha/tap.proto

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

/**
 * 
 * [#not-implemented-hide:] Stream message for the Tap API. Envoy will open a stream to the server
 * and stream taps without ever expecting a response.
 * 
* * Protobuf type {@code envoy.service.tap.v2alpha.StreamTapsRequest} */ public final class StreamTapsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.tap.v2alpha.StreamTapsRequest) StreamTapsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use StreamTapsRequest.newBuilder() to construct. private StreamTapsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamTapsRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamTapsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreamTapsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10: { io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.Builder subBuilder = null; if (identifier_ != null) { subBuilder = identifier_.toBuilder(); } identifier_ = input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(identifier_); identifier_ = subBuilder.buildPartial(); } break; } case 16: { traceId_ = input.readUInt64(); break; } case 26: { io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.Builder subBuilder = null; if (trace_ != null) { subBuilder = trace_.toBuilder(); } trace_ = input.readMessage(io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(trace_); trace_ = subBuilder.buildPartial(); } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.tap.v2alpha.TapProto.internal_static_envoy_service_tap_v2alpha_StreamTapsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.tap.v2alpha.TapProto.internal_static_envoy_service_tap_v2alpha_StreamTapsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.class, io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Builder.class); } public interface IdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.service.tap.v2alpha.StreamTapsRequest.Identifier) com.google.protobuf.MessageOrBuilder { /** *
     * The node sending taps over the stream.
     * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ boolean hasNode(); /** *
     * The node sending taps over the stream.
     * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.api.v2.core.Node getNode(); /** *
     * The node sending taps over the stream.
     * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder(); /** *
     * The opaque identifier that was set in the :ref:`output config
     * <envoy_api_field_service.tap.v2alpha.StreamingGrpcSink.tap_id>`.
     * 
* * string tap_id = 2; */ java.lang.String getTapId(); /** *
     * The opaque identifier that was set in the :ref:`output config
     * <envoy_api_field_service.tap.v2alpha.StreamingGrpcSink.tap_id>`.
     * 
* * string tap_id = 2; */ com.google.protobuf.ByteString getTapIdBytes(); } /** * Protobuf type {@code envoy.service.tap.v2alpha.StreamTapsRequest.Identifier} */ public static final class Identifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.tap.v2alpha.StreamTapsRequest.Identifier) IdentifierOrBuilder { private static final long serialVersionUID = 0L; // Use Identifier.newBuilder() to construct. private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Identifier() { tapId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Identifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Identifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 10: { io.envoyproxy.envoy.api.v2.core.Node.Builder subBuilder = null; if (node_ != null) { subBuilder = node_.toBuilder(); } node_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.Node.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(node_); node_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tapId_ = s; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.tap.v2alpha.TapProto.internal_static_envoy_service_tap_v2alpha_StreamTapsRequest_Identifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.tap.v2alpha.TapProto.internal_static_envoy_service_tap_v2alpha_StreamTapsRequest_Identifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.class, io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.Builder.class); } public static final int NODE_FIELD_NUMBER = 1; private io.envoyproxy.envoy.api.v2.core.Node node_; /** *
     * The node sending taps over the stream.
     * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public boolean hasNode() { return node_ != null; } /** *
     * The node sending taps over the stream.
     * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v2.core.Node getNode() { return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_; } /** *
     * The node sending taps over the stream.
     * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder() { return getNode(); } public static final int TAP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object tapId_; /** *
     * The opaque identifier that was set in the :ref:`output config
     * <envoy_api_field_service.tap.v2alpha.StreamingGrpcSink.tap_id>`.
     * 
* * string tap_id = 2; */ public java.lang.String getTapId() { java.lang.Object ref = tapId_; 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(); tapId_ = s; return s; } } /** *
     * The opaque identifier that was set in the :ref:`output config
     * <envoy_api_field_service.tap.v2alpha.StreamingGrpcSink.tap_id>`.
     * 
* * string tap_id = 2; */ public com.google.protobuf.ByteString getTapIdBytes() { java.lang.Object ref = tapId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tapId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (node_ != null) { output.writeMessage(1, getNode()); } if (!getTapIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tapId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (node_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNode()); } if (!getTapIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tapId_); } 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.service.tap.v2alpha.StreamTapsRequest.Identifier)) { return super.equals(obj); } io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier other = (io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier) obj; if (hasNode() != other.hasNode()) return false; if (hasNode()) { if (!getNode() .equals(other.getNode())) return false; } if (!getTapId() .equals(other.getTapId())) 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(); if (hasNode()) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNode().hashCode(); } hash = (37 * hash) + TAP_ID_FIELD_NUMBER; hash = (53 * hash) + getTapId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier 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.service.tap.v2alpha.StreamTapsRequest.Identifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier 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.service.tap.v2alpha.StreamTapsRequest.Identifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier 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.service.tap.v2alpha.StreamTapsRequest.Identifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier 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.service.tap.v2alpha.StreamTapsRequest.Identifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier 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.service.tap.v2alpha.StreamTapsRequest.Identifier 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 envoy.service.tap.v2alpha.StreamTapsRequest.Identifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.tap.v2alpha.StreamTapsRequest.Identifier) io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.IdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.tap.v2alpha.TapProto.internal_static_envoy_service_tap_v2alpha_StreamTapsRequest_Identifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.tap.v2alpha.TapProto.internal_static_envoy_service_tap_v2alpha_StreamTapsRequest_Identifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.class, io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.Builder.class); } // Construct using io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (nodeBuilder_ == null) { node_ = null; } else { node_ = null; nodeBuilder_ = null; } tapId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.tap.v2alpha.TapProto.internal_static_envoy_service_tap_v2alpha_StreamTapsRequest_Identifier_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier getDefaultInstanceForType() { return io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier build() { io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier buildPartial() { io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier result = new io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier(this); if (nodeBuilder_ == null) { result.node_ = node_; } else { result.node_ = nodeBuilder_.build(); } result.tapId_ = tapId_; 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.service.tap.v2alpha.StreamTapsRequest.Identifier) { return mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier other) { if (other == io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.getDefaultInstance()) return this; if (other.hasNode()) { mergeNode(other.getNode()); } if (!other.getTapId().isEmpty()) { tapId_ = other.tapId_; onChanged(); } 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.service.tap.v2alpha.StreamTapsRequest.Identifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.api.v2.core.Node node_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder> nodeBuilder_; /** *
       * The node sending taps over the stream.
       * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** *
       * The node sending taps over the stream.
       * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v2.core.Node getNode() { if (nodeBuilder_ == null) { return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_; } else { return nodeBuilder_.getMessage(); } } /** *
       * The node sending taps over the stream.
       * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public Builder setNode(io.envoyproxy.envoy.api.v2.core.Node value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } node_ = value; onChanged(); } else { nodeBuilder_.setMessage(value); } return this; } /** *
       * The node sending taps over the stream.
       * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public Builder setNode( io.envoyproxy.envoy.api.v2.core.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); } else { nodeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The node sending taps over the stream.
       * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public Builder mergeNode(io.envoyproxy.envoy.api.v2.core.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { node_ = io.envoyproxy.envoy.api.v2.core.Node.newBuilder(node_).mergeFrom(value).buildPartial(); } else { node_ = value; } onChanged(); } else { nodeBuilder_.mergeFrom(value); } return this; } /** *
       * The node sending taps over the stream.
       * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public Builder clearNode() { if (nodeBuilder_ == null) { node_ = null; onChanged(); } else { node_ = null; nodeBuilder_ = null; } return this; } /** *
       * The node sending taps over the stream.
       * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v2.core.Node.Builder getNodeBuilder() { onChanged(); return getNodeFieldBuilder().getBuilder(); } /** *
       * The node sending taps over the stream.
       * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_; } } /** *
       * The node sending taps over the stream.
       * 
* * .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder>( getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } private java.lang.Object tapId_ = ""; /** *
       * The opaque identifier that was set in the :ref:`output config
       * <envoy_api_field_service.tap.v2alpha.StreamingGrpcSink.tap_id>`.
       * 
* * string tap_id = 2; */ public java.lang.String getTapId() { java.lang.Object ref = tapId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tapId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The opaque identifier that was set in the :ref:`output config
       * <envoy_api_field_service.tap.v2alpha.StreamingGrpcSink.tap_id>`.
       * 
* * string tap_id = 2; */ public com.google.protobuf.ByteString getTapIdBytes() { java.lang.Object ref = tapId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tapId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The opaque identifier that was set in the :ref:`output config
       * <envoy_api_field_service.tap.v2alpha.StreamingGrpcSink.tap_id>`.
       * 
* * string tap_id = 2; */ public Builder setTapId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tapId_ = value; onChanged(); return this; } /** *
       * The opaque identifier that was set in the :ref:`output config
       * <envoy_api_field_service.tap.v2alpha.StreamingGrpcSink.tap_id>`.
       * 
* * string tap_id = 2; */ public Builder clearTapId() { tapId_ = getDefaultInstance().getTapId(); onChanged(); return this; } /** *
       * The opaque identifier that was set in the :ref:`output config
       * <envoy_api_field_service.tap.v2alpha.StreamingGrpcSink.tap_id>`.
       * 
* * string tap_id = 2; */ public Builder setTapIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tapId_ = value; 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.service.tap.v2alpha.StreamTapsRequest.Identifier) } // @@protoc_insertion_point(class_scope:envoy.service.tap.v2alpha.StreamTapsRequest.Identifier) private static final io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier(); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Identifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Identifier(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.service.tap.v2alpha.StreamTapsRequest.Identifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int IDENTIFIER_FIELD_NUMBER = 1; private io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier_; /** *
   * Identifier data effectively is a structured metadata. As a performance optimization this will
   * only be sent in the first message on the stream.
   * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public boolean hasIdentifier() { return identifier_ != null; } /** *
   * Identifier data effectively is a structured metadata. As a performance optimization this will
   * only be sent in the first message on the stream.
   * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier getIdentifier() { return identifier_ == null ? io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.getDefaultInstance() : identifier_; } /** *
   * Identifier data effectively is a structured metadata. As a performance optimization this will
   * only be sent in the first message on the stream.
   * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.IdentifierOrBuilder getIdentifierOrBuilder() { return getIdentifier(); } public static final int TRACE_ID_FIELD_NUMBER = 2; private long traceId_; /** *
   * The trace id. this can be used to merge together a streaming trace. Note that the trace_id
   * is not guaranteed to be spatially or temporally unique.
   * 
* * uint64 trace_id = 2; */ public long getTraceId() { return traceId_; } public static final int TRACE_FIELD_NUMBER = 3; private io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper trace_; /** *
   * The trace data.
   * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public boolean hasTrace() { return trace_ != null; } /** *
   * The trace data.
   * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper getTrace() { return trace_ == null ? io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.getDefaultInstance() : trace_; } /** *
   * The trace data.
   * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapperOrBuilder getTraceOrBuilder() { return getTrace(); } 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 (identifier_ != null) { output.writeMessage(1, getIdentifier()); } if (traceId_ != 0L) { output.writeUInt64(2, traceId_); } if (trace_ != null) { output.writeMessage(3, getTrace()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (identifier_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getIdentifier()); } if (traceId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, traceId_); } if (trace_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTrace()); } 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.service.tap.v2alpha.StreamTapsRequest)) { return super.equals(obj); } io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest other = (io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest) obj; if (hasIdentifier() != other.hasIdentifier()) return false; if (hasIdentifier()) { if (!getIdentifier() .equals(other.getIdentifier())) return false; } if (getTraceId() != other.getTraceId()) return false; if (hasTrace() != other.hasTrace()) return false; if (hasTrace()) { if (!getTrace() .equals(other.getTrace())) 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(); if (hasIdentifier()) { hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getIdentifier().hashCode(); } hash = (37 * hash) + TRACE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTraceId()); if (hasTrace()) { hash = (37 * hash) + TRACE_FIELD_NUMBER; hash = (53 * hash) + getTrace().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest 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.service.tap.v2alpha.StreamTapsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest 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.service.tap.v2alpha.StreamTapsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest 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.service.tap.v2alpha.StreamTapsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest 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.service.tap.v2alpha.StreamTapsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest 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.service.tap.v2alpha.StreamTapsRequest 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; } /** *
   * [#not-implemented-hide:] Stream message for the Tap API. Envoy will open a stream to the server
   * and stream taps without ever expecting a response.
   * 
* * Protobuf type {@code envoy.service.tap.v2alpha.StreamTapsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.tap.v2alpha.StreamTapsRequest) io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.tap.v2alpha.TapProto.internal_static_envoy_service_tap_v2alpha_StreamTapsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.tap.v2alpha.TapProto.internal_static_envoy_service_tap_v2alpha_StreamTapsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.class, io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Builder.class); } // Construct using io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (identifierBuilder_ == null) { identifier_ = null; } else { identifier_ = null; identifierBuilder_ = null; } traceId_ = 0L; if (traceBuilder_ == null) { trace_ = null; } else { trace_ = null; traceBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.tap.v2alpha.TapProto.internal_static_envoy_service_tap_v2alpha_StreamTapsRequest_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest getDefaultInstanceForType() { return io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest build() { io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest buildPartial() { io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest result = new io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest(this); if (identifierBuilder_ == null) { result.identifier_ = identifier_; } else { result.identifier_ = identifierBuilder_.build(); } result.traceId_ = traceId_; if (traceBuilder_ == null) { result.trace_ = trace_; } else { result.trace_ = traceBuilder_.build(); } 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.service.tap.v2alpha.StreamTapsRequest) { return mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest other) { if (other == io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.getDefaultInstance()) return this; if (other.hasIdentifier()) { mergeIdentifier(other.getIdentifier()); } if (other.getTraceId() != 0L) { setTraceId(other.getTraceId()); } if (other.hasTrace()) { mergeTrace(other.getTrace()); } 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.service.tap.v2alpha.StreamTapsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier, io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.Builder, io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.IdentifierOrBuilder> identifierBuilder_; /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public boolean hasIdentifier() { return identifierBuilder_ != null || identifier_ != null; } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier getIdentifier() { if (identifierBuilder_ == null) { return identifier_ == null ? io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.getDefaultInstance() : identifier_; } else { return identifierBuilder_.getMessage(); } } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public Builder setIdentifier(io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier value) { if (identifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identifier_ = value; onChanged(); } else { identifierBuilder_.setMessage(value); } return this; } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public Builder setIdentifier( io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.Builder builderForValue) { if (identifierBuilder_ == null) { identifier_ = builderForValue.build(); onChanged(); } else { identifierBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public Builder mergeIdentifier(io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier value) { if (identifierBuilder_ == null) { if (identifier_ != null) { identifier_ = io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.newBuilder(identifier_).mergeFrom(value).buildPartial(); } else { identifier_ = value; } onChanged(); } else { identifierBuilder_.mergeFrom(value); } return this; } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public Builder clearIdentifier() { if (identifierBuilder_ == null) { identifier_ = null; onChanged(); } else { identifier_ = null; identifierBuilder_ = null; } return this; } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.Builder getIdentifierBuilder() { onChanged(); return getIdentifierFieldBuilder().getBuilder(); } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.IdentifierOrBuilder getIdentifierOrBuilder() { if (identifierBuilder_ != null) { return identifierBuilder_.getMessageOrBuilder(); } else { return identifier_ == null ? io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.getDefaultInstance() : identifier_; } } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.tap.v2alpha.StreamTapsRequest.Identifier identifier = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier, io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.Builder, io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.IdentifierOrBuilder> getIdentifierFieldBuilder() { if (identifierBuilder_ == null) { identifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier, io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.Identifier.Builder, io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest.IdentifierOrBuilder>( getIdentifier(), getParentForChildren(), isClean()); identifier_ = null; } return identifierBuilder_; } private long traceId_ ; /** *
     * The trace id. this can be used to merge together a streaming trace. Note that the trace_id
     * is not guaranteed to be spatially or temporally unique.
     * 
* * uint64 trace_id = 2; */ public long getTraceId() { return traceId_; } /** *
     * The trace id. this can be used to merge together a streaming trace. Note that the trace_id
     * is not guaranteed to be spatially or temporally unique.
     * 
* * uint64 trace_id = 2; */ public Builder setTraceId(long value) { traceId_ = value; onChanged(); return this; } /** *
     * The trace id. this can be used to merge together a streaming trace. Note that the trace_id
     * is not guaranteed to be spatially or temporally unique.
     * 
* * uint64 trace_id = 2; */ public Builder clearTraceId() { traceId_ = 0L; onChanged(); return this; } private io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper trace_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper, io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.Builder, io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapperOrBuilder> traceBuilder_; /** *
     * The trace data.
     * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public boolean hasTrace() { return traceBuilder_ != null || trace_ != null; } /** *
     * The trace data.
     * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper getTrace() { if (traceBuilder_ == null) { return trace_ == null ? io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.getDefaultInstance() : trace_; } else { return traceBuilder_.getMessage(); } } /** *
     * The trace data.
     * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public Builder setTrace(io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper value) { if (traceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trace_ = value; onChanged(); } else { traceBuilder_.setMessage(value); } return this; } /** *
     * The trace data.
     * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public Builder setTrace( io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.Builder builderForValue) { if (traceBuilder_ == null) { trace_ = builderForValue.build(); onChanged(); } else { traceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The trace data.
     * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public Builder mergeTrace(io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper value) { if (traceBuilder_ == null) { if (trace_ != null) { trace_ = io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.newBuilder(trace_).mergeFrom(value).buildPartial(); } else { trace_ = value; } onChanged(); } else { traceBuilder_.mergeFrom(value); } return this; } /** *
     * The trace data.
     * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public Builder clearTrace() { if (traceBuilder_ == null) { trace_ = null; onChanged(); } else { trace_ = null; traceBuilder_ = null; } return this; } /** *
     * The trace data.
     * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.Builder getTraceBuilder() { onChanged(); return getTraceFieldBuilder().getBuilder(); } /** *
     * The trace data.
     * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ public io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapperOrBuilder getTraceOrBuilder() { if (traceBuilder_ != null) { return traceBuilder_.getMessageOrBuilder(); } else { return trace_ == null ? io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.getDefaultInstance() : trace_; } } /** *
     * The trace data.
     * 
* * .envoy.data.tap.v2alpha.TraceWrapper trace = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper, io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.Builder, io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapperOrBuilder> getTraceFieldBuilder() { if (traceBuilder_ == null) { traceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper, io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.Builder, io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapperOrBuilder>( getTrace(), getParentForChildren(), isClean()); trace_ = null; } return traceBuilder_; } @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.service.tap.v2alpha.StreamTapsRequest) } // @@protoc_insertion_point(class_scope:envoy.service.tap.v2alpha.StreamTapsRequest) private static final io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest(); } public static io.envoyproxy.envoy.service.tap.v2alpha.StreamTapsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamTapsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamTapsRequest(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.service.tap.v2alpha.StreamTapsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy