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.data.accesslog.v3.HTTPAccessLogEntry Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/data/accesslog/v3/accesslog.proto
package io.envoyproxy.envoy.data.accesslog.v3;
/**
* Protobuf type {@code envoy.data.accesslog.v3.HTTPAccessLogEntry}
*/
public final class HTTPAccessLogEntry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.accesslog.v3.HTTPAccessLogEntry)
HTTPAccessLogEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use HTTPAccessLogEntry.newBuilder() to construct.
private HTTPAccessLogEntry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HTTPAccessLogEntry() {
protocolVersion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HTTPAccessLogEntry();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HTTPAccessLogEntry(
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.data.accesslog.v3.AccessLogCommon.Builder subBuilder = null;
if (commonProperties_ != null) {
subBuilder = commonProperties_.toBuilder();
}
commonProperties_ = input.readMessage(io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(commonProperties_);
commonProperties_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
protocolVersion_ = rawValue;
break;
}
case 26: {
io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
break;
}
case 34: {
io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.Builder subBuilder = null;
if (response_ != null) {
subBuilder = response_.toBuilder();
}
response_ = input.readMessage(io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(response_);
response_ = subBuilder.buildPartial();
}
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.data.accesslog.v3.AccesslogProto.internal_static_envoy_data_accesslog_v3_HTTPAccessLogEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.accesslog.v3.AccesslogProto.internal_static_envoy_data_accesslog_v3_HTTPAccessLogEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.class, io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.Builder.class);
}
/**
*
* HTTP version
*
*
* Protobuf enum {@code envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion}
*/
public enum HTTPVersion
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PROTOCOL_UNSPECIFIED = 0;
*/
PROTOCOL_UNSPECIFIED(0),
/**
* HTTP10 = 1;
*/
HTTP10(1),
/**
* HTTP11 = 2;
*/
HTTP11(2),
/**
* HTTP2 = 3;
*/
HTTP2(3),
/**
* HTTP3 = 4;
*/
HTTP3(4),
UNRECOGNIZED(-1),
;
/**
* PROTOCOL_UNSPECIFIED = 0;
*/
public static final int PROTOCOL_UNSPECIFIED_VALUE = 0;
/**
* HTTP10 = 1;
*/
public static final int HTTP10_VALUE = 1;
/**
* HTTP11 = 2;
*/
public static final int HTTP11_VALUE = 2;
/**
* HTTP2 = 3;
*/
public static final int HTTP2_VALUE = 3;
/**
* HTTP3 = 4;
*/
public static final int HTTP3_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static HTTPVersion valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static HTTPVersion forNumber(int value) {
switch (value) {
case 0: return PROTOCOL_UNSPECIFIED;
case 1: return HTTP10;
case 2: return HTTP11;
case 3: return HTTP2;
case 4: return HTTP3;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
HTTPVersion> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public HTTPVersion findValueByNumber(int number) {
return HTTPVersion.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.getDescriptor().getEnumTypes().get(0);
}
private static final HTTPVersion[] VALUES = values();
public static HTTPVersion valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private HTTPVersion(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion)
}
public static final int COMMON_PROPERTIES_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon commonProperties_;
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
* @return Whether the commonProperties field is set.
*/
@java.lang.Override
public boolean hasCommonProperties() {
return commonProperties_ != null;
}
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
* @return The commonProperties.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon getCommonProperties() {
return commonProperties_ == null ? io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon.getDefaultInstance() : commonProperties_;
}
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommonOrBuilder getCommonPropertiesOrBuilder() {
return getCommonProperties();
}
public static final int PROTOCOL_VERSION_FIELD_NUMBER = 2;
private int protocolVersion_;
/**
* .envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion protocol_version = 2;
* @return The enum numeric value on the wire for protocolVersion.
*/
@java.lang.Override public int getProtocolVersionValue() {
return protocolVersion_;
}
/**
* .envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion protocol_version = 2;
* @return The protocolVersion.
*/
@java.lang.Override public io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion getProtocolVersion() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion result = io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion.valueOf(protocolVersion_);
return result == null ? io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion.UNRECOGNIZED : result;
}
public static final int REQUEST_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties request_;
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
* @return Whether the request field is set.
*/
@java.lang.Override
public boolean hasRequest() {
return request_ != null;
}
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
* @return The request.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties getRequest() {
return request_ == null ? io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.getDefaultInstance() : request_;
}
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestPropertiesOrBuilder getRequestOrBuilder() {
return getRequest();
}
public static final int RESPONSE_FIELD_NUMBER = 4;
private io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties response_;
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
* @return Whether the response field is set.
*/
@java.lang.Override
public boolean hasResponse() {
return response_ != null;
}
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
* @return The response.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties getResponse() {
return response_ == null ? io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.getDefaultInstance() : response_;
}
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.HTTPResponsePropertiesOrBuilder getResponseOrBuilder() {
return getResponse();
}
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 (commonProperties_ != null) {
output.writeMessage(1, getCommonProperties());
}
if (protocolVersion_ != io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion.PROTOCOL_UNSPECIFIED.getNumber()) {
output.writeEnum(2, protocolVersion_);
}
if (request_ != null) {
output.writeMessage(3, getRequest());
}
if (response_ != null) {
output.writeMessage(4, getResponse());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (commonProperties_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCommonProperties());
}
if (protocolVersion_ != io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion.PROTOCOL_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, protocolVersion_);
}
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getRequest());
}
if (response_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getResponse());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry other = (io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry) obj;
if (hasCommonProperties() != other.hasCommonProperties()) return false;
if (hasCommonProperties()) {
if (!getCommonProperties()
.equals(other.getCommonProperties())) return false;
}
if (protocolVersion_ != other.protocolVersion_) return false;
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) return false;
}
if (hasResponse() != other.hasResponse()) return false;
if (hasResponse()) {
if (!getResponse()
.equals(other.getResponse())) 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 (hasCommonProperties()) {
hash = (37 * hash) + COMMON_PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getCommonProperties().hashCode();
}
hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER;
hash = (53 * hash) + protocolVersion_;
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
if (hasResponse()) {
hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getResponse().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry 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.data.accesslog.v3.HTTPAccessLogEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.accesslog.v3.HTTPAccessLogEntry)
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.accesslog.v3.AccesslogProto.internal_static_envoy_data_accesslog_v3_HTTPAccessLogEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.accesslog.v3.AccesslogProto.internal_static_envoy_data_accesslog_v3_HTTPAccessLogEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.class, io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.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 (commonPropertiesBuilder_ == null) {
commonProperties_ = null;
} else {
commonProperties_ = null;
commonPropertiesBuilder_ = null;
}
protocolVersion_ = 0;
if (requestBuilder_ == null) {
request_ = null;
} else {
request_ = null;
requestBuilder_ = null;
}
if (responseBuilder_ == null) {
response_ = null;
} else {
response_ = null;
responseBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.accesslog.v3.AccesslogProto.internal_static_envoy_data_accesslog_v3_HTTPAccessLogEntry_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry build() {
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry buildPartial() {
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry result = new io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry(this);
if (commonPropertiesBuilder_ == null) {
result.commonProperties_ = commonProperties_;
} else {
result.commonProperties_ = commonPropertiesBuilder_.build();
}
result.protocolVersion_ = protocolVersion_;
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.build();
}
if (responseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = responseBuilder_.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.data.accesslog.v3.HTTPAccessLogEntry) {
return mergeFrom((io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry other) {
if (other == io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.getDefaultInstance()) return this;
if (other.hasCommonProperties()) {
mergeCommonProperties(other.getCommonProperties());
}
if (other.protocolVersion_ != 0) {
setProtocolVersionValue(other.getProtocolVersionValue());
}
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (other.hasResponse()) {
mergeResponse(other.getResponse());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon commonProperties_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon, io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon.Builder, io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommonOrBuilder> commonPropertiesBuilder_;
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
* @return Whether the commonProperties field is set.
*/
public boolean hasCommonProperties() {
return commonPropertiesBuilder_ != null || commonProperties_ != null;
}
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
* @return The commonProperties.
*/
public io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon getCommonProperties() {
if (commonPropertiesBuilder_ == null) {
return commonProperties_ == null ? io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon.getDefaultInstance() : commonProperties_;
} else {
return commonPropertiesBuilder_.getMessage();
}
}
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
*/
public Builder setCommonProperties(io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon value) {
if (commonPropertiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commonProperties_ = value;
onChanged();
} else {
commonPropertiesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
*/
public Builder setCommonProperties(
io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon.Builder builderForValue) {
if (commonPropertiesBuilder_ == null) {
commonProperties_ = builderForValue.build();
onChanged();
} else {
commonPropertiesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
*/
public Builder mergeCommonProperties(io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon value) {
if (commonPropertiesBuilder_ == null) {
if (commonProperties_ != null) {
commonProperties_ =
io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon.newBuilder(commonProperties_).mergeFrom(value).buildPartial();
} else {
commonProperties_ = value;
}
onChanged();
} else {
commonPropertiesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
*/
public Builder clearCommonProperties() {
if (commonPropertiesBuilder_ == null) {
commonProperties_ = null;
onChanged();
} else {
commonProperties_ = null;
commonPropertiesBuilder_ = null;
}
return this;
}
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
*/
public io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon.Builder getCommonPropertiesBuilder() {
onChanged();
return getCommonPropertiesFieldBuilder().getBuilder();
}
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
*/
public io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommonOrBuilder getCommonPropertiesOrBuilder() {
if (commonPropertiesBuilder_ != null) {
return commonPropertiesBuilder_.getMessageOrBuilder();
} else {
return commonProperties_ == null ?
io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon.getDefaultInstance() : commonProperties_;
}
}
/**
*
* Common properties shared by all Envoy access logs.
*
*
* .envoy.data.accesslog.v3.AccessLogCommon common_properties = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon, io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon.Builder, io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommonOrBuilder>
getCommonPropertiesFieldBuilder() {
if (commonPropertiesBuilder_ == null) {
commonPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon, io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommon.Builder, io.envoyproxy.envoy.data.accesslog.v3.AccessLogCommonOrBuilder>(
getCommonProperties(),
getParentForChildren(),
isClean());
commonProperties_ = null;
}
return commonPropertiesBuilder_;
}
private int protocolVersion_ = 0;
/**
* .envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion protocol_version = 2;
* @return The enum numeric value on the wire for protocolVersion.
*/
@java.lang.Override public int getProtocolVersionValue() {
return protocolVersion_;
}
/**
* .envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion protocol_version = 2;
* @param value The enum numeric value on the wire for protocolVersion to set.
* @return This builder for chaining.
*/
public Builder setProtocolVersionValue(int value) {
protocolVersion_ = value;
onChanged();
return this;
}
/**
* .envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion protocol_version = 2;
* @return The protocolVersion.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion getProtocolVersion() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion result = io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion.valueOf(protocolVersion_);
return result == null ? io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion.UNRECOGNIZED : result;
}
/**
* .envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion protocol_version = 2;
* @param value The protocolVersion to set.
* @return This builder for chaining.
*/
public Builder setProtocolVersion(io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion value) {
if (value == null) {
throw new NullPointerException();
}
protocolVersion_ = value.getNumber();
onChanged();
return this;
}
/**
* .envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion protocol_version = 2;
* @return This builder for chaining.
*/
public Builder clearProtocolVersion() {
protocolVersion_ = 0;
onChanged();
return this;
}
private io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties request_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties, io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.Builder, io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestPropertiesOrBuilder> requestBuilder_;
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
* @return Whether the request field is set.
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
* @return The request.
*/
public io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
*/
public Builder setRequest(io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
*/
public Builder setRequest(
io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
*/
public Builder mergeRequest(io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
*/
public io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
*/
public io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestPropertiesOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.getDefaultInstance() : request_;
}
}
/**
*
* Description of the incoming HTTP request.
*
*
* .envoy.data.accesslog.v3.HTTPRequestProperties request = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties, io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.Builder, io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestPropertiesOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties, io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.Builder, io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestPropertiesOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties response_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties, io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.Builder, io.envoyproxy.envoy.data.accesslog.v3.HTTPResponsePropertiesOrBuilder> responseBuilder_;
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
* @return Whether the response field is set.
*/
public boolean hasResponse() {
return responseBuilder_ != null || response_ != null;
}
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
* @return The response.
*/
public io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties getResponse() {
if (responseBuilder_ == null) {
return response_ == null ? io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.getDefaultInstance() : response_;
} else {
return responseBuilder_.getMessage();
}
}
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
*/
public Builder setResponse(io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
responseBuilder_.setMessage(value);
}
return this;
}
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
*/
public Builder setResponse(
io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.Builder builderForValue) {
if (responseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
*/
public Builder mergeResponse(io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties value) {
if (responseBuilder_ == null) {
if (response_ != null) {
response_ =
io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.newBuilder(response_).mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
responseBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
*/
public Builder clearResponse() {
if (responseBuilder_ == null) {
response_ = null;
onChanged();
} else {
response_ = null;
responseBuilder_ = null;
}
return this;
}
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
*/
public io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.Builder getResponseBuilder() {
onChanged();
return getResponseFieldBuilder().getBuilder();
}
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
*/
public io.envoyproxy.envoy.data.accesslog.v3.HTTPResponsePropertiesOrBuilder getResponseOrBuilder() {
if (responseBuilder_ != null) {
return responseBuilder_.getMessageOrBuilder();
} else {
return response_ == null ?
io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.getDefaultInstance() : response_;
}
}
/**
*
* Description of the outgoing HTTP response.
*
*
* .envoy.data.accesslog.v3.HTTPResponseProperties response = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties, io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.Builder, io.envoyproxy.envoy.data.accesslog.v3.HTTPResponsePropertiesOrBuilder>
getResponseFieldBuilder() {
if (responseBuilder_ == null) {
responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties, io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.Builder, io.envoyproxy.envoy.data.accesslog.v3.HTTPResponsePropertiesOrBuilder>(
getResponse(),
getParentForChildren(),
isClean());
response_ = null;
}
return responseBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.data.accesslog.v3.HTTPAccessLogEntry)
}
// @@protoc_insertion_point(class_scope:envoy.data.accesslog.v3.HTTPAccessLogEntry)
private static final io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry();
}
public static io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HTTPAccessLogEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HTTPAccessLogEntry(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3.HTTPAccessLogEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}