All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties Maven / Gradle / Ivy

// 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; } /** *
   * The HTTP response code returned by Envoy.
   * 
* * .google.protobuf.UInt32Value response_code = 1; * @return The responseCode. */ @java.lang.Override public com.google.protobuf.UInt32Value getResponseCode() { return responseCode_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : responseCode_; } /** *
   * The HTTP response code returned by Envoy.
   * 
* * .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.
   * 
* * map<string, string> response_headers = 4; */ @java.lang.Override public java.util.Map getResponseHeadersMap() { return internalGetResponseHeaders().getMap(); } /** *
   * Map of additional headers configured to be logged.
   * 
* * map<string, string> response_headers = 4; */ @java.lang.Override public java.lang.String getResponseHeadersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponseHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Map of additional headers configured to be logged.
   * 
* * map<string, string> response_headers = 4; */ @java.lang.Override public java.lang.String getResponseHeadersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponseHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int RESPONSE_TRAILERS_FIELD_NUMBER = 5; private static final class ResponseTrailersDefaultEntryHolder { 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_ResponseTrailersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> responseTrailers_; private com.google.protobuf.MapField internalGetResponseTrailers() { if (responseTrailers_ == null) { return com.google.protobuf.MapField.emptyMapField( ResponseTrailersDefaultEntryHolder.defaultEntry); } return responseTrailers_; } public int getResponseTrailersCount() { return internalGetResponseTrailers().getMap().size(); } /** *
   * Map of trailers configured to be logged.
   * 
* * map<string, string> response_trailers = 5; */ @java.lang.Override public boolean containsResponseTrailers( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResponseTrailers().getMap().containsKey(key); } /** * Use {@link #getResponseTrailersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResponseTrailers() { return getResponseTrailersMap(); } /** *
   * Map of trailers configured to be logged.
   * 
* * map<string, string> response_trailers = 5; */ @java.lang.Override public java.util.Map getResponseTrailersMap() { return internalGetResponseTrailers().getMap(); } /** *
   * Map of trailers configured to be logged.
   * 
* * map<string, string> response_trailers = 5; */ @java.lang.Override public java.lang.String getResponseTrailersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponseTrailers().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Map of trailers configured to be logged.
   * 
* * map<string, string> response_trailers = 5; */ @java.lang.Override public java.lang.String getResponseTrailersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponseTrailers().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int RESPONSE_CODE_DETAILS_FIELD_NUMBER = 6; private volatile java.lang.Object responseCodeDetails_; /** *
   * The HTTP response code details.
   * 
* * string response_code_details = 6; * @return The responseCodeDetails. */ @java.lang.Override public java.lang.String getResponseCodeDetails() { java.lang.Object ref = responseCodeDetails_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); responseCodeDetails_ = s; return s; } } /** *
   * The HTTP response code details.
   * 
* * 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; } } 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 (responseCode_ != null) { output.writeMessage(1, getResponseCode()); } if (responseHeadersBytes_ != 0L) { output.writeUInt64(2, responseHeadersBytes_); } if (responseBodyBytes_ != 0L) { output.writeUInt64(3, responseBodyBytes_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetResponseHeaders(), ResponseHeadersDefaultEntryHolder.defaultEntry, 4); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetResponseTrailers(), ResponseTrailersDefaultEntryHolder.defaultEntry, 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseCodeDetails_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, responseCodeDetails_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (responseCode_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponseCode()); } if (responseHeadersBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, responseHeadersBytes_); } if (responseBodyBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, responseBodyBytes_); } for (java.util.Map.Entry entry : internalGetResponseHeaders().getMap().entrySet()) { com.google.protobuf.MapEntry responseHeaders__ = ResponseHeadersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, responseHeaders__); } for (java.util.Map.Entry entry : internalGetResponseTrailers().getMap().entrySet()) { com.google.protobuf.MapEntry responseTrailers__ = ResponseTrailersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, responseTrailers__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseCodeDetails_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, responseCodeDetails_); } 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.v2.HTTPResponseProperties)) { return super.equals(obj); } io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties other = (io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties) obj; if (hasResponseCode() != other.hasResponseCode()) return false; if (hasResponseCode()) { if (!getResponseCode() .equals(other.getResponseCode())) return false; } if (getResponseHeadersBytes() != other.getResponseHeadersBytes()) return false; if (getResponseBodyBytes() != other.getResponseBodyBytes()) return false; if (!internalGetResponseHeaders().equals( other.internalGetResponseHeaders())) return false; if (!internalGetResponseTrailers().equals( other.internalGetResponseTrailers())) return false; if (!getResponseCodeDetails() .equals(other.getResponseCodeDetails())) 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 (hasResponseCode()) { hash = (37 * hash) + RESPONSE_CODE_FIELD_NUMBER; hash = (53 * hash) + getResponseCode().hashCode(); } hash = (37 * hash) + RESPONSE_HEADERS_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getResponseHeadersBytes()); hash = (37 * hash) + RESPONSE_BODY_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getResponseBodyBytes()); if (!internalGetResponseHeaders().getMap().isEmpty()) { hash = (37 * hash) + RESPONSE_HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetResponseHeaders().hashCode(); } if (!internalGetResponseTrailers().getMap().isEmpty()) { hash = (37 * hash) + RESPONSE_TRAILERS_FIELD_NUMBER; hash = (53 * hash) + internalGetResponseTrailers().hashCode(); } hash = (37 * hash) + RESPONSE_CODE_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getResponseCodeDetails().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties 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.v2.HTTPResponseProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties 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.v2.HTTPResponseProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties 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.v2.HTTPResponseProperties parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties 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.v2.HTTPResponseProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties 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.v2.HTTPResponseProperties 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.v2.HTTPResponseProperties 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.v2.HTTPResponseProperties 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; } /** *
   * [#next-free-field: 7]
   * 
* * Protobuf type {@code envoy.data.accesslog.v2.HTTPResponseProperties} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.data.accesslog.v2.HTTPResponseProperties) io.envoyproxy.envoy.data.accesslog.v2.HTTPResponsePropertiesOrBuilder { 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"}) 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); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableResponseHeaders(); case 5: return internalGetMutableResponseTrailers(); 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); } // Construct using io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.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 (responseCodeBuilder_ == null) { responseCode_ = null; } else { responseCode_ = null; responseCodeBuilder_ = null; } responseHeadersBytes_ = 0L; responseBodyBytes_ = 0L; internalGetMutableResponseHeaders().clear(); internalGetMutableResponseTrailers().clear(); responseCodeDetails_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.data.accesslog.v2.AccesslogProto.internal_static_envoy_data_accesslog_v2_HTTPResponseProperties_descriptor; } @java.lang.Override public io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties getDefaultInstanceForType() { return io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties build() { io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties buildPartial() { io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties result = new io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties(this); int from_bitField0_ = bitField0_; if (responseCodeBuilder_ == null) { result.responseCode_ = responseCode_; } else { result.responseCode_ = responseCodeBuilder_.build(); } result.responseHeadersBytes_ = responseHeadersBytes_; result.responseBodyBytes_ = responseBodyBytes_; result.responseHeaders_ = internalGetResponseHeaders(); result.responseHeaders_.makeImmutable(); result.responseTrailers_ = internalGetResponseTrailers(); result.responseTrailers_.makeImmutable(); result.responseCodeDetails_ = responseCodeDetails_; 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.v2.HTTPResponseProperties) { return mergeFrom((io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties other) { if (other == io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties.getDefaultInstance()) return this; if (other.hasResponseCode()) { mergeResponseCode(other.getResponseCode()); } if (other.getResponseHeadersBytes() != 0L) { setResponseHeadersBytes(other.getResponseHeadersBytes()); } if (other.getResponseBodyBytes() != 0L) { setResponseBodyBytes(other.getResponseBodyBytes()); } internalGetMutableResponseHeaders().mergeFrom( other.internalGetResponseHeaders()); internalGetMutableResponseTrailers().mergeFrom( other.internalGetResponseTrailers()); if (!other.getResponseCodeDetails().isEmpty()) { responseCodeDetails_ = other.responseCodeDetails_; 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.data.accesslog.v2.HTTPResponseProperties parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.UInt32Value responseCode_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> responseCodeBuilder_; /** *
     * The HTTP response code returned by Envoy.
     * 
* * .google.protobuf.UInt32Value response_code = 1; * @return Whether the responseCode field is set. */ public boolean hasResponseCode() { return responseCodeBuilder_ != null || responseCode_ != null; } /** *
     * The HTTP response code returned by Envoy.
     * 
* * .google.protobuf.UInt32Value response_code = 1; * @return The responseCode. */ public com.google.protobuf.UInt32Value getResponseCode() { if (responseCodeBuilder_ == null) { return responseCode_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : responseCode_; } else { return responseCodeBuilder_.getMessage(); } } /** *
     * The HTTP response code returned by Envoy.
     * 
* * .google.protobuf.UInt32Value response_code = 1; */ public Builder setResponseCode(com.google.protobuf.UInt32Value value) { if (responseCodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } responseCode_ = value; onChanged(); } else { responseCodeBuilder_.setMessage(value); } return this; } /** *
     * The HTTP response code returned by Envoy.
     * 
* * .google.protobuf.UInt32Value response_code = 1; */ public Builder setResponseCode( com.google.protobuf.UInt32Value.Builder builderForValue) { if (responseCodeBuilder_ == null) { responseCode_ = builderForValue.build(); onChanged(); } else { responseCodeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The HTTP response code returned by Envoy.
     * 
* * .google.protobuf.UInt32Value response_code = 1; */ public Builder mergeResponseCode(com.google.protobuf.UInt32Value value) { if (responseCodeBuilder_ == null) { if (responseCode_ != null) { responseCode_ = com.google.protobuf.UInt32Value.newBuilder(responseCode_).mergeFrom(value).buildPartial(); } else { responseCode_ = value; } onChanged(); } else { responseCodeBuilder_.mergeFrom(value); } return this; } /** *
     * The HTTP response code returned by Envoy.
     * 
* * .google.protobuf.UInt32Value response_code = 1; */ public Builder clearResponseCode() { if (responseCodeBuilder_ == null) { responseCode_ = null; onChanged(); } else { responseCode_ = null; responseCodeBuilder_ = null; } return this; } /** *
     * The HTTP response code returned by Envoy.
     * 
* * .google.protobuf.UInt32Value response_code = 1; */ public com.google.protobuf.UInt32Value.Builder getResponseCodeBuilder() { onChanged(); return getResponseCodeFieldBuilder().getBuilder(); } /** *
     * The HTTP response code returned by Envoy.
     * 
* * .google.protobuf.UInt32Value response_code = 1; */ public com.google.protobuf.UInt32ValueOrBuilder getResponseCodeOrBuilder() { if (responseCodeBuilder_ != null) { return responseCodeBuilder_.getMessageOrBuilder(); } else { return responseCode_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : responseCode_; } } /** *
     * The HTTP response code returned by Envoy.
     * 
* * .google.protobuf.UInt32Value response_code = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getResponseCodeFieldBuilder() { if (responseCodeBuilder_ == null) { responseCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getResponseCode(), getParentForChildren(), isClean()); responseCode_ = null; } return responseCodeBuilder_; } 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_; } /** *
     * 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.
     * 
* * map<string, string> response_headers = 4; */ @java.lang.Override public java.util.Map getResponseHeadersMap() { return internalGetResponseHeaders().getMap(); } /** *
     * Map of additional headers configured to be logged.
     * 
* * map<string, string> response_headers = 4; */ @java.lang.Override public java.lang.String getResponseHeadersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponseHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Map of additional headers configured to be logged.
     * 
* * map<string, string> response_headers = 4; */ @java.lang.Override public java.lang.String getResponseHeadersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponseHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearResponseHeaders() { internalGetMutableResponseHeaders().getMutableMap() .clear(); return this; } /** *
     * Map of additional headers configured to be logged.
     * 
* * map<string, string> response_headers = 4; */ public Builder removeResponseHeaders( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableResponseHeaders().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResponseHeaders() { return internalGetMutableResponseHeaders().getMutableMap(); } /** *
     * Map of additional headers configured to be logged.
     * 
* * map<string, string> response_headers = 4; */ public Builder putResponseHeaders( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableResponseHeaders().getMutableMap() .put(key, value); return this; } /** *
     * Map of additional headers configured to be logged.
     * 
* * map<string, string> response_headers = 4; */ public Builder putAllResponseHeaders( java.util.Map values) { internalGetMutableResponseHeaders().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> responseTrailers_; private com.google.protobuf.MapField internalGetResponseTrailers() { if (responseTrailers_ == null) { return com.google.protobuf.MapField.emptyMapField( ResponseTrailersDefaultEntryHolder.defaultEntry); } return responseTrailers_; } private com.google.protobuf.MapField internalGetMutableResponseTrailers() { onChanged();; if (responseTrailers_ == null) { responseTrailers_ = com.google.protobuf.MapField.newMapField( ResponseTrailersDefaultEntryHolder.defaultEntry); } if (!responseTrailers_.isMutable()) { responseTrailers_ = responseTrailers_.copy(); } return responseTrailers_; } public int getResponseTrailersCount() { return internalGetResponseTrailers().getMap().size(); } /** *
     * Map of trailers configured to be logged.
     * 
* * map<string, string> response_trailers = 5; */ @java.lang.Override public boolean containsResponseTrailers( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResponseTrailers().getMap().containsKey(key); } /** * Use {@link #getResponseTrailersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResponseTrailers() { return getResponseTrailersMap(); } /** *
     * Map of trailers configured to be logged.
     * 
* * map<string, string> response_trailers = 5; */ @java.lang.Override public java.util.Map getResponseTrailersMap() { return internalGetResponseTrailers().getMap(); } /** *
     * Map of trailers configured to be logged.
     * 
* * map<string, string> response_trailers = 5; */ @java.lang.Override public java.lang.String getResponseTrailersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponseTrailers().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Map of trailers configured to be logged.
     * 
* * map<string, string> response_trailers = 5; */ @java.lang.Override public java.lang.String getResponseTrailersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponseTrailers().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearResponseTrailers() { internalGetMutableResponseTrailers().getMutableMap() .clear(); return this; } /** *
     * Map of trailers configured to be logged.
     * 
* * map<string, string> response_trailers = 5; */ public Builder removeResponseTrailers( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableResponseTrailers().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResponseTrailers() { return internalGetMutableResponseTrailers().getMutableMap(); } /** *
     * Map of trailers configured to be logged.
     * 
* * map<string, string> response_trailers = 5; */ public Builder putResponseTrailers( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableResponseTrailers().getMutableMap() .put(key, value); return this; } /** *
     * Map of trailers configured to be logged.
     * 
* * map<string, string> response_trailers = 5; */ public Builder putAllResponseTrailers( java.util.Map values) { internalGetMutableResponseTrailers().getMutableMap() .putAll(values); return this; } private java.lang.Object responseCodeDetails_ = ""; /** *
     * The HTTP response code details.
     * 
* * string response_code_details = 6; * @return The responseCodeDetails. */ public java.lang.String getResponseCodeDetails() { java.lang.Object ref = responseCodeDetails_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); responseCodeDetails_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The HTTP response code details.
     * 
* * string response_code_details = 6; * @return The bytes for responseCodeDetails. */ public com.google.protobuf.ByteString getResponseCodeDetailsBytes() { java.lang.Object ref = responseCodeDetails_; if (ref instanceof 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; } } /** *
     * The HTTP response code details.
     * 
* * string response_code_details = 6; * @param value The responseCodeDetails to set. * @return This builder for chaining. */ public Builder setResponseCodeDetails( java.lang.String value) { if (value == null) { throw new NullPointerException(); } responseCodeDetails_ = value; onChanged(); return this; } /** *
     * The HTTP response code details.
     * 
* * string response_code_details = 6; * @return This builder for chaining. */ public Builder clearResponseCodeDetails() { responseCodeDetails_ = getDefaultInstance().getResponseCodeDetails(); onChanged(); return this; } /** *
     * The HTTP response code details.
     * 
* * string response_code_details = 6; * @param value The bytes for responseCodeDetails to set. * @return This builder for chaining. */ public Builder setResponseCodeDetailsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); responseCodeDetails_ = 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.data.accesslog.v2.HTTPResponseProperties) } // @@protoc_insertion_point(class_scope:envoy.data.accesslog.v2.HTTPResponseProperties) private static final io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties(); } public static io.envoyproxy.envoy.data.accesslog.v2.HTTPResponseProperties getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HTTPResponseProperties parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HTTPResponseProperties(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.v2.HTTPResponseProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy