Package com.buildless.telemetry
Class HttpRequestInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
com.buildless.telemetry.HttpRequestInfo.Builder
- All Implemented Interfaces:
HttpRequestInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
HttpRequestInfo
public static final class HttpRequestInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
implements HttpRequestInfoOrBuilder
## HTTP Request Info Specifies an HTTP request, including the method, URI, and headers or trailers associated with the request. Extra info is enclosed which specifies connection-level information as well. The request body is never enclosed.Protobuf type
buildless.telemetry.HttpRequestInfo-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Specifies the server authority for a given HTTP request, if known.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) HTTP protocol versioning and information.HTTP method which was specified in the request.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specifies the URI path for a given HTTP request.Specifies the payload size for this request, if applicable; if no payload is or was present, this is set to `0`.clone()booleancontainsHeaders(String key) Specifies headers which were present on this request.booleancontainsQuery(String key) Specifies query parameters which were present on this request.Specifies the server authority for a given HTTP request, if known.com.google.protobuf.ByteStringSpecifies the server authority for a given HTTP request, if known.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intSpecifies headers which were present on this request.Specifies headers which were present on this request.getHeadersOrDefault(String key, HttpMetadata defaultValue) Specifies headers which were present on this request.getHeadersOrThrow(String key) Specifies headers which were present on this request.getHttp()HTTP protocol versioning and information.HTTP protocol versioning and information.HTTP protocol versioning and information.HTTP method which was specified in the request.intHTTP method which was specified in the request.Deprecated.Deprecated.getPath()Specifies the URI path for a given HTTP request.com.google.protobuf.ByteStringSpecifies the URI path for a given HTTP request.getQuery()Deprecated.intSpecifies query parameters which were present on this request.Specifies query parameters which were present on this request.getQueryOrDefault(String key, HttpMetadata defaultValue) Specifies query parameters which were present on this request.getQueryOrThrow(String key) Specifies query parameters which were present on this request.intgetSize()Specifies the payload size for this request, if applicable; if no payload is or was present, this is set to `0`.booleanhasHttp()HTTP protocol versioning and information.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(HttpRequestInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) HTTP protocol versioning and information.final HttpRequestInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllHeaders(Map<String, HttpMetadata> values) Specifies headers which were present on this request.putAllQuery(Map<String, HttpMetadata> values) Specifies query parameters which were present on this request.putHeaders(String key, HttpMetadata value) Specifies headers which were present on this request.putQuery(String key, HttpMetadata value) Specifies query parameters which were present on this request.removeHeaders(String key) Specifies headers which were present on this request.removeQuery(String key) Specifies query parameters which were present on this request.setAuthority(String value) Specifies the server authority for a given HTTP request, if known.setAuthorityBytes(com.google.protobuf.ByteString value) Specifies the server authority for a given HTTP request, if known.HTTP protocol versioning and information.setHttp(HttpInfo.Builder builderForValue) HTTP protocol versioning and information.setMethod(HttpMethod value) HTTP method which was specified in the request.setMethodValue(int value) HTTP method which was specified in the request.Specifies the URI path for a given HTTP request.setPathBytes(com.google.protobuf.ByteString value) Specifies the URI path for a given HTTP request.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSize(int value) Specifies the payload size for this request, if applicable; if no payload is or was present, this is set to `0`.final HttpRequestInfo.BuildersetUnknownFields(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, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.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<HttpRequestInfo.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<HttpRequestInfo.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<HttpRequestInfo.Builder>
-
setField
public HttpRequestInfo.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<HttpRequestInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
-
setRepeatedField
public HttpRequestInfo.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<HttpRequestInfo.Builder>
-
addRepeatedField
public HttpRequestInfo.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<HttpRequestInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRequestInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
-
mergeFrom
public HttpRequestInfo.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<HttpRequestInfo.Builder>- Throws:
IOException
-
hasHttp
public boolean hasHttp()HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"];- Specified by:
hasHttpin interfaceHttpRequestInfoOrBuilder- Returns:
- Whether the http field is set.
-
getHttp
HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"];- Specified by:
getHttpin interfaceHttpRequestInfoOrBuilder- Returns:
- The http.
-
setHttp
HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"]; -
setHttp
HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"]; -
mergeHttp
HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"]; -
clearHttp
HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"]; -
getHttpBuilder
HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"]; -
getHttpOrBuilder
HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"];- Specified by:
getHttpOrBuilderin interfaceHttpRequestInfoOrBuilder
-
getMethodValue
public int getMethodValue()HTTP method which was specified in the request.
.buildless.telemetry.HttpMethod method = 2 [json_name = "method"];- Specified by:
getMethodValuein interfaceHttpRequestInfoOrBuilder- Returns:
- The enum numeric value on the wire for method.
-
setMethodValue
HTTP method which was specified in the request.
.buildless.telemetry.HttpMethod method = 2 [json_name = "method"];- Parameters:
value- The enum numeric value on the wire for method to set.- Returns:
- This builder for chaining.
-
getMethod
HTTP method which was specified in the request.
.buildless.telemetry.HttpMethod method = 2 [json_name = "method"];- Specified by:
getMethodin interfaceHttpRequestInfoOrBuilder- Returns:
- The method.
-
setMethod
HTTP method which was specified in the request.
.buildless.telemetry.HttpMethod method = 2 [json_name = "method"];- Parameters:
value- The method to set.- Returns:
- This builder for chaining.
-
clearMethod
HTTP method which was specified in the request.
.buildless.telemetry.HttpMethod method = 2 [json_name = "method"];- Returns:
- This builder for chaining.
-
getAuthority
Specifies the server authority for a given HTTP request, if known.
string authority = 3 [json_name = "authority"];- Specified by:
getAuthorityin interfaceHttpRequestInfoOrBuilder- Returns:
- The authority.
-
getAuthorityBytes
public com.google.protobuf.ByteString getAuthorityBytes()Specifies the server authority for a given HTTP request, if known.
string authority = 3 [json_name = "authority"];- Specified by:
getAuthorityBytesin interfaceHttpRequestInfoOrBuilder- Returns:
- The bytes for authority.
-
setAuthority
Specifies the server authority for a given HTTP request, if known.
string authority = 3 [json_name = "authority"];- Parameters:
value- The authority to set.- Returns:
- This builder for chaining.
-
clearAuthority
Specifies the server authority for a given HTTP request, if known.
string authority = 3 [json_name = "authority"];- Returns:
- This builder for chaining.
-
setAuthorityBytes
Specifies the server authority for a given HTTP request, if known.
string authority = 3 [json_name = "authority"];- Parameters:
value- The bytes for authority to set.- Returns:
- This builder for chaining.
-
getPath
Specifies the URI path for a given HTTP request.
string path = 4 [json_name = "path"];- Specified by:
getPathin interfaceHttpRequestInfoOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Specifies the URI path for a given HTTP request.
string path = 4 [json_name = "path"];- Specified by:
getPathBytesin interfaceHttpRequestInfoOrBuilder- Returns:
- The bytes for path.
-
setPath
Specifies the URI path for a given HTTP request.
string path = 4 [json_name = "path"];- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
Specifies the URI path for a given HTTP request.
string path = 4 [json_name = "path"];- Returns:
- This builder for chaining.
-
setPathBytes
Specifies the URI path for a given HTTP request.
string path = 4 [json_name = "path"];- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getHeadersCount
public int getHeadersCount()Description copied from interface:HttpRequestInfoOrBuilderSpecifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];- Specified by:
getHeadersCountin interfaceHttpRequestInfoOrBuilder
-
containsHeaders
Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];- Specified by:
containsHeadersin interfaceHttpRequestInfoOrBuilder
-
getHeaders
Deprecated.UsegetHeadersMap()instead.- Specified by:
getHeadersin interfaceHttpRequestInfoOrBuilder
-
getHeadersMap
Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];- Specified by:
getHeadersMapin interfaceHttpRequestInfoOrBuilder
-
getHeadersOrDefault
Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];- Specified by:
getHeadersOrDefaultin interfaceHttpRequestInfoOrBuilder
-
getHeadersOrThrow
Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];- Specified by:
getHeadersOrThrowin interfaceHttpRequestInfoOrBuilder
-
clearHeaders
-
removeHeaders
Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"]; -
getMutableHeaders
Deprecated.Use alternate mutation accessors instead. -
putHeaders
Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"]; -
putAllHeaders
Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"]; -
getSize
public int getSize()Specifies the payload size for this request, if applicable; if no payload is or was present, this is set to `0`.
uint32 size = 6 [json_name = "size"];- Specified by:
getSizein interfaceHttpRequestInfoOrBuilder- Returns:
- The size.
-
setSize
Specifies the payload size for this request, if applicable; if no payload is or was present, this is set to `0`.
uint32 size = 6 [json_name = "size"];- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
Specifies the payload size for this request, if applicable; if no payload is or was present, this is set to `0`.
uint32 size = 6 [json_name = "size"];- Returns:
- This builder for chaining.
-
getQueryCount
public int getQueryCount()Description copied from interface:HttpRequestInfoOrBuilderSpecifies query parameters which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];- Specified by:
getQueryCountin interfaceHttpRequestInfoOrBuilder
-
containsQuery
Specifies query parameters which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];- Specified by:
containsQueryin interfaceHttpRequestInfoOrBuilder
-
getQuery
Deprecated.UsegetQueryMap()instead.- Specified by:
getQueryin interfaceHttpRequestInfoOrBuilder
-
getQueryMap
Specifies query parameters which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];- Specified by:
getQueryMapin interfaceHttpRequestInfoOrBuilder
-
getQueryOrDefault
Specifies query parameters which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];- Specified by:
getQueryOrDefaultin interfaceHttpRequestInfoOrBuilder
-
getQueryOrThrow
Specifies query parameters which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];- Specified by:
getQueryOrThrowin interfaceHttpRequestInfoOrBuilder
-
clearQuery
-
removeQuery
Specifies query parameters which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"]; -
getMutableQuery
Deprecated.Use alternate mutation accessors instead. -
putQuery
Specifies query parameters which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"]; -
putAllQuery
Specifies query parameters which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"]; -
setUnknownFields
public final HttpRequestInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
-
mergeUnknownFields
public final HttpRequestInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
-