Class HttpOperationDetails.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.Builder>
com.google.cloud.apihub.v1.HttpOperationDetails.Builder
All Implemented Interfaces:
HttpOperationDetailsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
HttpOperationDetails

public static final class HttpOperationDetails.Builder extends com.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.Builder> implements HttpOperationDetailsOrBuilder
 An HTTP-based API Operation, sometimes called a "REST" Operation.
 
Protobuf type google.cloud.apihub.v1.HttpOperationDetails
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.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.GeneratedMessage.Builder<HttpOperationDetails.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.GeneratedMessage.Builder<HttpOperationDetails.Builder>
    • getDefaultInstanceForType

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

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

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

      public HttpOperationDetails.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<HttpOperationDetails.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.Builder>
    • mergeFrom

      public HttpOperationDetails.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<HttpOperationDetails.Builder>
      Throws:
      IOException
    • hasHttpOperation

      public boolean hasHttpOperation()
       Required. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasHttpOperation in interface HttpOperationDetailsOrBuilder
      Returns:
      Whether the httpOperation field is set.
    • getHttpOperation

      public HttpOperation getHttpOperation()
       Required. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHttpOperation in interface HttpOperationDetailsOrBuilder
      Returns:
      The httpOperation.
    • setHttpOperation

      public HttpOperationDetails.Builder setHttpOperation(HttpOperation value)
       Required. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
    • setHttpOperation

      public HttpOperationDetails.Builder setHttpOperation(HttpOperation.Builder builderForValue)
       Required. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeHttpOperation

      public HttpOperationDetails.Builder mergeHttpOperation(HttpOperation value)
       Required. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearHttpOperation

      public HttpOperationDetails.Builder clearHttpOperation()
       Required. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
    • getHttpOperationBuilder

      public HttpOperation.Builder getHttpOperationBuilder()
       Required. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
    • getHttpOperationOrBuilder

      public HttpOperationOrBuilder getHttpOperationOrBuilder()
       Required. An HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHttpOperationOrBuilder in interface HttpOperationDetailsOrBuilder
    • getPathParamsList

      public List<HttpOperationDetails.PathParam> getPathParamsList()
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathParamsList in interface HttpOperationDetailsOrBuilder
    • getPathParamsCount

      public int getPathParamsCount()
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathParamsCount in interface HttpOperationDetailsOrBuilder
    • getPathParams

      public HttpOperationDetails.PathParam getPathParams(int index)
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathParams in interface HttpOperationDetailsOrBuilder
    • setPathParams

      public HttpOperationDetails.Builder setPathParams(int index, HttpOperationDetails.PathParam value)
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setPathParams

      public HttpOperationDetails.Builder setPathParams(int index, HttpOperationDetails.PathParam.Builder builderForValue)
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addPathParams

       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addPathParams

      public HttpOperationDetails.Builder addPathParams(int index, HttpOperationDetails.PathParam value)
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addPathParams

       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addPathParams

      public HttpOperationDetails.Builder addPathParams(int index, HttpOperationDetails.PathParam.Builder builderForValue)
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllPathParams

      public HttpOperationDetails.Builder addAllPathParams(Iterable<? extends HttpOperationDetails.PathParam> values)
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearPathParams

      public HttpOperationDetails.Builder clearPathParams()
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removePathParams

      public HttpOperationDetails.Builder removePathParams(int index)
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getPathParamsBuilder

      public HttpOperationDetails.PathParam.Builder getPathParamsBuilder(int index)
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getPathParamsOrBuilder

      public HttpOperationDetails.PathParamOrBuilder getPathParamsOrBuilder(int index)
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathParamsOrBuilder in interface HttpOperationDetailsOrBuilder
    • getPathParamsOrBuilderList

      public List<? extends HttpOperationDetails.PathParamOrBuilder> getPathParamsOrBuilderList()
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathParamsOrBuilderList in interface HttpOperationDetailsOrBuilder
    • addPathParamsBuilder

      public HttpOperationDetails.PathParam.Builder addPathParamsBuilder()
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addPathParamsBuilder

      public HttpOperationDetails.PathParam.Builder addPathParamsBuilder(int index)
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getPathParamsBuilderList

      public List<HttpOperationDetails.PathParam.Builder> getPathParamsBuilderList()
       Optional. Path params of HttpOperation
       
      repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getQueryParamsCount

      public int getQueryParamsCount()
      Description copied from interface: HttpOperationDetailsOrBuilder
       Optional. Query params of HttpOperation
       
      map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQueryParamsCount in interface HttpOperationDetailsOrBuilder
    • containsQueryParams

      public boolean containsQueryParams(String key)
       Optional. Query params of HttpOperation
       
      map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsQueryParams in interface HttpOperationDetailsOrBuilder
    • getQueryParams

      Deprecated.
      Use getQueryParamsMap() instead.
      Specified by:
      getQueryParams in interface HttpOperationDetailsOrBuilder
    • getQueryParamsMap

      public Map<String,HttpOperationDetails.QueryParam> getQueryParamsMap()
       Optional. Query params of HttpOperation
       
      map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQueryParamsMap in interface HttpOperationDetailsOrBuilder
    • getQueryParamsOrDefault

      public HttpOperationDetails.QueryParam getQueryParamsOrDefault(String key, HttpOperationDetails.QueryParam defaultValue)
       Optional. Query params of HttpOperation
       
      map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQueryParamsOrDefault in interface HttpOperationDetailsOrBuilder
    • getQueryParamsOrThrow

      public HttpOperationDetails.QueryParam getQueryParamsOrThrow(String key)
       Optional. Query params of HttpOperation
       
      map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQueryParamsOrThrow in interface HttpOperationDetailsOrBuilder
    • clearQueryParams

      public HttpOperationDetails.Builder clearQueryParams()
    • removeQueryParams

      public HttpOperationDetails.Builder removeQueryParams(String key)
       Optional. Query params of HttpOperation
       
      map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableQueryParams

      @Deprecated public Map<String,HttpOperationDetails.QueryParam> getMutableQueryParams()
      Deprecated.
      Use alternate mutation accessors instead.
    • putQueryParams

       Optional. Query params of HttpOperation
       
      map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];
    • putAllQueryParams

       Optional. Query params of HttpOperation
       
      map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];
    • putQueryParamsBuilderIfAbsent

      public HttpOperationDetails.QueryParam.Builder putQueryParamsBuilderIfAbsent(String key)
       Optional. Query params of HttpOperation
       
      map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];
    • hasRequest

      public boolean hasRequest()
       Optional. Request metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRequest in interface HttpOperationDetailsOrBuilder
      Returns:
      Whether the request field is set.
    • getRequest

      public HttpOperationDetails.HttpRequest getRequest()
       Optional. Request metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequest in interface HttpOperationDetailsOrBuilder
      Returns:
      The request.
    • setRequest

       Optional. Request metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setRequest

       Optional. Request metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRequest

       Optional. Request metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearRequest

      public HttpOperationDetails.Builder clearRequest()
       Optional. Request metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getRequestBuilder

      public HttpOperationDetails.HttpRequest.Builder getRequestBuilder()
       Optional. Request metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getRequestOrBuilder

      public HttpOperationDetails.HttpRequestOrBuilder getRequestOrBuilder()
       Optional. Request metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestOrBuilder in interface HttpOperationDetailsOrBuilder
    • hasResponse

      public boolean hasResponse()
       Optional. Response metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasResponse in interface HttpOperationDetailsOrBuilder
      Returns:
      Whether the response field is set.
    • getResponse

      public HttpOperationDetails.HttpResponse getResponse()
       Optional. Response metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponse in interface HttpOperationDetailsOrBuilder
      Returns:
      The response.
    • setResponse

       Optional. Response metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setResponse

       Optional. Response metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeResponse

       Optional. Response metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearResponse

      public HttpOperationDetails.Builder clearResponse()
       Optional. Response metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getResponseBuilder

      public HttpOperationDetails.HttpResponse.Builder getResponseBuilder()
       Optional. Response metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getResponseOrBuilder

      public HttpOperationDetails.HttpResponseOrBuilder getResponseOrBuilder()
       Optional. Response metadata.
       
      .google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseOrBuilder in interface HttpOperationDetailsOrBuilder