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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/accesslog/v3/als.proto
package io.envoyproxy.envoy.service.accesslog.v3;
/**
*
* 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.v3.StreamAccessLogsMessage}
*/
public final class StreamAccessLogsMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.Identifier.Builder subBuilder = null;
if (identifier_ != null) {
subBuilder = identifier_.toBuilder();
}
identifier_ = input.readMessage(io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(identifier_);
identifier_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries.Builder subBuilder = null;
if (logEntriesCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_).toBuilder();
}
logEntries_ =
input.readMessage(io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_);
logEntries_ = subBuilder.buildPartial();
}
logEntriesCase_ = 2;
break;
}
case 26: {
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries.Builder subBuilder = null;
if (logEntriesCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_).toBuilder();
}
logEntries_ =
input.readMessage(io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.service.accesslog.v3.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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.class, io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Builder.class);
}
public interface IdentifierOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier)
com.google.protobuf.MessageOrBuilder {
/**
*
* The node sending the access log messages over the stream.
*
*
* .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... }
* @return Whether the node field is set.
*/
boolean hasNode();
/**
*
* The node sending the access log messages over the stream.
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_v3_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_v3_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
* @return The bytes for logName.
*/
com.google.protobuf.ByteString
getLogNameBytes();
}
/**
* Protobuf type {@code envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier}
*/
public static final class Identifier extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.accesslog.v3.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.config.core.v3.Node.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_Identifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_Identifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier.class, io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier.Builder.class);
}
public static final int NODE_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.core.v3.Node node_;
/**
*
* The node sending the access log messages over the stream.
*
*
* .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... }
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return node_ != null;
}
/**
*
* The node sending the access log messages over the stream.
*
* The node sending the access log messages over the stream.
*
*
* .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.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_v3_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_v3_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
* @return The bytes for logName.
*/
@java.lang.Override
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) {
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.v3.StreamAccessLogsMessage.Identifier)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier other = (io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.Identifier parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.Identifier parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.Identifier parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.StreamAccessLogsMessage.Identifier}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier)
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.IdentifierOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.accesslog.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_Identifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_Identifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier.class, io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.accesslog.v3.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.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_Identifier_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier build() {
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier buildPartial() {
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier result = new io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.Identifier) {
return mergeFrom((io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier other) {
if (other == io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.Identifier parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.config.core.v3.Node node_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder> nodeBuilder_;
/**
*
* The node sending the access log messages over the stream.
*
*
* .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... }
* @return Whether the node field is set.
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
*
* The node sending the access log messages over the stream.
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_v3_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_v3_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_v3_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
* @param value The logName to set.
* @return This builder for chaining.
*/
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_v3_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
*
* The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
* <envoy_v3_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
*
*
* string log_name = 2 [(.validate.rules) = { ... }
* @param value The bytes for logName to set.
* @return This builder for chaining.
*/
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.v3.StreamAccessLogsMessage.Identifier)
}
// @@protoc_insertion_point(class_scope:envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier)
private static final io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier();
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.Identifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HTTPAccessLogEntriesOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .envoy.data.accesslog.v3.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
java.util.List
getLogEntryList();
/**
* repeated .envoy.data.accesslog.v3.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry getLogEntry(int index);
/**
* repeated .envoy.data.accesslog.v3.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
int getLogEntryCount();
/**
* repeated .envoy.data.accesslog.v3.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
java.util.List extends io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntryOrBuilder>
getLogEntryOrBuilderList();
/**
* repeated .envoy.data.accesslog.v3.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntryOrBuilder getLogEntryOrBuilder(
int index);
}
/**
*
* Wrapper for batches of HTTP access log entries.
*
*
* Protobuf type {@code envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries}
*/
public static final class HTTPAccessLogEntries extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.accesslog.v3.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.v3.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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_HTTPAccessLogEntries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_HTTPAccessLogEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries.class, io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries.Builder.class);
}
public static final int LOG_ENTRY_FIELD_NUMBER = 1;
private java.util.List logEntry_;
/**
* repeated .envoy.data.accesslog.v3.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List getLogEntryList() {
return logEntry_;
}
/**
* repeated .envoy.data.accesslog.v3.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntryOrBuilder>
getLogEntryOrBuilderList() {
return logEntry_;
}
/**
* repeated .envoy.data.accesslog.v3.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public int getLogEntryCount() {
return logEntry_.size();
}
/**
* repeated .envoy.data.accesslog.v3.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry getLogEntry(int index) {
return logEntry_.get(index);
}
/**
* repeated .envoy.data.accesslog.v3.HTTPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.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.v3.StreamAccessLogsMessage.HTTPAccessLogEntries)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries other = (io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.HTTPAccessLogEntries parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.HTTPAccessLogEntries parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.HTTPAccessLogEntries parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.
*
* Wrapper for batches of TCP access log entries.
*
*
* Protobuf type {@code envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries}
*/
public static final class TCPAccessLogEntries extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.accesslog.v3.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.v3.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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_TCPAccessLogEntries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_TCPAccessLogEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries.class, io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries.Builder.class);
}
public static final int LOG_ENTRY_FIELD_NUMBER = 1;
private java.util.List logEntry_;
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List getLogEntryList() {
return logEntry_;
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntryOrBuilder>
getLogEntryOrBuilderList() {
return logEntry_;
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public int getLogEntryCount() {
return logEntry_.size();
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry getLogEntry(int index) {
return logEntry_.get(index);
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.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.v3.StreamAccessLogsMessage.TCPAccessLogEntries)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries other = (io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.TCPAccessLogEntries parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.TCPAccessLogEntries parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.TCPAccessLogEntries parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.StreamAccessLogsMessage.TCPAccessLogEntries}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries)
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntriesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.accesslog.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_TCPAccessLogEntries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_TCPAccessLogEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries.class, io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.accesslog.v3.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.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_TCPAccessLogEntries_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries build() {
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries buildPartial() {
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries result = new io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.TCPAccessLogEntries) {
return mergeFrom((io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries other) {
if (other == io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.TCPAccessLogEntries parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.accesslog.v3.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.v3.TCPAccessLogEntry, io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry.Builder, io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntryOrBuilder> logEntryBuilder_;
/**
* repeated .envoy.data.accesslog.v3.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.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public int getLogEntryCount() {
if (logEntryBuilder_ == null) {
return logEntry_.size();
} else {
return logEntryBuilder_.getCount();
}
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry getLogEntry(int index) {
if (logEntryBuilder_ == null) {
return logEntry_.get(index);
} else {
return logEntryBuilder_.getMessage(index);
}
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder setLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v3.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.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder setLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v3.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.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(io.envoyproxy.envoy.data.accesslog.v3.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.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v3.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.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(
io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry.Builder builderForValue) {
if (logEntryBuilder_ == null) {
ensureLogEntryIsMutable();
logEntry_.add(builderForValue.build());
onChanged();
} else {
logEntryBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addLogEntry(
int index, io.envoyproxy.envoy.data.accesslog.v3.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.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public Builder addAllLogEntry(
java.lang.Iterable extends io.envoyproxy.envoy.data.accesslog.v3.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.v3.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.v3.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.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry.Builder getLogEntryBuilder(
int index) {
return getLogEntryFieldBuilder().getBuilder(index);
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntryOrBuilder getLogEntryOrBuilder(
int index) {
if (logEntryBuilder_ == null) {
return logEntry_.get(index); } else {
return logEntryBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntryOrBuilder>
getLogEntryOrBuilderList() {
if (logEntryBuilder_ != null) {
return logEntryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(logEntry_);
}
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry.Builder addLogEntryBuilder() {
return getLogEntryFieldBuilder().addBuilder(
io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry.getDefaultInstance());
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry.Builder addLogEntryBuilder(
int index) {
return getLogEntryFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry.getDefaultInstance());
}
/**
* repeated .envoy.data.accesslog.v3.TCPAccessLogEntry log_entry = 1 [(.validate.rules) = { ... }
*/
public java.util.List
getLogEntryBuilderList() {
return getLogEntryFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry, io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry.Builder, io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntryOrBuilder>
getLogEntryFieldBuilder() {
if (logEntryBuilder_ == null) {
logEntryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry, io.envoyproxy.envoy.data.accesslog.v3.TCPAccessLogEntry.Builder, io.envoyproxy.envoy.data.accesslog.v3.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.v3.StreamAccessLogsMessage.TCPAccessLogEntries)
}
// @@protoc_insertion_point(class_scope:envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries)
private static final io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries();
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.TCPAccessLogEntries getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int logEntriesCase_ = 0;
private java.lang.Object logEntries_;
public enum LogEntriesCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
HTTP_LOGS(2),
TCP_LOGS(3),
LOGENTRIES_NOT_SET(0);
private final int value;
private LogEntriesCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static 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.v3.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.v3.StreamAccessLogsMessage.Identifier identifier = 1;
* @return Whether the identifier field is set.
*/
@java.lang.Override
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.
*
* 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.v3.StreamAccessLogsMessage.Identifier identifier = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.IdentifierOrBuilder getIdentifierOrBuilder() {
return getIdentifier();
}
public static final int HTTP_LOGS_FIELD_NUMBER = 2;
/**
* .envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
* @return Whether the httpLogs field is set.
*/
@java.lang.Override
public boolean hasHttpLogs() {
return logEntriesCase_ == 2;
}
/**
* .envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
* @return The httpLogs.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries getHttpLogs() {
if (logEntriesCase_ == 2) {
return (io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance();
}
/**
* .envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries http_logs = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntriesOrBuilder getHttpLogsOrBuilder() {
if (logEntriesCase_ == 2) {
return (io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.HTTPAccessLogEntries.getDefaultInstance();
}
public static final int TCP_LOGS_FIELD_NUMBER = 3;
/**
* .envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
* @return Whether the tcpLogs field is set.
*/
@java.lang.Override
public boolean hasTcpLogs() {
return logEntriesCase_ == 3;
}
/**
* .envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
* @return The tcpLogs.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries getTcpLogs() {
if (logEntriesCase_ == 3) {
return (io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries.getDefaultInstance();
}
/**
* .envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries tcp_logs = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntriesOrBuilder getTcpLogsOrBuilder() {
if (logEntriesCase_ == 3) {
return (io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.TCPAccessLogEntries) logEntries_;
}
return io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_);
}
if (logEntriesCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.HTTPAccessLogEntries) logEntries_);
}
if (logEntriesCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage other = (io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.accesslog.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.StreamAccessLogsMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.accesslog.v3.StreamAccessLogsMessage)
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.accesslog.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.accesslog.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.class, io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.accesslog.v3.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.v3.AlsProto.internal_static_envoy_service_accesslog_v3_StreamAccessLogsMessage_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage build() {
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage buildPartial() {
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage result = new io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage) {
return mergeFrom((io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage other) {
if (other == io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.Identifier identifier_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier, io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.Identifier.Builder, io.envoyproxy.envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.Identifier identifier = 1;
* @return Whether the identifier field is set.
*/
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.
*
* 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.v3.StreamAccessLogsMessage.Identifier identifier = 1;
*/
public Builder setIdentifier(io.envoyproxy.envoy.service.accesslog.v3.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.
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*