Class AttributeContext.HttpRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
io.envoyproxy.envoy.service.auth.v2.AttributeContext.HttpRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AttributeContext.HttpRequestOrBuilder,Cloneable
- Enclosing class:
- AttributeContext.HttpRequest
public static final class AttributeContext.HttpRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
implements AttributeContext.HttpRequestOrBuilder
This message defines attributes for an HTTP request. HTTP/1.x, HTTP/2, gRPC are all considered as HTTP requests. [#next-free-field: 12]Protobuf type
envoy.service.auth.v2.AttributeContext.HttpRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The HTTP request body.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) This field is always empty, and exists for compatibility reasons.The HTTP request `Host` or 'Authority` header value.clearId()The unique ID for a request, which can be propagated to downstream systems.The HTTP request method, such as `GET`, `POST`.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The request target, as it appears in the first line of the HTTP request.The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".This field is always empty, and exists for compatibility reasons.The HTTP URL scheme, such as `http` and `https`.The HTTP request size in bytes.clone()booleancontainsHeaders(String key) The HTTP request headers.getBody()The HTTP request body.com.google.protobuf.ByteStringThe HTTP request body.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThis field is always empty, and exists for compatibility reasons.com.google.protobuf.ByteStringThis field is always empty, and exists for compatibility reasons.Deprecated.intThe HTTP request headers.The HTTP request headers.getHeadersOrDefault(String key, String defaultValue) The HTTP request headers.getHeadersOrThrow(String key) The HTTP request headers.getHost()The HTTP request `Host` or 'Authority` header value.com.google.protobuf.ByteStringThe HTTP request `Host` or 'Authority` header value.getId()The unique ID for a request, which can be propagated to downstream systems.com.google.protobuf.ByteStringThe unique ID for a request, which can be propagated to downstream systems.The HTTP request method, such as `GET`, `POST`.com.google.protobuf.ByteStringThe HTTP request method, such as `GET`, `POST`.Deprecated.getPath()The request target, as it appears in the first line of the HTTP request.com.google.protobuf.ByteStringThe request target, as it appears in the first line of the HTTP request.The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".com.google.protobuf.ByteStringThe network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".getQuery()This field is always empty, and exists for compatibility reasons.com.google.protobuf.ByteStringThis field is always empty, and exists for compatibility reasons.The HTTP URL scheme, such as `http` and `https`.com.google.protobuf.ByteStringThe HTTP URL scheme, such as `http` and `https`.longgetSize()The HTTP request size in bytes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllHeaders(Map<String, String> values) The HTTP request headers.putHeaders(String key, String value) The HTTP request headers.removeHeaders(String key) The HTTP request headers.The HTTP request body.setBodyBytes(com.google.protobuf.ByteString value) The HTTP request body.setFragment(String value) This field is always empty, and exists for compatibility reasons.setFragmentBytes(com.google.protobuf.ByteString value) This field is always empty, and exists for compatibility reasons.The HTTP request `Host` or 'Authority` header value.setHostBytes(com.google.protobuf.ByteString value) The HTTP request `Host` or 'Authority` header value.The unique ID for a request, which can be propagated to downstream systems.setIdBytes(com.google.protobuf.ByteString value) The unique ID for a request, which can be propagated to downstream systems.The HTTP request method, such as `GET`, `POST`.setMethodBytes(com.google.protobuf.ByteString value) The HTTP request method, such as `GET`, `POST`.The request target, as it appears in the first line of the HTTP request.setPathBytes(com.google.protobuf.ByteString value) The request target, as it appears in the first line of the HTTP request.setProtocol(String value) The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".setProtocolBytes(com.google.protobuf.ByteString value) The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".This field is always empty, and exists for compatibility reasons.setQueryBytes(com.google.protobuf.ByteString value) This field is always empty, and exists for compatibility reasons.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The HTTP URL scheme, such as `http` and `https`.setSchemeBytes(com.google.protobuf.ByteString value) The HTTP URL scheme, such as `http` and `https`.setSize(long value) The HTTP request size in bytes.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
setField
public AttributeContext.HttpRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
clearField
public AttributeContext.HttpRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
clearOneof
public AttributeContext.HttpRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
setRepeatedField
public AttributeContext.HttpRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
addRepeatedField
public AttributeContext.HttpRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.HttpRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
mergeFrom
public AttributeContext.HttpRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.HttpRequest.Builder>- Throws:
IOException
-
getId
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service. For HTTP requests, it should be X-Request-ID or equivalent.
string id = 1;- Specified by:
getIdin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service. For HTTP requests, it should be X-Request-ID or equivalent.
string id = 1;- Specified by:
getIdBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for id.
-
setId
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service. For HTTP requests, it should be X-Request-ID or equivalent.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service. For HTTP requests, it should be X-Request-ID or equivalent.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service. For HTTP requests, it should be X-Request-ID or equivalent.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getMethod
The HTTP request method, such as `GET`, `POST`.
string method = 2;- Specified by:
getMethodin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The method.
-
getMethodBytes
public com.google.protobuf.ByteString getMethodBytes()The HTTP request method, such as `GET`, `POST`.
string method = 2;- Specified by:
getMethodBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for method.
-
setMethod
The HTTP request method, such as `GET`, `POST`.
string method = 2;- Parameters:
value- The method to set.- Returns:
- This builder for chaining.
-
clearMethod
The HTTP request method, such as `GET`, `POST`.
string method = 2;- Returns:
- This builder for chaining.
-
setMethodBytes
The HTTP request method, such as `GET`, `POST`.
string method = 2;- Parameters:
value- The bytes for method to set.- Returns:
- This builder for chaining.
-
getHeadersCount
public int getHeadersCount()Description copied from interface:AttributeContext.HttpRequestOrBuilderThe HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersCountin interfaceAttributeContext.HttpRequestOrBuilder
-
containsHeaders
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
containsHeadersin interfaceAttributeContext.HttpRequestOrBuilder
-
getHeaders
Deprecated.UsegetHeadersMap()instead.- Specified by:
getHeadersin interfaceAttributeContext.HttpRequestOrBuilder
-
getHeadersMap
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersMapin interfaceAttributeContext.HttpRequestOrBuilder
-
getHeadersOrDefault
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersOrDefaultin interfaceAttributeContext.HttpRequestOrBuilder
-
getHeadersOrThrow
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersOrThrowin interfaceAttributeContext.HttpRequestOrBuilder
-
clearHeaders
-
removeHeaders
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3; -
getMutableHeaders
Deprecated.Use alternate mutation accessors instead. -
putHeaders
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3; -
putAllHeaders
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lower-cased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3; -
getPath
The request target, as it appears in the first line of the HTTP request. This includes the URL path and query-string. No decoding is performed.
string path = 4;- Specified by:
getPathin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()The request target, as it appears in the first line of the HTTP request. This includes the URL path and query-string. No decoding is performed.
string path = 4;- Specified by:
getPathBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for path.
-
setPath
The request target, as it appears in the first line of the HTTP request. This includes the URL path and query-string. No decoding is performed.
string path = 4;- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
The request target, as it appears in the first line of the HTTP request. This includes the URL path and query-string. No decoding is performed.
string path = 4;- Returns:
- This builder for chaining.
-
setPathBytes
The request target, as it appears in the first line of the HTTP request. This includes the URL path and query-string. No decoding is performed.
string path = 4;- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getHost
The HTTP request `Host` or 'Authority` header value.
string host = 5;- Specified by:
getHostin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()The HTTP request `Host` or 'Authority` header value.
string host = 5;- Specified by:
getHostBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for host.
-
setHost
The HTTP request `Host` or 'Authority` header value.
string host = 5;- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
The HTTP request `Host` or 'Authority` header value.
string host = 5;- Returns:
- This builder for chaining.
-
setHostBytes
The HTTP request `Host` or 'Authority` header value.
string host = 5;- Parameters:
value- The bytes for host to set.- Returns:
- This builder for chaining.
-
getScheme
The HTTP URL scheme, such as `http` and `https`. This is set for HTTP/2 requests only. For HTTP/1.1, use "x-forwarded-for" header value to lookup the scheme of the request.
string scheme = 6;- Specified by:
getSchemein interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The scheme.
-
getSchemeBytes
public com.google.protobuf.ByteString getSchemeBytes()The HTTP URL scheme, such as `http` and `https`. This is set for HTTP/2 requests only. For HTTP/1.1, use "x-forwarded-for" header value to lookup the scheme of the request.
string scheme = 6;- Specified by:
getSchemeBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for scheme.
-
setScheme
The HTTP URL scheme, such as `http` and `https`. This is set for HTTP/2 requests only. For HTTP/1.1, use "x-forwarded-for" header value to lookup the scheme of the request.
string scheme = 6;- Parameters:
value- The scheme to set.- Returns:
- This builder for chaining.
-
clearScheme
The HTTP URL scheme, such as `http` and `https`. This is set for HTTP/2 requests only. For HTTP/1.1, use "x-forwarded-for" header value to lookup the scheme of the request.
string scheme = 6;- Returns:
- This builder for chaining.
-
setSchemeBytes
The HTTP URL scheme, such as `http` and `https`. This is set for HTTP/2 requests only. For HTTP/1.1, use "x-forwarded-for" header value to lookup the scheme of the request.
string scheme = 6;- Parameters:
value- The bytes for scheme to set.- Returns:
- This builder for chaining.
-
getQuery
This field is always empty, and exists for compatibility reasons. The HTTP URL query is included in `path` field.
string query = 7;- Specified by:
getQueryin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()This field is always empty, and exists for compatibility reasons. The HTTP URL query is included in `path` field.
string query = 7;- Specified by:
getQueryBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for query.
-
setQuery
This field is always empty, and exists for compatibility reasons. The HTTP URL query is included in `path` field.
string query = 7;- Parameters:
value- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
This field is always empty, and exists for compatibility reasons. The HTTP URL query is included in `path` field.
string query = 7;- Returns:
- This builder for chaining.
-
setQueryBytes
This field is always empty, and exists for compatibility reasons. The HTTP URL query is included in `path` field.
string query = 7;- Parameters:
value- The bytes for query to set.- Returns:
- This builder for chaining.
-
getFragment
This field is always empty, and exists for compatibility reasons. The URL fragment is not submitted as part of HTTP requests; it is unknowable.
string fragment = 8;- Specified by:
getFragmentin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The fragment.
-
getFragmentBytes
public com.google.protobuf.ByteString getFragmentBytes()This field is always empty, and exists for compatibility reasons. The URL fragment is not submitted as part of HTTP requests; it is unknowable.
string fragment = 8;- Specified by:
getFragmentBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for fragment.
-
setFragment
This field is always empty, and exists for compatibility reasons. The URL fragment is not submitted as part of HTTP requests; it is unknowable.
string fragment = 8;- Parameters:
value- The fragment to set.- Returns:
- This builder for chaining.
-
clearFragment
This field is always empty, and exists for compatibility reasons. The URL fragment is not submitted as part of HTTP requests; it is unknowable.
string fragment = 8;- Returns:
- This builder for chaining.
-
setFragmentBytes
This field is always empty, and exists for compatibility reasons. The URL fragment is not submitted as part of HTTP requests; it is unknowable.
string fragment = 8;- Parameters:
value- The bytes for fragment to set.- Returns:
- This builder for chaining.
-
getSize
public long getSize()The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 9;- Specified by:
getSizein interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The size.
-
setSize
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 9;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 9;- Returns:
- This builder for chaining.
-
getProtocol
The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2". See :repo:`headers.h:ProtocolStrings <source/common/http/headers.h>` for a list of all possible values.
string protocol = 10;- Specified by:
getProtocolin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2". See :repo:`headers.h:ProtocolStrings <source/common/http/headers.h>` for a list of all possible values.
string protocol = 10;- Specified by:
getProtocolBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2". See :repo:`headers.h:ProtocolStrings <source/common/http/headers.h>` for a list of all possible values.
string protocol = 10;- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2". See :repo:`headers.h:ProtocolStrings <source/common/http/headers.h>` for a list of all possible values.
string protocol = 10;- Returns:
- This builder for chaining.
-
setProtocolBytes
The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2". See :repo:`headers.h:ProtocolStrings <source/common/http/headers.h>` for a list of all possible values.
string protocol = 10;- Parameters:
value- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getBody
The HTTP request body.
string body = 11;- Specified by:
getBodyin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The body.
-
getBodyBytes
public com.google.protobuf.ByteString getBodyBytes()The HTTP request body.
string body = 11;- Specified by:
getBodyBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for body.
-
setBody
The HTTP request body.
string body = 11;- Parameters:
value- The body to set.- Returns:
- This builder for chaining.
-
clearBody
The HTTP request body.
string body = 11;- Returns:
- This builder for chaining.
-
setBodyBytes
The HTTP request body.
string body = 11;- Parameters:
value- The bytes for body to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AttributeContext.HttpRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
mergeUnknownFields
public final AttributeContext.HttpRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-