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/data/accesslog/v2/accesslog.proto
package io.envoyproxy.envoy.data.accesslog.v2;
/**
*
* [#next-free-field: 7]
*
*
* Protobuf type {@code envoy.data.accesslog.v2.HTTPResponseProperties}
*/
public final class HTTPResponseProperties extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.accesslog.v2.HTTPResponseProperties)
HTTPResponsePropertiesOrBuilder {
private static final long serialVersionUID = 0L;
// Use HTTPResponseProperties.newBuilder() to construct.
private HTTPResponseProperties(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HTTPResponseProperties() {
responseCodeDetails_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HTTPResponseProperties();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HTTPResponseProperties(
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: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (responseCode_ != null) {
subBuilder = responseCode_.toBuilder();
}
responseCode_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(responseCode_);
responseCode_ = subBuilder.buildPartial();
}
break;
}
case 16: {
responseHeadersBytes_ = input.readUInt64();
break;
}
case 24: {
responseBodyBytes_ = input.readUInt64();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
responseHeaders_ = com.google.protobuf.MapField.newMapField(
ResponseHeadersDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
responseHeaders__ = input.readMessage(
ResponseHeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
responseHeaders_.getMutableMap().put(
responseHeaders__.getKey(), responseHeaders__.getValue());
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
responseTrailers_ = com.google.protobuf.MapField.newMapField(
ResponseTrailersDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
responseTrailers__ = input.readMessage(
ResponseTrailersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
responseTrailers_.getMutableMap().put(
responseTrailers__.getKey(), responseTrailers__.getValue());
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
responseCodeDetails_ = 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.data.accesslog.v2.AccesslogProto.internal_static_envoy_data_accesslog_v2_HTTPResponseProperties_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetResponseHeaders();
case 5:
return internalGetResponseTrailers();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.accesslog.v2.AccesslogProto.internal_static_envoy_data_accesslog_v2_HTTPResponseProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.class, io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.Builder.class);
}
public static final int RESPONSE_CODE_FIELD_NUMBER = 1;
private com.google.protobuf.UInt32Value responseCode_;
/**
*
* The HTTP response code returned by Envoy.
*
*
* .google.protobuf.UInt32Value response_code = 1;
* @return Whether the responseCode field is set.
*/
@java.lang.Override
public boolean hasResponseCode() {
return responseCode_ != null;
}
/**
*
*
* .google.protobuf.UInt32Value response_code = 1;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getResponseCodeOrBuilder() {
return getResponseCode();
}
public static final int RESPONSE_HEADERS_BYTES_FIELD_NUMBER = 2;
private long responseHeadersBytes_;
/**
*
* Size of the HTTP response headers in bytes.
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include overhead from framing or encoding at other networking layers.
*
*
* uint64 response_headers_bytes = 2;
* @return The responseHeadersBytes.
*/
@java.lang.Override
public long getResponseHeadersBytes() {
return responseHeadersBytes_;
}
public static final int RESPONSE_BODY_BYTES_FIELD_NUMBER = 3;
private long responseBodyBytes_;
/**
*
* Size of the HTTP response body in bytes.
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include overhead from framing or encoding at other networking layers.
*
*
* uint64 response_body_bytes = 3;
* @return The responseBodyBytes.
*/
@java.lang.Override
public long getResponseBodyBytes() {
return responseBodyBytes_;
}
public static final int RESPONSE_HEADERS_FIELD_NUMBER = 4;
private static final class ResponseHeadersDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.envoyproxy.envoy.data.accesslog.v2.AccesslogProto.internal_static_envoy_data_accesslog_v2_HTTPResponseProperties_ResponseHeadersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> responseHeaders_;
private com.google.protobuf.MapField
internalGetResponseHeaders() {
if (responseHeaders_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResponseHeadersDefaultEntryHolder.defaultEntry);
}
return responseHeaders_;
}
public int getResponseHeadersCount() {
return internalGetResponseHeaders().getMap().size();
}
/**
*
* Map of additional headers configured to be logged.
*
*
* map<string, string> response_headers = 4;
*/
@java.lang.Override
public boolean containsResponseHeaders(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResponseHeaders().getMap().containsKey(key);
}
/**
* Use {@link #getResponseHeadersMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResponseHeaders() {
return getResponseHeadersMap();
}
/**
*
* Map of additional headers configured to be logged.
*
* Size of the HTTP response headers in bytes.
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include overhead from framing or encoding at other networking layers.
*
*
* uint64 response_headers_bytes = 2;
* @return The responseHeadersBytes.
*/
@java.lang.Override
public long getResponseHeadersBytes() {
return responseHeadersBytes_;
}
/**
*
* Size of the HTTP response headers in bytes.
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include overhead from framing or encoding at other networking layers.
*
*
* uint64 response_headers_bytes = 2;
* @param value The responseHeadersBytes to set.
* @return This builder for chaining.
*/
public Builder setResponseHeadersBytes(long value) {
responseHeadersBytes_ = value;
onChanged();
return this;
}
/**
*
* Size of the HTTP response headers in bytes.
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include overhead from framing or encoding at other networking layers.
*
*
* uint64 response_headers_bytes = 2;
* @return This builder for chaining.
*/
public Builder clearResponseHeadersBytes() {
responseHeadersBytes_ = 0L;
onChanged();
return this;
}
private long responseBodyBytes_ ;
/**
*
* Size of the HTTP response body in bytes.
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include overhead from framing or encoding at other networking layers.
*
*
* uint64 response_body_bytes = 3;
* @return The responseBodyBytes.
*/
@java.lang.Override
public long getResponseBodyBytes() {
return responseBodyBytes_;
}
/**
*
* Size of the HTTP response body in bytes.
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include overhead from framing or encoding at other networking layers.
*
*
* uint64 response_body_bytes = 3;
* @param value The responseBodyBytes to set.
* @return This builder for chaining.
*/
public Builder setResponseBodyBytes(long value) {
responseBodyBytes_ = value;
onChanged();
return this;
}
/**
*
* Size of the HTTP response body in bytes.
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include overhead from framing or encoding at other networking layers.
*
*
* uint64 response_body_bytes = 3;
* @return This builder for chaining.
*/
public Builder clearResponseBodyBytes() {
responseBodyBytes_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> responseHeaders_;
private com.google.protobuf.MapField
internalGetResponseHeaders() {
if (responseHeaders_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResponseHeadersDefaultEntryHolder.defaultEntry);
}
return responseHeaders_;
}
private com.google.protobuf.MapField
internalGetMutableResponseHeaders() {
onChanged();;
if (responseHeaders_ == null) {
responseHeaders_ = com.google.protobuf.MapField.newMapField(
ResponseHeadersDefaultEntryHolder.defaultEntry);
}
if (!responseHeaders_.isMutable()) {
responseHeaders_ = responseHeaders_.copy();
}
return responseHeaders_;
}
public int getResponseHeadersCount() {
return internalGetResponseHeaders().getMap().size();
}
/**
*
* Map of additional headers configured to be logged.
*
*
* map<string, string> response_headers = 4;
*/
@java.lang.Override
public boolean containsResponseHeaders(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResponseHeaders().getMap().containsKey(key);
}
/**
* Use {@link #getResponseHeadersMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResponseHeaders() {
return getResponseHeadersMap();
}
/**
*
* Map of additional headers configured to be logged.
*