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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • clear

      public HttpRequestInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • getDefaultInstanceForType

      public HttpRequestInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public HttpRequestInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public HttpRequestInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public HttpRequestInfo.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • setField

      public HttpRequestInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • clearField

      public HttpRequestInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • clearOneof

      public HttpRequestInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • setRepeatedField

      public HttpRequestInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • addRepeatedField

      public HttpRequestInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • mergeFrom

      public HttpRequestInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HttpRequestInfo.Builder>
    • mergeFrom

      public HttpRequestInfo.Builder mergeFrom(HttpRequestInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasHttp in interface HttpRequestInfoOrBuilder
      Returns:
      Whether the http field is set.
    • getHttp

      public HttpInfo getHttp()
       HTTP protocol versioning and information.
       
      .buildless.telemetry.HttpInfo http = 1 [json_name = "http"];
      Specified by:
      getHttp in interface HttpRequestInfoOrBuilder
      Returns:
      The http.
    • setHttp

      public HttpRequestInfo.Builder setHttp(HttpInfo value)
       HTTP protocol versioning and information.
       
      .buildless.telemetry.HttpInfo http = 1 [json_name = "http"];
    • setHttp

      public HttpRequestInfo.Builder setHttp(HttpInfo.Builder builderForValue)
       HTTP protocol versioning and information.
       
      .buildless.telemetry.HttpInfo http = 1 [json_name = "http"];
    • mergeHttp

      public HttpRequestInfo.Builder mergeHttp(HttpInfo value)
       HTTP protocol versioning and information.
       
      .buildless.telemetry.HttpInfo http = 1 [json_name = "http"];
    • clearHttp

      public HttpRequestInfo.Builder clearHttp()
       HTTP protocol versioning and information.
       
      .buildless.telemetry.HttpInfo http = 1 [json_name = "http"];
    • getHttpBuilder

      public HttpInfo.Builder getHttpBuilder()
       HTTP protocol versioning and information.
       
      .buildless.telemetry.HttpInfo http = 1 [json_name = "http"];
    • getHttpOrBuilder

      public HttpInfoOrBuilder getHttpOrBuilder()
       HTTP protocol versioning and information.
       
      .buildless.telemetry.HttpInfo http = 1 [json_name = "http"];
      Specified by:
      getHttpOrBuilder in interface HttpRequestInfoOrBuilder
    • getMethodValue

      public int getMethodValue()
       HTTP method which was specified in the request.
       
      .buildless.telemetry.HttpMethod method = 2 [json_name = "method"];
      Specified by:
      getMethodValue in interface HttpRequestInfoOrBuilder
      Returns:
      The enum numeric value on the wire for method.
    • setMethodValue

      public HttpRequestInfo.Builder setMethodValue(int value)
       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

      public HttpMethod getMethod()
       HTTP method which was specified in the request.
       
      .buildless.telemetry.HttpMethod method = 2 [json_name = "method"];
      Specified by:
      getMethod in interface HttpRequestInfoOrBuilder
      Returns:
      The method.
    • setMethod

      public HttpRequestInfo.Builder setMethod(HttpMethod value)
       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

      public HttpRequestInfo.Builder clearMethod()
       HTTP method which was specified in the request.
       
      .buildless.telemetry.HttpMethod method = 2 [json_name = "method"];
      Returns:
      This builder for chaining.
    • getAuthority

      public String getAuthority()
       Specifies the server authority for a given HTTP request, if known.
       
      string authority = 3 [json_name = "authority"];
      Specified by:
      getAuthority in interface HttpRequestInfoOrBuilder
      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:
      getAuthorityBytes in interface HttpRequestInfoOrBuilder
      Returns:
      The bytes for authority.
    • setAuthority

      public HttpRequestInfo.Builder setAuthority(String value)
       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

      public HttpRequestInfo.Builder clearAuthority()
       Specifies the server authority for a given HTTP request, if known.
       
      string authority = 3 [json_name = "authority"];
      Returns:
      This builder for chaining.
    • setAuthorityBytes

      public HttpRequestInfo.Builder setAuthorityBytes(com.google.protobuf.ByteString value)
       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

      public String getPath()
       Specifies the URI path for a given HTTP request.
       
      string path = 4 [json_name = "path"];
      Specified by:
      getPath in interface HttpRequestInfoOrBuilder
      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:
      getPathBytes in interface HttpRequestInfoOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public HttpRequestInfo.Builder setPath(String value)
       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

      public HttpRequestInfo.Builder clearPath()
       Specifies the URI path for a given HTTP request.
       
      string path = 4 [json_name = "path"];
      Returns:
      This builder for chaining.
    • setPathBytes

      public HttpRequestInfo.Builder setPathBytes(com.google.protobuf.ByteString value)
       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: HttpRequestInfoOrBuilder
       Specifies headers which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];
      Specified by:
      getHeadersCount in interface HttpRequestInfoOrBuilder
    • containsHeaders

      public boolean containsHeaders(String key)
       Specifies headers which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];
      Specified by:
      containsHeaders in interface HttpRequestInfoOrBuilder
    • getHeaders

      @Deprecated public Map<String,HttpMetadata> getHeaders()
      Deprecated.
      Use getHeadersMap() instead.
      Specified by:
      getHeaders in interface HttpRequestInfoOrBuilder
    • getHeadersMap

      public Map<String,HttpMetadata> getHeadersMap()
       Specifies headers which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];
      Specified by:
      getHeadersMap in interface HttpRequestInfoOrBuilder
    • getHeadersOrDefault

      public HttpMetadata getHeadersOrDefault(String key, HttpMetadata defaultValue)
       Specifies headers which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];
      Specified by:
      getHeadersOrDefault in interface HttpRequestInfoOrBuilder
    • getHeadersOrThrow

      public HttpMetadata getHeadersOrThrow(String key)
       Specifies headers which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];
      Specified by:
      getHeadersOrThrow in interface HttpRequestInfoOrBuilder
    • clearHeaders

      public HttpRequestInfo.Builder clearHeaders()
    • removeHeaders

      public HttpRequestInfo.Builder removeHeaders(String key)
       Specifies headers which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];
    • getMutableHeaders

      @Deprecated public Map<String,HttpMetadata> getMutableHeaders()
      Deprecated.
      Use alternate mutation accessors instead.
    • putHeaders

      public HttpRequestInfo.Builder putHeaders(String key, HttpMetadata value)
       Specifies headers which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"];
    • putAllHeaders

      public HttpRequestInfo.Builder putAllHeaders(Map<String,HttpMetadata> values)
       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:
      getSize in interface HttpRequestInfoOrBuilder
      Returns:
      The size.
    • setSize

      public HttpRequestInfo.Builder setSize(int value)
       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

      public HttpRequestInfo.Builder 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: HttpRequestInfoOrBuilder
       Specifies query parameters which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];
      Specified by:
      getQueryCount in interface HttpRequestInfoOrBuilder
    • containsQuery

      public boolean containsQuery(String key)
       Specifies query parameters which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];
      Specified by:
      containsQuery in interface HttpRequestInfoOrBuilder
    • getQuery

      @Deprecated public Map<String,HttpMetadata> getQuery()
      Deprecated.
      Use getQueryMap() instead.
      Specified by:
      getQuery in interface HttpRequestInfoOrBuilder
    • getQueryMap

      public Map<String,HttpMetadata> getQueryMap()
       Specifies query parameters which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];
      Specified by:
      getQueryMap in interface HttpRequestInfoOrBuilder
    • getQueryOrDefault

      public HttpMetadata getQueryOrDefault(String key, HttpMetadata defaultValue)
       Specifies query parameters which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];
      Specified by:
      getQueryOrDefault in interface HttpRequestInfoOrBuilder
    • getQueryOrThrow

      public HttpMetadata getQueryOrThrow(String key)
       Specifies query parameters which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];
      Specified by:
      getQueryOrThrow in interface HttpRequestInfoOrBuilder
    • clearQuery

      public HttpRequestInfo.Builder clearQuery()
    • removeQuery

      public HttpRequestInfo.Builder removeQuery(String key)
       Specifies query parameters which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];
    • getMutableQuery

      @Deprecated public Map<String,HttpMetadata> getMutableQuery()
      Deprecated.
      Use alternate mutation accessors instead.
    • putQuery

      public HttpRequestInfo.Builder putQuery(String key, HttpMetadata value)
       Specifies query parameters which were present on this request.
       
      map<string, .buildless.telemetry.HttpMetadata> query = 7 [json_name = "query"];
    • putAllQuery

      public HttpRequestInfo.Builder putAllQuery(Map<String,HttpMetadata> values)
       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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>
    • mergeUnknownFields

      public final HttpRequestInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HttpRequestInfo.Builder>