Package com.google.cloud.apihub.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllPathParams(Iterable<? extends HttpOperationDetails.PathParam> values) Optional.addPathParams(int index, HttpOperationDetails.PathParam value) Optional.addPathParams(int index, HttpOperationDetails.PathParam.Builder builderForValue) Optional.Optional.addPathParams(HttpOperationDetails.PathParam.Builder builderForValue) Optional.Optional.addPathParamsBuilder(int index) Optional.build()clear()Required.Optional.Optional.Optional.booleanOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.Deprecated.getPathParams(int index) Optional.getPathParamsBuilder(int index) Optional.Optional.intOptional.Optional.getPathParamsOrBuilder(int index) Optional.List<? extends HttpOperationDetails.PathParamOrBuilder>Optional.Deprecated.intOptional.Optional.getQueryParamsOrDefault(String key, HttpOperationDetails.QueryParam defaultValue) Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.booleanRequired.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(HttpOperationDetails other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeHttpOperation(HttpOperation value) Required.Optional.Optional.Optional.putQueryParams(String key, HttpOperationDetails.QueryParam value) Optional.Optional.removePathParams(int index) Optional.removeQueryParams(String key) Optional.setHttpOperation(HttpOperation value) Required.setHttpOperation(HttpOperation.Builder builderForValue) Required.setPathParams(int index, HttpOperationDetails.PathParam value) Optional.setPathParams(int index, HttpOperationDetails.PathParam.Builder builderForValue) Optional.Optional.setRequest(HttpOperationDetails.HttpRequest.Builder builderForValue) Optional.Optional.setResponse(HttpOperationDetails.HttpResponse.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.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.GeneratedMessage.Builder<HttpOperationDetails.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpOperationDetails.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasHttpOperationin interfaceHttpOperationDetailsOrBuilder- Returns:
- Whether the httpOperation field is set.
-
getHttpOperation
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getHttpOperationin interfaceHttpOperationDetailsOrBuilder- Returns:
- The httpOperation.
-
setHttpOperation
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED]; -
setHttpOperation
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeHttpOperation
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearHttpOperation
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED]; -
getHttpOperationBuilder
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED]; -
getHttpOperationOrBuilder
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getHttpOperationOrBuilderin interfaceHttpOperationDetailsOrBuilder
-
getPathParamsList
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPathParamsListin interfaceHttpOperationDetailsOrBuilder
-
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:
getPathParamsCountin interfaceHttpOperationDetailsOrBuilder
-
getPathParams
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPathParamsin interfaceHttpOperationDetailsOrBuilder
-
setPathParams
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
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(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
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
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL]; -
removePathParams
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getPathParamsBuilder
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getPathParamsOrBuilder
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPathParamsOrBuilderin interfaceHttpOperationDetailsOrBuilder
-
getPathParamsOrBuilderList
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPathParamsOrBuilderListin interfaceHttpOperationDetailsOrBuilder
-
addPathParamsBuilder
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addPathParamsBuilder
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL]; -
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:HttpOperationDetailsOrBuilderOptional. Query params of HttpOperation
map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getQueryParamsCountin interfaceHttpOperationDetailsOrBuilder
-
containsQueryParams
Optional. Query params of HttpOperation
map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsQueryParamsin interfaceHttpOperationDetailsOrBuilder
-
getQueryParams
Deprecated.UsegetQueryParamsMap()instead.- Specified by:
getQueryParamsin interfaceHttpOperationDetailsOrBuilder
-
getQueryParamsMap
Optional. Query params of HttpOperation
map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getQueryParamsMapin interfaceHttpOperationDetailsOrBuilder
-
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:
getQueryParamsOrDefaultin interfaceHttpOperationDetailsOrBuilder
-
getQueryParamsOrThrow
Optional. Query params of HttpOperation
map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getQueryParamsOrThrowin interfaceHttpOperationDetailsOrBuilder
-
clearQueryParams
-
removeQueryParams
Optional. Query params of HttpOperation
map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableQueryParams
Deprecated.Use alternate mutation accessors instead. -
putQueryParams
public HttpOperationDetails.Builder putQueryParams(String key, HttpOperationDetails.QueryParam value) Optional. Query params of HttpOperation
map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL]; -
putAllQueryParams
public HttpOperationDetails.Builder putAllQueryParams(Map<String, HttpOperationDetails.QueryParam> values) Optional. Query params of HttpOperation
map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL]; -
putQueryParamsBuilderIfAbsent
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:
hasRequestin interfaceHttpOperationDetailsOrBuilder- Returns:
- Whether the request field is set.
-
getRequest
Optional. Request metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestin interfaceHttpOperationDetailsOrBuilder- Returns:
- The request.
-
setRequest
Optional. Request metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setRequest
public HttpOperationDetails.Builder setRequest(HttpOperationDetails.HttpRequest.Builder builderForValue) 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
Optional. Request metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getRequestBuilder
Optional. Request metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getRequestOrBuilder
Optional. Request metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestOrBuilderin interfaceHttpOperationDetailsOrBuilder
-
hasResponse
public boolean hasResponse()Optional. Response metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasResponsein interfaceHttpOperationDetailsOrBuilder- Returns:
- Whether the response field is set.
-
getResponse
Optional. Response metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponsein interfaceHttpOperationDetailsOrBuilder- Returns:
- The response.
-
setResponse
Optional. Response metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setResponse
public HttpOperationDetails.Builder setResponse(HttpOperationDetails.HttpResponse.Builder builderForValue) 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
Optional. Response metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getResponseBuilder
Optional. Response metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getResponseOrBuilder
Optional. Response metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseOrBuilderin interfaceHttpOperationDetailsOrBuilder
-