Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/accesslog/v2/als.proto
package io.envoyproxy.envoy.service.accesslog.v2;
/**
*
* Stream message for the StreamAccessLogs API. Envoy will open a stream to the server and stream
* access logs without ever expecting a response.
*
*
* Protobuf type {@code envoy.service.accesslog.v2.StreamAccessLogsMessage}
*/
public final class StreamAccessLogsMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.accesslog.v2.StreamAccessLogsMessage)
StreamAccessLogsMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamAccessLogsMessage.newBuilder() to construct.
private StreamAccessLogsMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamAccessLogsMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StreamAccessLogsMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StreamAccessLogsMessage(
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.accesslog.v2.StreamAccessLogsMessage.Identifier.Builder subBuilder = null;
if (identifier_ != null) {
subBuilder = identifier_.toBuilder();
}
identifier_ = input.readMessage(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(identifier_);
identifier_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.Builder subBuilder = null;
if (logEntriesCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_).toBuilder();
}
logEntries_ =
input.readMessage(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_);
logEntries_ = subBuilder.buildPartial();
}
logEntriesCase_ = 2;
break;
}
case 26: {
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.Builder subBuilder = null;
if (logEntriesCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_).toBuilder();
}
logEntries_ =
input.readMessage(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_);
logEntries_ = subBuilder.buildPartial();
}
logEntriesCase_ = 3;
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.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.class, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Builder.class);
}
public interface IdentifierOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier)
com.google.protobuf.MessageOrBuilder {
/**
*
* The node sending the access log messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
boolean hasNode();
/**
*
* The node sending the access log messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.api.v2.core.Node getNode();
/**
*
* The node sending the access log messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder();
/**
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_api_msg_config.accesslog.v2.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
*/
java.lang.String getLogName();
/**
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_api_msg_config.accesslog.v2.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
*/
com.google.protobuf.ByteString
getLogNameBytes();
}
/**
* Protobuf type {@code envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier}
*/
public static final class Identifier extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.accesslog.v2.StreamAccessLogsMessage.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() {
logName_ = "";
}
@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();
logName_ = 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.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_Identifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_Identifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.class, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.Builder.class);
}
public static final int NODE_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.api.v2.core.Node node_;
/**
*
* The node sending the access log messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
public boolean hasNode() {
return node_ != null;
}
/**
*
* The node sending the access log messages 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 the access log messages 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 LOG_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object logName_;
/**
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_api_msg_config.accesslog.v2.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
*/
public java.lang.String getLogName() {
java.lang.Object ref = logName_;
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();
logName_ = s;
return s;
}
}
/**
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_api_msg_config.accesslog.v2.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getLogNameBytes() {
java.lang.Object ref = logName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logName_ = 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 (!getLogNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, logName_);
}
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 (!getLogNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, logName_);
}
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.accesslog.v2.StreamAccessLogsMessage.Identifier)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier other = (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier) obj;
if (hasNode() != other.hasNode()) return false;
if (hasNode()) {
if (!getNode()
.equals(other.getNode())) return false;
}
if (!getLogName()
.equals(other.getLogName())) 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) + LOG_NAME_FIELD_NUMBER;
hash = (53 * hash) + getLogName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.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.accesslog.v2.StreamAccessLogsMessage.Identifier parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.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.accesslog.v2.StreamAccessLogsMessage.Identifier parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.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.accesslog.v2.StreamAccessLogsMessage.Identifier parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.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.accesslog.v2.StreamAccessLogsMessage.Identifier parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.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.accesslog.v2.StreamAccessLogsMessage.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.accesslog.v2.StreamAccessLogsMessage.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.accesslog.v2.StreamAccessLogsMessage.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.accesslog.v2.StreamAccessLogsMessage.Identifier}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier)
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.IdentifierOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_Identifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_Identifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.class, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.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;
}
logName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_Identifier_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier build() {
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier buildPartial() {
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier result = new io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier(this);
if (nodeBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
result.logName_ = logName_;
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.accesslog.v2.StreamAccessLogsMessage.Identifier) {
return mergeFrom((io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier other) {
if (other == io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.getDefaultInstance()) return this;
if (other.hasNode()) {
mergeNode(other.getNode());
}
if (!other.getLogName().isEmpty()) {
logName_ = other.logName_;
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.accesslog.v2.StreamAccessLogsMessage.Identifier parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.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 the access log messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
*
* The node sending the access log messages 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 the access log messages 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 the access log messages 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 the access log messages 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 the access log messages 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 the access log messages 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 the access log messages 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 the access log messages 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 logName_ = "";
/**
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_api_msg_config.accesslog.v2.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
*/
public java.lang.String getLogName() {
java.lang.Object ref = logName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_api_msg_config.accesslog.v2.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getLogNameBytes() {
java.lang.Object ref = logName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_api_msg_config.accesslog.v2.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
*/
public Builder setLogName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logName_ = value;
onChanged();
return this;
}
/**
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_api_msg_config.accesslog.v2.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
*/
public Builder clearLogName() {
logName_ = getDefaultInstance().getLogName();
onChanged();
return this;
}
/**
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_api_msg_config.accesslog.v2.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
*/
public Builder setLogNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logName_ = 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.accesslog.v2.StreamAccessLogsMessage.Identifier)
}
// @@protoc_insertion_point(class_scope:envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier)
private static final io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier();
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.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.accesslog.v2.StreamAccessLogsMessage.Identifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HTTPAccessLogEntriesOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
java.util.List
getLogEntryList();
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry getLogEntry(int index);
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
int getLogEntryCount();
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
java.util.List extends io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntryOrBuilder>
getLogEntryOrBuilderList();
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntryOrBuilder getLogEntryOrBuilder(
int index);
}
/**
*
* Wrapper for batches of HTTP access log entries.
*
*
* Protobuf type {@code envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries}
*/
public static final class HTTPAccessLogEntries extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries)
HTTPAccessLogEntriesOrBuilder {
private static final long serialVersionUID = 0L;
// Use HTTPAccessLogEntries.newBuilder() to construct.
private HTTPAccessLogEntries(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HTTPAccessLogEntries() {
logEntry_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HTTPAccessLogEntries();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HTTPAccessLogEntries(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
logEntry_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
logEntry_.add(
input.readMessage(io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.parser(), extensionRegistry));
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)) {
logEntry_ = java.util.Collections.unmodifiableList(logEntry_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_HTTPAccessLogEntries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_HTTPAccessLogEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.class, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.Builder.class);
}
public static final int LOG_ENTRY_FIELD_NUMBER = 1;
private java.util.List logEntry_;
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List getLogEntryList() {
return logEntry_;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntryOrBuilder>
getLogEntryOrBuilderList() {
return logEntry_;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public int getLogEntryCount() {
return logEntry_.size();
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry getLogEntry(int index) {
return logEntry_.get(index);
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntryOrBuilder getLogEntryOrBuilder(
int index) {
return logEntry_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < logEntry_.size(); i++) {
output.writeMessage(1, logEntry_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < logEntry_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, logEntry_.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.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries other = (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) obj;
if (!getLogEntryList()
.equals(other.getLogEntryList())) 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 (getLogEntryCount() > 0) {
hash = (37 * hash) + LOG_ENTRY_FIELD_NUMBER;
hash = (53 * hash) + getLogEntryList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries 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.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries 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.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries 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.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries 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.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries 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.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries 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;
}
/**
*
* Wrapper for batches of HTTP access log entries.
*
*
* Protobuf type {@code envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries)
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntriesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_HTTPAccessLogEntries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_HTTPAccessLogEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.class, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLogEntryFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (logEntryBuilder_ == null) {
logEntry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
logEntryBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_HTTPAccessLogEntries_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries build() {
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries buildPartial() {
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries result = new io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries(this);
int from_bitField0_ = bitField0_;
if (logEntryBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
logEntry_ = java.util.Collections.unmodifiableList(logEntry_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.logEntry_ = logEntry_;
} else {
result.logEntry_ = logEntryBuilder_.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.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) {
return mergeFrom((io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries other) {
if (other == io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance()) return this;
if (logEntryBuilder_ == null) {
if (!other.logEntry_.isEmpty()) {
if (logEntry_.isEmpty()) {
logEntry_ = other.logEntry_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLogEntryIsMutable();
logEntry_.addAll(other.logEntry_);
}
onChanged();
}
} else {
if (!other.logEntry_.isEmpty()) {
if (logEntryBuilder_.isEmpty()) {
logEntryBuilder_.dispose();
logEntryBuilder_ = null;
logEntry_ = other.logEntry_;
bitField0_ = (bitField0_ & ~0x00000001);
logEntryBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLogEntryFieldBuilder() : null;
} else {
logEntryBuilder_.addAllMessages(other.logEntry_);
}
}
}
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.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List logEntry_ =
java.util.Collections.emptyList();
private void ensureLogEntryIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
logEntry_ = new java.util.ArrayList(logEntry_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.Builder, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntryOrBuilder> logEntryBuilder_;
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List getLogEntryList() {
if (logEntryBuilder_ == null) {
return java.util.Collections.unmodifiableList(logEntry_);
} else {
return logEntryBuilder_.getMessageList();
}
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public int getLogEntryCount() {
if (logEntryBuilder_ == null) {
return logEntry_.size();
} else {
return logEntryBuilder_.getCount();
}
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry getLogEntry(int index) {
if (logEntryBuilder_ == null) {
return logEntry_.get(index);
} else {
return logEntryBuilder_.getMessage(index);
}
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder setLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry value) {
if (logEntryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogEntryIsMutable();
logEntry_.set(index, value);
onChanged();
} else {
logEntryBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder setLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.Builder builderForValue) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
logEntry_.set(index, builderForValue.build());
onChanged();
} else {
logEntryBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry value) {
if (logEntryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogEntryIsMutable();
logEntry_.add(value);
onChanged();
} else {
logEntryBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry value) {
if (logEntryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogEntryIsMutable();
logEntry_.add(index, value);
onChanged();
} else {
logEntryBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(
io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.Builder builderForValue) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
logEntry_.add(builderForValue.build());
onChanged();
} else {
logEntryBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.Builder builderForValue) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
logEntry_.add(index, builderForValue.build());
onChanged();
} else {
logEntryBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addAllLogEntry(
java.lang.Iterable extends io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry> values) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, logEntry_);
onChanged();
} else {
logEntryBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder clearLogEntry() {
if (logEntryBuilder_ == null) {
logEntry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
logEntryBuilder_.clear();
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder removeLogEntry(int index) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
logEntry_.remove(index);
onChanged();
} else {
logEntryBuilder_.remove(index);
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.Builder getLogEntryBuilder(
int index) {
return getLogEntryFieldBuilder().getBuilder(index);
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntryOrBuilder getLogEntryOrBuilder(
int index) {
if (logEntryBuilder_ == null) {
return logEntry_.get(index); } else {
return logEntryBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntryOrBuilder>
getLogEntryOrBuilderList() {
if (logEntryBuilder_ != null) {
return logEntryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(logEntry_);
}
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.Builder addLogEntryBuilder() {
return getLogEntryFieldBuilder().addBuilder(
io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.getDefaultInstance());
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.Builder addLogEntryBuilder(
int index) {
return getLogEntryFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.getDefaultInstance());
}
/**
* repeated .envoy.data.accesslog.v2.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List
getLogEntryBuilderList() {
return getLogEntryFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.Builder, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntryOrBuilder>
getLogEntryFieldBuilder() {
if (logEntryBuilder_ == null) {
logEntryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntry.Builder, io.envoyproxy.envoy.data.accesslog.v2.HTTPAccessLogEntryOrBuilder>(
logEntry_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
logEntry_ = null;
}
return logEntryBuilder_;
}
@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.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries)
}
// @@protoc_insertion_point(class_scope:envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries)
private static final io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries();
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HTTPAccessLogEntries parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HTTPAccessLogEntries(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.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TCPAccessLogEntriesOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
java.util.List
getLogEntryList();
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry getLogEntry(int index);
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
int getLogEntryCount();
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
java.util.List extends io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntryOrBuilder>
getLogEntryOrBuilderList();
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntryOrBuilder getLogEntryOrBuilder(
int index);
}
/**
*
* Wrapper for batches of TCP access log entries.
*
*
* Protobuf type {@code envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries}
*/
public static final class TCPAccessLogEntries extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries)
TCPAccessLogEntriesOrBuilder {
private static final long serialVersionUID = 0L;
// Use TCPAccessLogEntries.newBuilder() to construct.
private TCPAccessLogEntries(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TCPAccessLogEntries() {
logEntry_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TCPAccessLogEntries();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TCPAccessLogEntries(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
logEntry_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
logEntry_.add(
input.readMessage(io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.parser(), extensionRegistry));
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)) {
logEntry_ = java.util.Collections.unmodifiableList(logEntry_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_TCPAccessLogEntries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_TCPAccessLogEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.class, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.Builder.class);
}
public static final int LOG_ENTRY_FIELD_NUMBER = 1;
private java.util.List logEntry_;
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List getLogEntryList() {
return logEntry_;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntryOrBuilder>
getLogEntryOrBuilderList() {
return logEntry_;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public int getLogEntryCount() {
return logEntry_.size();
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry getLogEntry(int index) {
return logEntry_.get(index);
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntryOrBuilder getLogEntryOrBuilder(
int index) {
return logEntry_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < logEntry_.size(); i++) {
output.writeMessage(1, logEntry_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < logEntry_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, logEntry_.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.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries other = (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) obj;
if (!getLogEntryList()
.equals(other.getLogEntryList())) 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 (getLogEntryCount() > 0) {
hash = (37 * hash) + LOG_ENTRY_FIELD_NUMBER;
hash = (53 * hash) + getLogEntryList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries 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.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries 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.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries 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.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries 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.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries 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.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries 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;
}
/**
*
* Wrapper for batches of TCP access log entries.
*
*
* Protobuf type {@code envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries)
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntriesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_TCPAccessLogEntries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_TCPAccessLogEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.class, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLogEntryFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (logEntryBuilder_ == null) {
logEntry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
logEntryBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_TCPAccessLogEntries_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries build() {
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries buildPartial() {
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries result = new io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries(this);
int from_bitField0_ = bitField0_;
if (logEntryBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
logEntry_ = java.util.Collections.unmodifiableList(logEntry_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.logEntry_ = logEntry_;
} else {
result.logEntry_ = logEntryBuilder_.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.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) {
return mergeFrom((io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries other) {
if (other == io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance()) return this;
if (logEntryBuilder_ == null) {
if (!other.logEntry_.isEmpty()) {
if (logEntry_.isEmpty()) {
logEntry_ = other.logEntry_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLogEntryIsMutable();
logEntry_.addAll(other.logEntry_);
}
onChanged();
}
} else {
if (!other.logEntry_.isEmpty()) {
if (logEntryBuilder_.isEmpty()) {
logEntryBuilder_.dispose();
logEntryBuilder_ = null;
logEntry_ = other.logEntry_;
bitField0_ = (bitField0_ & ~0x00000001);
logEntryBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLogEntryFieldBuilder() : null;
} else {
logEntryBuilder_.addAllMessages(other.logEntry_);
}
}
}
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.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List logEntry_ =
java.util.Collections.emptyList();
private void ensureLogEntryIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
logEntry_ = new java.util.ArrayList(logEntry_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.Builder, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntryOrBuilder> logEntryBuilder_;
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List getLogEntryList() {
if (logEntryBuilder_ == null) {
return java.util.Collections.unmodifiableList(logEntry_);
} else {
return logEntryBuilder_.getMessageList();
}
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public int getLogEntryCount() {
if (logEntryBuilder_ == null) {
return logEntry_.size();
} else {
return logEntryBuilder_.getCount();
}
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry getLogEntry(int index) {
if (logEntryBuilder_ == null) {
return logEntry_.get(index);
} else {
return logEntryBuilder_.getMessage(index);
}
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder setLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry value) {
if (logEntryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogEntryIsMutable();
logEntry_.set(index, value);
onChanged();
} else {
logEntryBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder setLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.Builder builderForValue) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
logEntry_.set(index, builderForValue.build());
onChanged();
} else {
logEntryBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry value) {
if (logEntryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogEntryIsMutable();
logEntry_.add(value);
onChanged();
} else {
logEntryBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry value) {
if (logEntryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogEntryIsMutable();
logEntry_.add(index, value);
onChanged();
} else {
logEntryBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(
io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.Builder builderForValue) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
logEntry_.add(builderForValue.build());
onChanged();
} else {
logEntryBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.Builder builderForValue) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
logEntry_.add(index, builderForValue.build());
onChanged();
} else {
logEntryBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addAllLogEntry(
java.lang.Iterable extends io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry> values) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, logEntry_);
onChanged();
} else {
logEntryBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder clearLogEntry() {
if (logEntryBuilder_ == null) {
logEntry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
logEntryBuilder_.clear();
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder removeLogEntry(int index) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
logEntry_.remove(index);
onChanged();
} else {
logEntryBuilder_.remove(index);
}
return this;
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.Builder getLogEntryBuilder(
int index) {
return getLogEntryFieldBuilder().getBuilder(index);
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntryOrBuilder getLogEntryOrBuilder(
int index) {
if (logEntryBuilder_ == null) {
return logEntry_.get(index); } else {
return logEntryBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntryOrBuilder>
getLogEntryOrBuilderList() {
if (logEntryBuilder_ != null) {
return logEntryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(logEntry_);
}
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.Builder addLogEntryBuilder() {
return getLogEntryFieldBuilder().addBuilder(
io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.getDefaultInstance());
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.Builder addLogEntryBuilder(
int index) {
return getLogEntryFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.getDefaultInstance());
}
/**
* repeated .envoy.data.accesslog.v2.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List
getLogEntryBuilderList() {
return getLogEntryFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.Builder, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntryOrBuilder>
getLogEntryFieldBuilder() {
if (logEntryBuilder_ == null) {
logEntryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntry.Builder, io.envoyproxy.envoy.data.accesslog.v2.TCPAccessLogEntryOrBuilder>(
logEntry_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
logEntry_ = null;
}
return logEntryBuilder_;
}
@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.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries)
}
// @@protoc_insertion_point(class_scope:envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries)
private static final io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries();
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TCPAccessLogEntries parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TCPAccessLogEntries(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.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int logEntriesCase_ = 0;
private java.lang.Object logEntries_;
public enum LogEntriesCase
implements com.google.protobuf.Internal.EnumLite {
HTTP_LOGS(2),
TCP_LOGS(3),
LOGENTRIES_NOT_SET(0);
private final int value;
private LogEntriesCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LogEntriesCase valueOf(int value) {
return forNumber(value);
}
public static LogEntriesCase forNumber(int value) {
switch (value) {
case 2: return HTTP_LOGS;
case 3: return TCP_LOGS;
case 0: return LOGENTRIES_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public LogEntriesCase
getLogEntriesCase() {
return LogEntriesCase.forNumber(
logEntriesCase_);
}
public static final int IDENTIFIER_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier_;
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public boolean hasIdentifier() {
return identifier_ != null;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier getIdentifier() {
return identifier_ == null ? io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.getDefaultInstance() : identifier_;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.IdentifierOrBuilder getIdentifierOrBuilder() {
return getIdentifier();
}
public static final int HTTP_LOGS_FIELD_NUMBER = 2;
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public boolean hasHttpLogs() {
return logEntriesCase_ == 2;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries getHttpLogs() {
if (logEntriesCase_ == 2) {
return (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance();
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntriesOrBuilder getHttpLogsOrBuilder() {
if (logEntriesCase_ == 2) {
return (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance();
}
public static final int TCP_LOGS_FIELD_NUMBER = 3;
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public boolean hasTcpLogs() {
return logEntriesCase_ == 3;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries getTcpLogs() {
if (logEntriesCase_ == 3) {
return (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance();
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntriesOrBuilder getTcpLogsOrBuilder() {
if (logEntriesCase_ == 3) {
return (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance();
}
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 (logEntriesCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_);
}
if (logEntriesCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_);
}
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 (logEntriesCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_);
}
if (logEntriesCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_);
}
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.accesslog.v2.StreamAccessLogsMessage)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage other = (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage) obj;
if (hasIdentifier() != other.hasIdentifier()) return false;
if (hasIdentifier()) {
if (!getIdentifier()
.equals(other.getIdentifier())) return false;
}
if (!getLogEntriesCase().equals(other.getLogEntriesCase())) return false;
switch (logEntriesCase_) {
case 2:
if (!getHttpLogs()
.equals(other.getHttpLogs())) return false;
break;
case 3:
if (!getTcpLogs()
.equals(other.getTcpLogs())) return false;
break;
case 0:
default:
}
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();
}
switch (logEntriesCase_) {
case 2:
hash = (37 * hash) + HTTP_LOGS_FIELD_NUMBER;
hash = (53 * hash) + getHttpLogs().hashCode();
break;
case 3:
hash = (37 * hash) + TCP_LOGS_FIELD_NUMBER;
hash = (53 * hash) + getTcpLogs().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage 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.accesslog.v2.StreamAccessLogsMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage 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.accesslog.v2.StreamAccessLogsMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage 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.accesslog.v2.StreamAccessLogsMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage 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.accesslog.v2.StreamAccessLogsMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage 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.accesslog.v2.StreamAccessLogsMessage 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;
}
/**
*
* Stream message for the StreamAccessLogs API. Envoy will open a stream to the server and stream
* access logs without ever expecting a response.
*
*
* Protobuf type {@code envoy.service.accesslog.v2.StreamAccessLogsMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.accesslog.v2.StreamAccessLogsMessage)
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.class, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.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;
}
logEntriesCase_ = 0;
logEntries_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.accesslog.v2.AlsProto.internal_static_envoy_service_accesslog_v2_StreamAccessLogsMessage_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage build() {
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage buildPartial() {
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage result = new io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage(this);
if (identifierBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = identifierBuilder_.build();
}
if (logEntriesCase_ == 2) {
if (httpLogsBuilder_ == null) {
result.logEntries_ = logEntries_;
} else {
result.logEntries_ = httpLogsBuilder_.build();
}
}
if (logEntriesCase_ == 3) {
if (tcpLogsBuilder_ == null) {
result.logEntries_ = logEntries_;
} else {
result.logEntries_ = tcpLogsBuilder_.build();
}
}
result.logEntriesCase_ = logEntriesCase_;
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.accesslog.v2.StreamAccessLogsMessage) {
return mergeFrom((io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage other) {
if (other == io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.getDefaultInstance()) return this;
if (other.hasIdentifier()) {
mergeIdentifier(other.getIdentifier());
}
switch (other.getLogEntriesCase()) {
case HTTP_LOGS: {
mergeHttpLogs(other.getHttpLogs());
break;
}
case TCP_LOGS: {
mergeTcpLogs(other.getTcpLogs());
break;
}
case LOGENTRIES_NOT_SET: {
break;
}
}
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.accesslog.v2.StreamAccessLogsMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int logEntriesCase_ = 0;
private java.lang.Object logEntries_;
public LogEntriesCase
getLogEntriesCase() {
return LogEntriesCase.forNumber(
logEntriesCase_);
}
public Builder clearLogEntries() {
logEntriesCase_ = 0;
logEntries_ = null;
onChanged();
return this;
}
private io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.Builder, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.IdentifierOrBuilder> identifierBuilder_;
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public boolean hasIdentifier() {
return identifierBuilder_ != null || identifier_ != null;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier getIdentifier() {
if (identifierBuilder_ == null) {
return identifier_ == null ? io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.getDefaultInstance() : identifier_;
} else {
return identifierBuilder_.getMessage();
}
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public Builder setIdentifier(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier value) {
if (identifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
identifierBuilder_.setMessage(value);
}
return this;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public Builder setIdentifier(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.Builder builderForValue) {
if (identifierBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
identifierBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public Builder mergeIdentifier(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier value) {
if (identifierBuilder_ == null) {
if (identifier_ != null) {
identifier_ =
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.newBuilder(identifier_).mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
identifierBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public Builder clearIdentifier() {
if (identifierBuilder_ == null) {
identifier_ = null;
onChanged();
} else {
identifier_ = null;
identifierBuilder_ = null;
}
return this;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.Builder getIdentifierBuilder() {
onChanged();
return getIdentifierFieldBuilder().getBuilder();
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.IdentifierOrBuilder getIdentifierOrBuilder() {
if (identifierBuilder_ != null) {
return identifierBuilder_.getMessageOrBuilder();
} else {
return identifier_ == null ?
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.getDefaultInstance() : identifier_;
}
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier identifier = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.Builder, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.IdentifierOrBuilder>
getIdentifierFieldBuilder() {
if (identifierBuilder_ == null) {
identifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.Builder, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.IdentifierOrBuilder>(
getIdentifier(),
getParentForChildren(),
isClean());
identifier_ = null;
}
return identifierBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.Builder, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntriesOrBuilder> httpLogsBuilder_;
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public boolean hasHttpLogs() {
return logEntriesCase_ == 2;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries getHttpLogs() {
if (httpLogsBuilder_ == null) {
if (logEntriesCase_ == 2) {
return (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance();
} else {
if (logEntriesCase_ == 2) {
return httpLogsBuilder_.getMessage();
}
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance();
}
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public Builder setHttpLogs(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries value) {
if (httpLogsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logEntries_ = value;
onChanged();
} else {
httpLogsBuilder_.setMessage(value);
}
logEntriesCase_ = 2;
return this;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public Builder setHttpLogs(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.Builder builderForValue) {
if (httpLogsBuilder_ == null) {
logEntries_ = builderForValue.build();
onChanged();
} else {
httpLogsBuilder_.setMessage(builderForValue.build());
}
logEntriesCase_ = 2;
return this;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public Builder mergeHttpLogs(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries value) {
if (httpLogsBuilder_ == null) {
if (logEntriesCase_ == 2 &&
logEntries_ != io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance()) {
logEntries_ = io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.newBuilder((io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_)
.mergeFrom(value).buildPartial();
} else {
logEntries_ = value;
}
onChanged();
} else {
if (logEntriesCase_ == 2) {
httpLogsBuilder_.mergeFrom(value);
}
httpLogsBuilder_.setMessage(value);
}
logEntriesCase_ = 2;
return this;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public Builder clearHttpLogs() {
if (httpLogsBuilder_ == null) {
if (logEntriesCase_ == 2) {
logEntriesCase_ = 0;
logEntries_ = null;
onChanged();
}
} else {
if (logEntriesCase_ == 2) {
logEntriesCase_ = 0;
logEntries_ = null;
}
httpLogsBuilder_.clear();
}
return this;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.Builder getHttpLogsBuilder() {
return getHttpLogsFieldBuilder().getBuilder();
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntriesOrBuilder getHttpLogsOrBuilder() {
if ((logEntriesCase_ == 2) && (httpLogsBuilder_ != null)) {
return httpLogsBuilder_.getMessageOrBuilder();
} else {
if (logEntriesCase_ == 2) {
return (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance();
}
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.Builder, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntriesOrBuilder>
getHttpLogsFieldBuilder() {
if (httpLogsBuilder_ == null) {
if (!(logEntriesCase_ == 2)) {
logEntries_ = io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance();
}
httpLogsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.Builder, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntriesOrBuilder>(
(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_,
getParentForChildren(),
isClean());
logEntries_ = null;
}
logEntriesCase_ = 2;
onChanged();;
return httpLogsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.Builder, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntriesOrBuilder> tcpLogsBuilder_;
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public boolean hasTcpLogs() {
return logEntriesCase_ == 3;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries getTcpLogs() {
if (tcpLogsBuilder_ == null) {
if (logEntriesCase_ == 3) {
return (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance();
} else {
if (logEntriesCase_ == 3) {
return tcpLogsBuilder_.getMessage();
}
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance();
}
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public Builder setTcpLogs(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries value) {
if (tcpLogsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logEntries_ = value;
onChanged();
} else {
tcpLogsBuilder_.setMessage(value);
}
logEntriesCase_ = 3;
return this;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public Builder setTcpLogs(
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.Builder builderForValue) {
if (tcpLogsBuilder_ == null) {
logEntries_ = builderForValue.build();
onChanged();
} else {
tcpLogsBuilder_.setMessage(builderForValue.build());
}
logEntriesCase_ = 3;
return this;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public Builder mergeTcpLogs(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries value) {
if (tcpLogsBuilder_ == null) {
if (logEntriesCase_ == 3 &&
logEntries_ != io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance()) {
logEntries_ = io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.newBuilder((io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_)
.mergeFrom(value).buildPartial();
} else {
logEntries_ = value;
}
onChanged();
} else {
if (logEntriesCase_ == 3) {
tcpLogsBuilder_.mergeFrom(value);
}
tcpLogsBuilder_.setMessage(value);
}
logEntriesCase_ = 3;
return this;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public Builder clearTcpLogs() {
if (tcpLogsBuilder_ == null) {
if (logEntriesCase_ == 3) {
logEntriesCase_ = 0;
logEntries_ = null;
onChanged();
}
} else {
if (logEntriesCase_ == 3) {
logEntriesCase_ = 0;
logEntries_ = null;
}
tcpLogsBuilder_.clear();
}
return this;
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.Builder getTcpLogsBuilder() {
return getTcpLogsFieldBuilder().getBuilder();
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
public io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntriesOrBuilder getTcpLogsOrBuilder() {
if ((logEntriesCase_ == 3) && (tcpLogsBuilder_ != null)) {
return tcpLogsBuilder_.getMessageOrBuilder();
} else {
if (logEntriesCase_ == 3) {
return (io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance();
}
}
/**
* .envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.Builder, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntriesOrBuilder>
getTcpLogsFieldBuilder() {
if (tcpLogsBuilder_ == null) {
if (!(logEntriesCase_ == 3)) {
logEntries_ = io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance();
}
tcpLogsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.Builder, io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntriesOrBuilder>(
(io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_,
getParentForChildren(),
isClean());
logEntries_ = null;
}
logEntriesCase_ = 3;
onChanged();;
return tcpLogsBuilder_;
}
@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.accesslog.v2.StreamAccessLogsMessage)
}
// @@protoc_insertion_point(class_scope:envoy.service.accesslog.v2.StreamAccessLogsMessage)
private static final io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage();
}
public static io.envoyproxy.envoy.service.accesslog.v2.StreamAccessLogsMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StreamAccessLogsMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamAccessLogsMessage(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.accesslog.v2.StreamAccessLogsMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}