Class HTTPRequestProperties.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<HTTPRequestProperties.Builder>
-
- io.envoyproxy.envoy.data.accesslog.v3.HTTPRequestProperties.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,HTTPRequestPropertiesOrBuilder
,java.lang.Cloneable
- Enclosing class:
- HTTPRequestProperties
public static final class HTTPRequestProperties.Builder extends com.google.protobuf.GeneratedMessage.Builder<HTTPRequestProperties.Builder> implements HTTPRequestPropertiesOrBuilder
[#next-free-field: 16]
Protobuf typeenvoy.data.accesslog.v3.HTTPRequestProperties
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
authority_
private int
bitField0_
private long
downstreamHeaderBytesReceived_
private java.lang.Object
forwardedFor_
private java.lang.Object
originalPath_
private java.lang.Object
path_
private com.google.protobuf.UInt32Value
port_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder>
portBuilder_
private java.lang.Object
referer_
private long
requestBodyBytes_
private com.google.protobuf.MapField<java.lang.String,java.lang.String>
requestHeaders_
private long
requestHeadersBytes_
private java.lang.Object
requestId_
private int
requestMethod_
private java.lang.Object
scheme_
private long
upstreamHeaderBytesSent_
private java.lang.Object
userAgent_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HTTPRequestProperties
build()
HTTPRequestProperties
buildPartial()
private void
buildPartial0(HTTPRequestProperties result)
HTTPRequestProperties.Builder
clear()
HTTPRequestProperties.Builder
clearAuthority()
HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.HTTPRequestProperties.Builder
clearDownstreamHeaderBytesReceived()
Number of header bytes received from the downstream by the http stream, including protocol overhead.HTTPRequestProperties.Builder
clearForwardedFor()
Value of the ``X-Forwarded-For`` request header.HTTPRequestProperties.Builder
clearOriginalPath()
Value of the ``X-Envoy-Original-Path`` request header.HTTPRequestProperties.Builder
clearPath()
The path portion from the incoming request URI.HTTPRequestProperties.Builder
clearPort()
The port of the incoming request URI (unused currently, as port is composed onto authority).HTTPRequestProperties.Builder
clearReferer()
Value of the ``Referer`` request header.HTTPRequestProperties.Builder
clearRequestBodyBytes()
Size of the HTTP request body in bytes.HTTPRequestProperties.Builder
clearRequestHeaders()
HTTPRequestProperties.Builder
clearRequestHeadersBytes()
Size of the HTTP request headers in bytes.HTTPRequestProperties.Builder
clearRequestId()
Value of the ``X-Request-Id`` request header This header is used by Envoy to uniquely identify a request.HTTPRequestProperties.Builder
clearRequestMethod()
The request method (RFC 7231/2616).HTTPRequestProperties.Builder
clearScheme()
The scheme portion of the incoming request URI.HTTPRequestProperties.Builder
clearUpstreamHeaderBytesSent()
Number of header bytes sent to the upstream by the http stream, including protocol overhead.HTTPRequestProperties.Builder
clearUserAgent()
Value of the ``User-Agent`` request header.boolean
containsRequestHeaders(java.lang.String key)
Map of additional headers that have been configured to be logged.java.lang.String
getAuthority()
HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.com.google.protobuf.ByteString
getAuthorityBytes()
HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.HTTPRequestProperties
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getDownstreamHeaderBytesReceived()
Number of header bytes received from the downstream by the http stream, including protocol overhead.java.lang.String
getForwardedFor()
Value of the ``X-Forwarded-For`` request header.com.google.protobuf.ByteString
getForwardedForBytes()
Value of the ``X-Forwarded-For`` request header.java.util.Map<java.lang.String,java.lang.String>
getMutableRequestHeaders()
Deprecated.java.lang.String
getOriginalPath()
Value of the ``X-Envoy-Original-Path`` request header.com.google.protobuf.ByteString
getOriginalPathBytes()
Value of the ``X-Envoy-Original-Path`` request header.java.lang.String
getPath()
The path portion from the incoming request URI.com.google.protobuf.ByteString
getPathBytes()
The path portion from the incoming request URI.com.google.protobuf.UInt32Value
getPort()
The port of the incoming request URI (unused currently, as port is composed onto authority).com.google.protobuf.UInt32Value.Builder
getPortBuilder()
The port of the incoming request URI (unused currently, as port is composed onto authority).private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder>
getPortFieldBuilder()
The port of the incoming request URI (unused currently, as port is composed onto authority).com.google.protobuf.UInt32ValueOrBuilder
getPortOrBuilder()
The port of the incoming request URI (unused currently, as port is composed onto authority).java.lang.String
getReferer()
Value of the ``Referer`` request header.com.google.protobuf.ByteString
getRefererBytes()
Value of the ``Referer`` request header.long
getRequestBodyBytes()
Size of the HTTP request body in bytes.java.util.Map<java.lang.String,java.lang.String>
getRequestHeaders()
Deprecated.long
getRequestHeadersBytes()
Size of the HTTP request headers in bytes.int
getRequestHeadersCount()
Map of additional headers that have been configured to be logged.java.util.Map<java.lang.String,java.lang.String>
getRequestHeadersMap()
Map of additional headers that have been configured to be logged.java.lang.String
getRequestHeadersOrDefault(java.lang.String key, java.lang.String defaultValue)
Map of additional headers that have been configured to be logged.java.lang.String
getRequestHeadersOrThrow(java.lang.String key)
Map of additional headers that have been configured to be logged.java.lang.String
getRequestId()
Value of the ``X-Request-Id`` request header This header is used by Envoy to uniquely identify a request.com.google.protobuf.ByteString
getRequestIdBytes()
Value of the ``X-Request-Id`` request header This header is used by Envoy to uniquely identify a request.RequestMethod
getRequestMethod()
The request method (RFC 7231/2616).int
getRequestMethodValue()
The request method (RFC 7231/2616).java.lang.String
getScheme()
The scheme portion of the incoming request URI.com.google.protobuf.ByteString
getSchemeBytes()
The scheme portion of the incoming request URI.long
getUpstreamHeaderBytesSent()
Number of header bytes sent to the upstream by the http stream, including protocol overhead.java.lang.String
getUserAgent()
Value of the ``User-Agent`` request header.com.google.protobuf.ByteString
getUserAgentBytes()
Value of the ``User-Agent`` request header.boolean
hasPort()
The port of the incoming request URI (unused currently, as port is composed onto authority).protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection(int number)
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMutableMapFieldReflection(int number)
private com.google.protobuf.MapField<java.lang.String,java.lang.String>
internalGetMutableRequestHeaders()
private com.google.protobuf.MapField<java.lang.String,java.lang.String>
internalGetRequestHeaders()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
HTTPRequestProperties.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
HTTPRequestProperties.Builder
mergeFrom(com.google.protobuf.Message other)
HTTPRequestProperties.Builder
mergeFrom(HTTPRequestProperties other)
HTTPRequestProperties.Builder
mergePort(com.google.protobuf.UInt32Value value)
The port of the incoming request URI (unused currently, as port is composed onto authority).HTTPRequestProperties.Builder
putAllRequestHeaders(java.util.Map<java.lang.String,java.lang.String> values)
Map of additional headers that have been configured to be logged.HTTPRequestProperties.Builder
putRequestHeaders(java.lang.String key, java.lang.String value)
Map of additional headers that have been configured to be logged.HTTPRequestProperties.Builder
removeRequestHeaders(java.lang.String key)
Map of additional headers that have been configured to be logged.HTTPRequestProperties.Builder
setAuthority(java.lang.String value)
HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.HTTPRequestProperties.Builder
setAuthorityBytes(com.google.protobuf.ByteString value)
HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.HTTPRequestProperties.Builder
setDownstreamHeaderBytesReceived(long value)
Number of header bytes received from the downstream by the http stream, including protocol overhead.HTTPRequestProperties.Builder
setForwardedFor(java.lang.String value)
Value of the ``X-Forwarded-For`` request header.HTTPRequestProperties.Builder
setForwardedForBytes(com.google.protobuf.ByteString value)
Value of the ``X-Forwarded-For`` request header.HTTPRequestProperties.Builder
setOriginalPath(java.lang.String value)
Value of the ``X-Envoy-Original-Path`` request header.HTTPRequestProperties.Builder
setOriginalPathBytes(com.google.protobuf.ByteString value)
Value of the ``X-Envoy-Original-Path`` request header.HTTPRequestProperties.Builder
setPath(java.lang.String value)
The path portion from the incoming request URI.HTTPRequestProperties.Builder
setPathBytes(com.google.protobuf.ByteString value)
The path portion from the incoming request URI.HTTPRequestProperties.Builder
setPort(com.google.protobuf.UInt32Value value)
The port of the incoming request URI (unused currently, as port is composed onto authority).HTTPRequestProperties.Builder
setPort(com.google.protobuf.UInt32Value.Builder builderForValue)
The port of the incoming request URI (unused currently, as port is composed onto authority).HTTPRequestProperties.Builder
setReferer(java.lang.String value)
Value of the ``Referer`` request header.HTTPRequestProperties.Builder
setRefererBytes(com.google.protobuf.ByteString value)
Value of the ``Referer`` request header.HTTPRequestProperties.Builder
setRequestBodyBytes(long value)
Size of the HTTP request body in bytes.HTTPRequestProperties.Builder
setRequestHeadersBytes(long value)
Size of the HTTP request headers in bytes.HTTPRequestProperties.Builder
setRequestId(java.lang.String value)
Value of the ``X-Request-Id`` request header This header is used by Envoy to uniquely identify a request.HTTPRequestProperties.Builder
setRequestIdBytes(com.google.protobuf.ByteString value)
Value of the ``X-Request-Id`` request header This header is used by Envoy to uniquely identify a request.HTTPRequestProperties.Builder
setRequestMethod(RequestMethod value)
The request method (RFC 7231/2616).HTTPRequestProperties.Builder
setRequestMethodValue(int value)
The request method (RFC 7231/2616).HTTPRequestProperties.Builder
setScheme(java.lang.String value)
The scheme portion of the incoming request URI.HTTPRequestProperties.Builder
setSchemeBytes(com.google.protobuf.ByteString value)
The scheme portion of the incoming request URI.HTTPRequestProperties.Builder
setUpstreamHeaderBytesSent(long value)
Number of header bytes sent to the upstream by the http stream, including protocol overhead.HTTPRequestProperties.Builder
setUserAgent(java.lang.String value)
Value of the ``User-Agent`` request header.HTTPRequestProperties.Builder
setUserAgentBytes(com.google.protobuf.ByteString value)
Value of the ``User-Agent`` request header.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
requestMethod_
private int requestMethod_
-
scheme_
private java.lang.Object scheme_
-
authority_
private java.lang.Object authority_
-
port_
private com.google.protobuf.UInt32Value port_
-
portBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> portBuilder_
-
path_
private java.lang.Object path_
-
userAgent_
private java.lang.Object userAgent_
-
referer_
private java.lang.Object referer_
-
forwardedFor_
private java.lang.Object forwardedFor_
-
requestId_
private java.lang.Object requestId_
-
originalPath_
private java.lang.Object originalPath_
-
requestHeadersBytes_
private long requestHeadersBytes_
-
requestBodyBytes_
private long requestBodyBytes_
-
requestHeaders_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> requestHeaders_
-
upstreamHeaderBytesSent_
private long upstreamHeaderBytesSent_
-
downstreamHeaderBytesReceived_
private long downstreamHeaderBytesReceived_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<HTTPRequestProperties.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<HTTPRequestProperties.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<HTTPRequestProperties.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public HTTPRequestProperties.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<HTTPRequestProperties.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<HTTPRequestProperties.Builder>
-
getDefaultInstanceForType
public HTTPRequestProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public HTTPRequestProperties build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HTTPRequestProperties buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(HTTPRequestProperties result)
-
mergeFrom
public HTTPRequestProperties.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HTTPRequestProperties.Builder>
-
mergeFrom
public HTTPRequestProperties.Builder mergeFrom(HTTPRequestProperties other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<HTTPRequestProperties.Builder>
-
mergeFrom
public HTTPRequestProperties.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HTTPRequestProperties.Builder>
- Throws:
java.io.IOException
-
getRequestMethodValue
public int getRequestMethodValue()
The request method (RFC 7231/2616).
.envoy.config.core.v3.RequestMethod request_method = 1 [(.validate.rules) = { ... }
- Specified by:
getRequestMethodValue
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The enum numeric value on the wire for requestMethod.
-
setRequestMethodValue
public HTTPRequestProperties.Builder setRequestMethodValue(int value)
The request method (RFC 7231/2616).
.envoy.config.core.v3.RequestMethod request_method = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The enum numeric value on the wire for requestMethod to set.- Returns:
- This builder for chaining.
-
getRequestMethod
public RequestMethod getRequestMethod()
The request method (RFC 7231/2616).
.envoy.config.core.v3.RequestMethod request_method = 1 [(.validate.rules) = { ... }
- Specified by:
getRequestMethod
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The requestMethod.
-
setRequestMethod
public HTTPRequestProperties.Builder setRequestMethod(RequestMethod value)
The request method (RFC 7231/2616).
.envoy.config.core.v3.RequestMethod request_method = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The requestMethod to set.- Returns:
- This builder for chaining.
-
clearRequestMethod
public HTTPRequestProperties.Builder clearRequestMethod()
The request method (RFC 7231/2616).
.envoy.config.core.v3.RequestMethod request_method = 1 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
getScheme
public java.lang.String getScheme()
The scheme portion of the incoming request URI.
string scheme = 2;
- Specified by:
getScheme
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The scheme.
-
getSchemeBytes
public com.google.protobuf.ByteString getSchemeBytes()
The scheme portion of the incoming request URI.
string scheme = 2;
- Specified by:
getSchemeBytes
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The bytes for scheme.
-
setScheme
public HTTPRequestProperties.Builder setScheme(java.lang.String value)
The scheme portion of the incoming request URI.
string scheme = 2;
- Parameters:
value
- The scheme to set.- Returns:
- This builder for chaining.
-
clearScheme
public HTTPRequestProperties.Builder clearScheme()
The scheme portion of the incoming request URI.
string scheme = 2;
- Returns:
- This builder for chaining.
-
setSchemeBytes
public HTTPRequestProperties.Builder setSchemeBytes(com.google.protobuf.ByteString value)
The scheme portion of the incoming request URI.
string scheme = 2;
- Parameters:
value
- The bytes for scheme to set.- Returns:
- This builder for chaining.
-
getAuthority
public java.lang.String getAuthority()
HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.
string authority = 3;
- Specified by:
getAuthority
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The authority.
-
getAuthorityBytes
public com.google.protobuf.ByteString getAuthorityBytes()
HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.
string authority = 3;
- Specified by:
getAuthorityBytes
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The bytes for authority.
-
setAuthority
public HTTPRequestProperties.Builder setAuthority(java.lang.String value)
HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.
string authority = 3;
- Parameters:
value
- The authority to set.- Returns:
- This builder for chaining.
-
clearAuthority
public HTTPRequestProperties.Builder clearAuthority()
HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.
string authority = 3;
- Returns:
- This builder for chaining.
-
setAuthorityBytes
public HTTPRequestProperties.Builder setAuthorityBytes(com.google.protobuf.ByteString value)
HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.
string authority = 3;
- Parameters:
value
- The bytes for authority to set.- Returns:
- This builder for chaining.
-
hasPort
public boolean hasPort()
The port of the incoming request URI (unused currently, as port is composed onto authority).
.google.protobuf.UInt32Value port = 4;
- Specified by:
hasPort
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- Whether the port field is set.
-
getPort
public com.google.protobuf.UInt32Value getPort()
The port of the incoming request URI (unused currently, as port is composed onto authority).
.google.protobuf.UInt32Value port = 4;
- Specified by:
getPort
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The port.
-
setPort
public HTTPRequestProperties.Builder setPort(com.google.protobuf.UInt32Value value)
The port of the incoming request URI (unused currently, as port is composed onto authority).
.google.protobuf.UInt32Value port = 4;
-
setPort
public HTTPRequestProperties.Builder setPort(com.google.protobuf.UInt32Value.Builder builderForValue)
The port of the incoming request URI (unused currently, as port is composed onto authority).
.google.protobuf.UInt32Value port = 4;
-
mergePort
public HTTPRequestProperties.Builder mergePort(com.google.protobuf.UInt32Value value)
The port of the incoming request URI (unused currently, as port is composed onto authority).
.google.protobuf.UInt32Value port = 4;
-
clearPort
public HTTPRequestProperties.Builder clearPort()
The port of the incoming request URI (unused currently, as port is composed onto authority).
.google.protobuf.UInt32Value port = 4;
-
getPortBuilder
public com.google.protobuf.UInt32Value.Builder getPortBuilder()
The port of the incoming request URI (unused currently, as port is composed onto authority).
.google.protobuf.UInt32Value port = 4;
-
getPortOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getPortOrBuilder()
The port of the incoming request URI (unused currently, as port is composed onto authority).
.google.protobuf.UInt32Value port = 4;
- Specified by:
getPortOrBuilder
in interfaceHTTPRequestPropertiesOrBuilder
-
getPortFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> getPortFieldBuilder()
The port of the incoming request URI (unused currently, as port is composed onto authority).
.google.protobuf.UInt32Value port = 4;
-
getPath
public java.lang.String getPath()
The path portion from the incoming request URI.
string path = 5;
- Specified by:
getPath
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
The path portion from the incoming request URI.
string path = 5;
- Specified by:
getPathBytes
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The bytes for path.
-
setPath
public HTTPRequestProperties.Builder setPath(java.lang.String value)
The path portion from the incoming request URI.
string path = 5;
- Parameters:
value
- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public HTTPRequestProperties.Builder clearPath()
The path portion from the incoming request URI.
string path = 5;
- Returns:
- This builder for chaining.
-
setPathBytes
public HTTPRequestProperties.Builder setPathBytes(com.google.protobuf.ByteString value)
The path portion from the incoming request URI.
string path = 5;
- Parameters:
value
- The bytes for path to set.- Returns:
- This builder for chaining.
-
getUserAgent
public java.lang.String getUserAgent()
Value of the ``User-Agent`` request header.
string user_agent = 6;
- Specified by:
getUserAgent
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The userAgent.
-
getUserAgentBytes
public com.google.protobuf.ByteString getUserAgentBytes()
Value of the ``User-Agent`` request header.
string user_agent = 6;
- Specified by:
getUserAgentBytes
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The bytes for userAgent.
-
setUserAgent
public HTTPRequestProperties.Builder setUserAgent(java.lang.String value)
Value of the ``User-Agent`` request header.
string user_agent = 6;
- Parameters:
value
- The userAgent to set.- Returns:
- This builder for chaining.
-
clearUserAgent
public HTTPRequestProperties.Builder clearUserAgent()
Value of the ``User-Agent`` request header.
string user_agent = 6;
- Returns:
- This builder for chaining.
-
setUserAgentBytes
public HTTPRequestProperties.Builder setUserAgentBytes(com.google.protobuf.ByteString value)
Value of the ``User-Agent`` request header.
string user_agent = 6;
- Parameters:
value
- The bytes for userAgent to set.- Returns:
- This builder for chaining.
-
getReferer
public java.lang.String getReferer()
Value of the ``Referer`` request header.
string referer = 7;
- Specified by:
getReferer
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The referer.
-
getRefererBytes
public com.google.protobuf.ByteString getRefererBytes()
Value of the ``Referer`` request header.
string referer = 7;
- Specified by:
getRefererBytes
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The bytes for referer.
-
setReferer
public HTTPRequestProperties.Builder setReferer(java.lang.String value)
Value of the ``Referer`` request header.
string referer = 7;
- Parameters:
value
- The referer to set.- Returns:
- This builder for chaining.
-
clearReferer
public HTTPRequestProperties.Builder clearReferer()
Value of the ``Referer`` request header.
string referer = 7;
- Returns:
- This builder for chaining.
-
setRefererBytes
public HTTPRequestProperties.Builder setRefererBytes(com.google.protobuf.ByteString value)
Value of the ``Referer`` request header.
string referer = 7;
- Parameters:
value
- The bytes for referer to set.- Returns:
- This builder for chaining.
-
getForwardedFor
public java.lang.String getForwardedFor()
Value of the ``X-Forwarded-For`` request header.
string forwarded_for = 8;
- Specified by:
getForwardedFor
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The forwardedFor.
-
getForwardedForBytes
public com.google.protobuf.ByteString getForwardedForBytes()
Value of the ``X-Forwarded-For`` request header.
string forwarded_for = 8;
- Specified by:
getForwardedForBytes
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The bytes for forwardedFor.
-
setForwardedFor
public HTTPRequestProperties.Builder setForwardedFor(java.lang.String value)
Value of the ``X-Forwarded-For`` request header.
string forwarded_for = 8;
- Parameters:
value
- The forwardedFor to set.- Returns:
- This builder for chaining.
-
clearForwardedFor
public HTTPRequestProperties.Builder clearForwardedFor()
Value of the ``X-Forwarded-For`` request header.
string forwarded_for = 8;
- Returns:
- This builder for chaining.
-
setForwardedForBytes
public HTTPRequestProperties.Builder setForwardedForBytes(com.google.protobuf.ByteString value)
Value of the ``X-Forwarded-For`` request header.
string forwarded_for = 8;
- Parameters:
value
- The bytes for forwardedFor to set.- Returns:
- This builder for chaining.
-
getRequestId
public java.lang.String getRequestId()
Value of the ``X-Request-Id`` request header This header is used by Envoy to uniquely identify a request. It will be generated for all external requests and internal requests that do not already have a request ID.
string request_id = 9;
- Specified by:
getRequestId
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()
Value of the ``X-Request-Id`` request header This header is used by Envoy to uniquely identify a request. It will be generated for all external requests and internal requests that do not already have a request ID.
string request_id = 9;
- Specified by:
getRequestIdBytes
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The bytes for requestId.
-
setRequestId
public HTTPRequestProperties.Builder setRequestId(java.lang.String value)
Value of the ``X-Request-Id`` request header This header is used by Envoy to uniquely identify a request. It will be generated for all external requests and internal requests that do not already have a request ID.
string request_id = 9;
- Parameters:
value
- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
public HTTPRequestProperties.Builder clearRequestId()
Value of the ``X-Request-Id`` request header This header is used by Envoy to uniquely identify a request. It will be generated for all external requests and internal requests that do not already have a request ID.
string request_id = 9;
- Returns:
- This builder for chaining.
-
setRequestIdBytes
public HTTPRequestProperties.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
Value of the ``X-Request-Id`` request header This header is used by Envoy to uniquely identify a request. It will be generated for all external requests and internal requests that do not already have a request ID.
string request_id = 9;
- Parameters:
value
- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
getOriginalPath
public java.lang.String getOriginalPath()
Value of the ``X-Envoy-Original-Path`` request header.
string original_path = 10;
- Specified by:
getOriginalPath
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The originalPath.
-
getOriginalPathBytes
public com.google.protobuf.ByteString getOriginalPathBytes()
Value of the ``X-Envoy-Original-Path`` request header.
string original_path = 10;
- Specified by:
getOriginalPathBytes
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The bytes for originalPath.
-
setOriginalPath
public HTTPRequestProperties.Builder setOriginalPath(java.lang.String value)
Value of the ``X-Envoy-Original-Path`` request header.
string original_path = 10;
- Parameters:
value
- The originalPath to set.- Returns:
- This builder for chaining.
-
clearOriginalPath
public HTTPRequestProperties.Builder clearOriginalPath()
Value of the ``X-Envoy-Original-Path`` request header.
string original_path = 10;
- Returns:
- This builder for chaining.
-
setOriginalPathBytes
public HTTPRequestProperties.Builder setOriginalPathBytes(com.google.protobuf.ByteString value)
Value of the ``X-Envoy-Original-Path`` request header.
string original_path = 10;
- Parameters:
value
- The bytes for originalPath to set.- Returns:
- This builder for chaining.
-
getRequestHeadersBytes
public long getRequestHeadersBytes()
Size of the HTTP request 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 request_headers_bytes = 11;
- Specified by:
getRequestHeadersBytes
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The requestHeadersBytes.
-
setRequestHeadersBytes
public HTTPRequestProperties.Builder setRequestHeadersBytes(long value)
Size of the HTTP request 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 request_headers_bytes = 11;
- Parameters:
value
- The requestHeadersBytes to set.- Returns:
- This builder for chaining.
-
clearRequestHeadersBytes
public HTTPRequestProperties.Builder clearRequestHeadersBytes()
Size of the HTTP request 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 request_headers_bytes = 11;
- Returns:
- This builder for chaining.
-
getRequestBodyBytes
public long getRequestBodyBytes()
Size of the HTTP request 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 request_body_bytes = 12;
- Specified by:
getRequestBodyBytes
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The requestBodyBytes.
-
setRequestBodyBytes
public HTTPRequestProperties.Builder setRequestBodyBytes(long value)
Size of the HTTP request 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 request_body_bytes = 12;
- Parameters:
value
- The requestBodyBytes to set.- Returns:
- This builder for chaining.
-
clearRequestBodyBytes
public HTTPRequestProperties.Builder clearRequestBodyBytes()
Size of the HTTP request 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 request_body_bytes = 12;
- Returns:
- This builder for chaining.
-
internalGetRequestHeaders
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetRequestHeaders()
-
internalGetMutableRequestHeaders
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetMutableRequestHeaders()
-
getRequestHeadersCount
public int getRequestHeadersCount()
Description copied from interface:HTTPRequestPropertiesOrBuilder
Map of additional headers that have been configured to be logged.
map<string, string> request_headers = 13;
- Specified by:
getRequestHeadersCount
in interfaceHTTPRequestPropertiesOrBuilder
-
containsRequestHeaders
public boolean containsRequestHeaders(java.lang.String key)
Map of additional headers that have been configured to be logged.
map<string, string> request_headers = 13;
- Specified by:
containsRequestHeaders
in interfaceHTTPRequestPropertiesOrBuilder
-
getRequestHeaders
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
Deprecated.UsegetRequestHeadersMap()
instead.- Specified by:
getRequestHeaders
in interfaceHTTPRequestPropertiesOrBuilder
-
getRequestHeadersMap
public java.util.Map<java.lang.String,java.lang.String> getRequestHeadersMap()
Map of additional headers that have been configured to be logged.
map<string, string> request_headers = 13;
- Specified by:
getRequestHeadersMap
in interfaceHTTPRequestPropertiesOrBuilder
-
getRequestHeadersOrDefault
public java.lang.String getRequestHeadersOrDefault(java.lang.String key, java.lang.String defaultValue)
Map of additional headers that have been configured to be logged.
map<string, string> request_headers = 13;
- Specified by:
getRequestHeadersOrDefault
in interfaceHTTPRequestPropertiesOrBuilder
-
getRequestHeadersOrThrow
public java.lang.String getRequestHeadersOrThrow(java.lang.String key)
Map of additional headers that have been configured to be logged.
map<string, string> request_headers = 13;
- Specified by:
getRequestHeadersOrThrow
in interfaceHTTPRequestPropertiesOrBuilder
-
clearRequestHeaders
public HTTPRequestProperties.Builder clearRequestHeaders()
-
removeRequestHeaders
public HTTPRequestProperties.Builder removeRequestHeaders(java.lang.String key)
Map of additional headers that have been configured to be logged.
map<string, string> request_headers = 13;
-
getMutableRequestHeaders
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableRequestHeaders()
Deprecated.Use alternate mutation accessors instead.
-
putRequestHeaders
public HTTPRequestProperties.Builder putRequestHeaders(java.lang.String key, java.lang.String value)
Map of additional headers that have been configured to be logged.
map<string, string> request_headers = 13;
-
putAllRequestHeaders
public HTTPRequestProperties.Builder putAllRequestHeaders(java.util.Map<java.lang.String,java.lang.String> values)
Map of additional headers that have been configured to be logged.
map<string, string> request_headers = 13;
-
getUpstreamHeaderBytesSent
public long getUpstreamHeaderBytesSent()
Number of header bytes sent to the upstream by the http stream, including protocol overhead. This value accumulates during upstream retries.
uint64 upstream_header_bytes_sent = 14;
- Specified by:
getUpstreamHeaderBytesSent
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The upstreamHeaderBytesSent.
-
setUpstreamHeaderBytesSent
public HTTPRequestProperties.Builder setUpstreamHeaderBytesSent(long value)
Number of header bytes sent to the upstream by the http stream, including protocol overhead. This value accumulates during upstream retries.
uint64 upstream_header_bytes_sent = 14;
- Parameters:
value
- The upstreamHeaderBytesSent to set.- Returns:
- This builder for chaining.
-
clearUpstreamHeaderBytesSent
public HTTPRequestProperties.Builder clearUpstreamHeaderBytesSent()
Number of header bytes sent to the upstream by the http stream, including protocol overhead. This value accumulates during upstream retries.
uint64 upstream_header_bytes_sent = 14;
- Returns:
- This builder for chaining.
-
getDownstreamHeaderBytesReceived
public long getDownstreamHeaderBytesReceived()
Number of header bytes received from the downstream by the http stream, including protocol overhead.
uint64 downstream_header_bytes_received = 15;
- Specified by:
getDownstreamHeaderBytesReceived
in interfaceHTTPRequestPropertiesOrBuilder
- Returns:
- The downstreamHeaderBytesReceived.
-
setDownstreamHeaderBytesReceived
public HTTPRequestProperties.Builder setDownstreamHeaderBytesReceived(long value)
Number of header bytes received from the downstream by the http stream, including protocol overhead.
uint64 downstream_header_bytes_received = 15;
- Parameters:
value
- The downstreamHeaderBytesReceived to set.- Returns:
- This builder for chaining.
-
clearDownstreamHeaderBytesReceived
public HTTPRequestProperties.Builder clearDownstreamHeaderBytesReceived()
Number of header bytes received from the downstream by the http stream, including protocol overhead.
uint64 downstream_header_bytes_received = 15;
- Returns:
- This builder for chaining.
-
-