Class AttributeContext.HttpRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
- io.envoyproxy.envoy.service.auth.v3.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: 13]
Protobuf typeenvoy.service.auth.v3.AttributeContext.HttpRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeContext.HttpRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AttributeContext.HttpRequestbuild()AttributeContext.HttpRequestbuildPartial()AttributeContext.HttpRequest.Builderclear()AttributeContext.HttpRequest.BuilderclearBody()The HTTP request body.AttributeContext.HttpRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AttributeContext.HttpRequest.BuilderclearFragment()This field is always empty, and exists for compatibility reasons.AttributeContext.HttpRequest.BuilderclearHeaders()AttributeContext.HttpRequest.BuilderclearHost()The HTTP request ``Host`` or '`Authority`` header value.AttributeContext.HttpRequest.BuilderclearId()The unique ID for a request, which can be propagated to downstream systems.AttributeContext.HttpRequest.BuilderclearMethod()The HTTP request method, such as ``GET``, ``POST``.AttributeContext.HttpRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AttributeContext.HttpRequest.BuilderclearPath()The request target, as it appears in the first line of the HTTP request.AttributeContext.HttpRequest.BuilderclearProtocol()The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".AttributeContext.HttpRequest.BuilderclearQuery()This field is always empty, and exists for compatibility reasons.AttributeContext.HttpRequest.BuilderclearRawBody()The HTTP request body in bytes.AttributeContext.HttpRequest.BuilderclearScheme()The HTTP URL scheme, such as ``http`` and ``https``.AttributeContext.HttpRequest.BuilderclearSize()The HTTP request size in bytes.AttributeContext.HttpRequest.Builderclone()booleancontainsHeaders(String key)The HTTP request headers.StringgetBody()The HTTP request body.com.google.protobuf.ByteStringgetBodyBytes()The HTTP request body.AttributeContext.HttpRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFragment()This field is always empty, and exists for compatibility reasons.com.google.protobuf.ByteStringgetFragmentBytes()This field is always empty, and exists for compatibility reasons.Map<String,String>getHeaders()Deprecated.intgetHeadersCount()The HTTP request headers.Map<String,String>getHeadersMap()The HTTP request headers.StringgetHeadersOrDefault(String key, String defaultValue)The HTTP request headers.StringgetHeadersOrThrow(String key)The HTTP request headers.StringgetHost()The HTTP request ``Host`` or '`Authority`` header value.com.google.protobuf.ByteStringgetHostBytes()The HTTP request ``Host`` or '`Authority`` header value.StringgetId()The unique ID for a request, which can be propagated to downstream systems.com.google.protobuf.ByteStringgetIdBytes()The unique ID for a request, which can be propagated to downstream systems.StringgetMethod()The HTTP request method, such as ``GET``, ``POST``.com.google.protobuf.ByteStringgetMethodBytes()The HTTP request method, such as ``GET``, ``POST``.Map<String,String>getMutableHeaders()Deprecated.StringgetPath()The request target, as it appears in the first line of the HTTP request.com.google.protobuf.ByteStringgetPathBytes()The request target, as it appears in the first line of the HTTP request.StringgetProtocol()The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".com.google.protobuf.ByteStringgetProtocolBytes()The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".StringgetQuery()This field is always empty, and exists for compatibility reasons.com.google.protobuf.ByteStringgetQueryBytes()This field is always empty, and exists for compatibility reasons.com.google.protobuf.ByteStringgetRawBody()The HTTP request body in bytes.StringgetScheme()The HTTP URL scheme, such as ``http`` and ``https``.com.google.protobuf.ByteStringgetSchemeBytes()The HTTP URL scheme, such as ``http`` and ``https``.longgetSize()The HTTP request size in bytes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()AttributeContext.HttpRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AttributeContext.HttpRequest.BuildermergeFrom(com.google.protobuf.Message other)AttributeContext.HttpRequest.BuildermergeFrom(AttributeContext.HttpRequest other)AttributeContext.HttpRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AttributeContext.HttpRequest.BuilderputAllHeaders(Map<String,String> values)The HTTP request headers.AttributeContext.HttpRequest.BuilderputHeaders(String key, String value)The HTTP request headers.AttributeContext.HttpRequest.BuilderremoveHeaders(String key)The HTTP request headers.AttributeContext.HttpRequest.BuildersetBody(String value)The HTTP request body.AttributeContext.HttpRequest.BuildersetBodyBytes(com.google.protobuf.ByteString value)The HTTP request body.AttributeContext.HttpRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AttributeContext.HttpRequest.BuildersetFragment(String value)This field is always empty, and exists for compatibility reasons.AttributeContext.HttpRequest.BuildersetFragmentBytes(com.google.protobuf.ByteString value)This field is always empty, and exists for compatibility reasons.AttributeContext.HttpRequest.BuildersetHost(String value)The HTTP request ``Host`` or '`Authority`` header value.AttributeContext.HttpRequest.BuildersetHostBytes(com.google.protobuf.ByteString value)The HTTP request ``Host`` or '`Authority`` header value.AttributeContext.HttpRequest.BuildersetId(String value)The unique ID for a request, which can be propagated to downstream systems.AttributeContext.HttpRequest.BuildersetIdBytes(com.google.protobuf.ByteString value)The unique ID for a request, which can be propagated to downstream systems.AttributeContext.HttpRequest.BuildersetMethod(String value)The HTTP request method, such as ``GET``, ``POST``.AttributeContext.HttpRequest.BuildersetMethodBytes(com.google.protobuf.ByteString value)The HTTP request method, such as ``GET``, ``POST``.AttributeContext.HttpRequest.BuildersetPath(String value)The request target, as it appears in the first line of the HTTP request.AttributeContext.HttpRequest.BuildersetPathBytes(com.google.protobuf.ByteString value)The request target, as it appears in the first line of the HTTP request.AttributeContext.HttpRequest.BuildersetProtocol(String value)The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".AttributeContext.HttpRequest.BuildersetProtocolBytes(com.google.protobuf.ByteString value)The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".AttributeContext.HttpRequest.BuildersetQuery(String value)This field is always empty, and exists for compatibility reasons.AttributeContext.HttpRequest.BuildersetQueryBytes(com.google.protobuf.ByteString value)This field is always empty, and exists for compatibility reasons.AttributeContext.HttpRequest.BuildersetRawBody(com.google.protobuf.ByteString value)The HTTP request body in bytes.AttributeContext.HttpRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AttributeContext.HttpRequest.BuildersetScheme(String value)The HTTP URL scheme, such as ``http`` and ``https``.AttributeContext.HttpRequest.BuildersetSchemeBytes(com.google.protobuf.ByteString value)The HTTP URL scheme, such as ``http`` and ``https``.AttributeContext.HttpRequest.BuildersetSize(long value)The HTTP request size in bytes.AttributeContext.HttpRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.HttpRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin 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
public 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
public AttributeContext.HttpRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AttributeContext.HttpRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AttributeContext.HttpRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AttributeContext.HttpRequest.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
public AttributeContext.HttpRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.HttpRequest.Builder>
-
mergeFrom
public AttributeContext.HttpRequest.Builder mergeFrom(AttributeContext.HttpRequest other)
-
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
public String 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
public AttributeContext.HttpRequest.Builder setId(String value)
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
public AttributeContext.HttpRequest.Builder 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
public AttributeContext.HttpRequest.Builder setIdBytes(com.google.protobuf.ByteString value)
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
public String 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
public AttributeContext.HttpRequest.Builder setMethod(String value)
The HTTP request method, such as ``GET``, ``POST``.
string method = 2;- Parameters:
value- The method to set.- Returns:
- This builder for chaining.
-
clearMethod
public AttributeContext.HttpRequest.Builder clearMethod()
The HTTP request method, such as ``GET``, ``POST``.
string method = 2;- Returns:
- This builder for chaining.
-
setMethodBytes
public AttributeContext.HttpRequest.Builder setMethodBytes(com.google.protobuf.ByteString value)
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
public boolean containsHeaders(String key)
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 public Map<String,String> getHeaders()
Deprecated.UsegetHeadersMap()instead.- Specified by:
getHeadersin interfaceAttributeContext.HttpRequestOrBuilder
-
getHeadersMap
public Map<String,String> 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
public String getHeadersOrDefault(String key, String defaultValue)
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
public String getHeadersOrThrow(String key)
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
public AttributeContext.HttpRequest.Builder clearHeaders()
-
removeHeaders
public AttributeContext.HttpRequest.Builder removeHeaders(String key)
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 public Map<String,String> getMutableHeaders()
Deprecated.Use alternate mutation accessors instead.
-
putHeaders
public AttributeContext.HttpRequest.Builder putHeaders(String key, String value)
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
public AttributeContext.HttpRequest.Builder putAllHeaders(Map<String,String> values)
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
public String 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
public AttributeContext.HttpRequest.Builder setPath(String value)
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
public AttributeContext.HttpRequest.Builder 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
public AttributeContext.HttpRequest.Builder setPathBytes(com.google.protobuf.ByteString value)
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
public String 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
public AttributeContext.HttpRequest.Builder setHost(String value)
The HTTP request ``Host`` or '`Authority`` header value.
string host = 5;- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public AttributeContext.HttpRequest.Builder clearHost()
The HTTP request ``Host`` or '`Authority`` header value.
string host = 5;- Returns:
- This builder for chaining.
-
setHostBytes
public AttributeContext.HttpRequest.Builder setHostBytes(com.google.protobuf.ByteString value)
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
public String getScheme()
The HTTP URL scheme, such as ``http`` and ``https``.
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``.
string scheme = 6;- Specified by:
getSchemeBytesin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The bytes for scheme.
-
setScheme
public AttributeContext.HttpRequest.Builder setScheme(String value)
The HTTP URL scheme, such as ``http`` and ``https``.
string scheme = 6;- Parameters:
value- The scheme to set.- Returns:
- This builder for chaining.
-
clearScheme
public AttributeContext.HttpRequest.Builder clearScheme()
The HTTP URL scheme, such as ``http`` and ``https``.
string scheme = 6;- Returns:
- This builder for chaining.
-
setSchemeBytes
public AttributeContext.HttpRequest.Builder setSchemeBytes(com.google.protobuf.ByteString value)
The HTTP URL scheme, such as ``http`` and ``https``.
string scheme = 6;- Parameters:
value- The bytes for scheme to set.- Returns:
- This builder for chaining.
-
getQuery
public String 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
public AttributeContext.HttpRequest.Builder setQuery(String value)
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
public AttributeContext.HttpRequest.Builder 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
public AttributeContext.HttpRequest.Builder setQueryBytes(com.google.protobuf.ByteString value)
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
public String 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
public AttributeContext.HttpRequest.Builder setFragment(String value)
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
public AttributeContext.HttpRequest.Builder 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
public AttributeContext.HttpRequest.Builder setFragmentBytes(com.google.protobuf.ByteString value)
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
public AttributeContext.HttpRequest.Builder setSize(long value)
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
public AttributeContext.HttpRequest.Builder clearSize()
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 9;- Returns:
- This builder for chaining.
-
getProtocol
public String 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
public AttributeContext.HttpRequest.Builder setProtocol(String value)
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
public AttributeContext.HttpRequest.Builder 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
public AttributeContext.HttpRequest.Builder setProtocolBytes(com.google.protobuf.ByteString value)
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
public String 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
public AttributeContext.HttpRequest.Builder setBody(String value)
The HTTP request body.
string body = 11;- Parameters:
value- The body to set.- Returns:
- This builder for chaining.
-
clearBody
public AttributeContext.HttpRequest.Builder clearBody()
The HTTP request body.
string body = 11;- Returns:
- This builder for chaining.
-
setBodyBytes
public AttributeContext.HttpRequest.Builder setBodyBytes(com.google.protobuf.ByteString value)
The HTTP request body.
string body = 11;- Parameters:
value- The bytes for body to set.- Returns:
- This builder for chaining.
-
getRawBody
public com.google.protobuf.ByteString getRawBody()
The HTTP request body in bytes. This is used instead of :ref:`body <envoy_v3_api_field_service.auth.v3.AttributeContext.HttpRequest.body>` when :ref:`pack_as_bytes <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.BufferSettings.pack_as_bytes>` is set to true.
bytes raw_body = 12;- Specified by:
getRawBodyin interfaceAttributeContext.HttpRequestOrBuilder- Returns:
- The rawBody.
-
setRawBody
public AttributeContext.HttpRequest.Builder setRawBody(com.google.protobuf.ByteString value)
The HTTP request body in bytes. This is used instead of :ref:`body <envoy_v3_api_field_service.auth.v3.AttributeContext.HttpRequest.body>` when :ref:`pack_as_bytes <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.BufferSettings.pack_as_bytes>` is set to true.
bytes raw_body = 12;- Parameters:
value- The rawBody to set.- Returns:
- This builder for chaining.
-
clearRawBody
public AttributeContext.HttpRequest.Builder clearRawBody()
The HTTP request body in bytes. This is used instead of :ref:`body <envoy_v3_api_field_service.auth.v3.AttributeContext.HttpRequest.body>` when :ref:`pack_as_bytes <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.BufferSettings.pack_as_bytes>` is set to true.
bytes raw_body = 12;- 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>
-
-