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/v3/accesslog.proto
package io.envoyproxy.envoy.data.accesslog.v3;
/**
*
* [#next-free-field: 9]
*
*
* Protobuf type {@code envoy.data.accesslog.v3.HTTPResponseProperties}
*/
public final class HTTPResponseProperties extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.accesslog.v3.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;
}
case 56: {
upstreamHeaderBytesReceived_ = input.readUInt64();
break;
}
case 64: {
downstreamHeaderBytesSent_ = input.readUInt64();
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_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.v3.AccesslogProto.internal_static_envoy_data_accesslog_v3_HTTPResponseProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.class, io.envoyproxy.envoy.data.accesslog.v3.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 protocol overhead or 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.v3.AccesslogProto.internal_static_envoy_data_accesslog_v3_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.
*
*
* string response_code_details = 6;
* @return The bytes for responseCodeDetails.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResponseCodeDetailsBytes() {
java.lang.Object ref = responseCodeDetails_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
responseCodeDetails_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPSTREAM_HEADER_BYTES_RECEIVED_FIELD_NUMBER = 7;
private long upstreamHeaderBytesReceived_;
/**
*
* Number of header bytes received from the upstream by the http stream, including protocol overhead.
*
*
* uint64 upstream_header_bytes_received = 7;
* @return The upstreamHeaderBytesReceived.
*/
@java.lang.Override
public long getUpstreamHeaderBytesReceived() {
return upstreamHeaderBytesReceived_;
}
public static final int DOWNSTREAM_HEADER_BYTES_SENT_FIELD_NUMBER = 8;
private long downstreamHeaderBytesSent_;
/**
*
* Number of header bytes sent to the downstream by the http stream, including protocol overhead.
*
* Size of the HTTP response headers in bytes.
* This value is captured from the OSI layer 7 perspective, i.e. it does not
* include protocol overhead or 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 protocol overhead or 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 protocol overhead or 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.
*