public static final class HttpOperationDetails.Builder extends GeneratedMessageV3.Builder<HttpOperationDetails.Builder> implements HttpOperationDetailsOrBuilder
An HTTP-based API Operation, sometimes called a "REST" Operation.
Protobuf type google.cloud.apihub.v1.HttpOperationDetails
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllPathParams(Iterable<? extends HttpOperationDetails.PathParam> values)
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];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.apihub.v1.HttpOperationDetails.PathParam>
|
addPathParams(HttpOperationDetails.PathParam value)
public HttpOperationDetails.Builder addPathParams(HttpOperationDetails.PathParam value)
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
addPathParams(HttpOperationDetails.PathParam.Builder builderForValue)
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(int index, HttpOperationDetails.PathParam value)
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(int index, HttpOperationDetails.PathParam.Builder builderForValue)
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];
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(int index)
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];
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpOperationDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public HttpOperationDetails build()
buildPartial()
public HttpOperationDetails buildPartial()
clear()
public HttpOperationDetails.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public HttpOperationDetails.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearHttpOperation()
public HttpOperationDetails.Builder clearHttpOperation()
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpOperationDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
clearQueryParams()
public HttpOperationDetails.Builder clearQueryParams()
clearRequest()
public HttpOperationDetails.Builder clearRequest()
Optional. Request metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.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];
clone()
public HttpOperationDetails.Builder clone()
Overrides
containsQueryParams(String key)
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];
Parameter |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public HttpOperationDetails getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getHttpOperation()
public HttpOperation getHttpOperation()
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];
getMutableQueryParams() (deprecated)
public Map<String,HttpOperationDetails.QueryParam> getMutableQueryParams()
Use alternate mutation accessors instead.
getPathParams(int index)
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];
Parameter |
Name |
Description |
index |
int
|
getPathParamsBuilder(int index)
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];
Parameter |
Name |
Description |
index |
int
|
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];
getPathParamsCount()
public int getPathParamsCount()
Optional. Path params of HttpOperation
repeated .google.cloud.apihub.v1.HttpOperationDetails.PathParam path_params = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
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];
getPathParamsOrBuilder(int index)
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];
Parameter |
Name |
Description |
index |
int
|
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];
Returns |
Type |
Description |
List<? extends com.google.cloud.apihub.v1.HttpOperationDetails.PathParamOrBuilder> |
|
getQueryParams() (deprecated)
public Map<String,HttpOperationDetails.QueryParam> getQueryParams()
getQueryParamsCount()
public int getQueryParamsCount()
Optional. Query params of HttpOperation
map<string, .google.cloud.apihub.v1.HttpOperationDetails.QueryParam> query_params = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
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];
getQueryParamsOrDefault(String key, HttpOperationDetails.QueryParam defaultValue)
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];
getQueryParamsOrThrow(String key)
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];
Parameter |
Name |
Description |
key |
String
|
getRequest()
public HttpOperationDetails.HttpRequest getRequest()
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];
getResponse()
public HttpOperationDetails.HttpResponse getResponse()
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];
hasHttpOperation()
public boolean hasHttpOperation()
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the httpOperation field is set.
|
hasRequest()
public boolean hasRequest()
Optional. Request metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the request field is set.
|
hasResponse()
public boolean hasResponse()
Optional. Response metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the response field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(HttpOperationDetails other)
public HttpOperationDetails.Builder mergeFrom(HttpOperationDetails other)
public HttpOperationDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public HttpOperationDetails.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeHttpOperation(HttpOperation value)
public HttpOperationDetails.Builder mergeHttpOperation(HttpOperation value)
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
mergeRequest(HttpOperationDetails.HttpRequest value)
public HttpOperationDetails.Builder mergeRequest(HttpOperationDetails.HttpRequest value)
Optional. Request metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
mergeResponse(HttpOperationDetails.HttpResponse value)
public HttpOperationDetails.Builder mergeResponse(HttpOperationDetails.HttpResponse value)
Optional. Response metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpOperationDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllQueryParams(Map<String,HttpOperationDetails.QueryParam> values)
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];
putQueryParams(String key, HttpOperationDetails.QueryParam value)
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];
putQueryParamsBuilderIfAbsent(String key)
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];
Parameter |
Name |
Description |
key |
String
|
removePathParams(int index)
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];
Parameter |
Name |
Description |
index |
int
|
removeQueryParams(String key)
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];
Parameter |
Name |
Description |
key |
String
|
setField(Descriptors.FieldDescriptor field, Object value)
public HttpOperationDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setHttpOperation(HttpOperation value)
public HttpOperationDetails.Builder setHttpOperation(HttpOperation value)
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
setHttpOperation(HttpOperation.Builder builderForValue)
public HttpOperationDetails.Builder setHttpOperation(HttpOperation.Builder builderForValue)
Required. An HTTP Operation.
.google.cloud.apihub.v1.HttpOperation http_operation = 1 [(.google.api.field_behavior) = REQUIRED];
setPathParams(int index, HttpOperationDetails.PathParam value)
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(int index, HttpOperationDetails.PathParam.Builder builderForValue)
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpOperationDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRequest(HttpOperationDetails.HttpRequest value)
public HttpOperationDetails.Builder setRequest(HttpOperationDetails.HttpRequest value)
Optional. Request metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
setRequest(HttpOperationDetails.HttpRequest.Builder builderForValue)
public HttpOperationDetails.Builder setRequest(HttpOperationDetails.HttpRequest.Builder builderForValue)
Optional. Request metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpRequest request = 4 [(.google.api.field_behavior) = OPTIONAL];
setResponse(HttpOperationDetails.HttpResponse value)
public HttpOperationDetails.Builder setResponse(HttpOperationDetails.HttpResponse value)
Optional. Response metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
setResponse(HttpOperationDetails.HttpResponse.Builder builderForValue)
public HttpOperationDetails.Builder setResponse(HttpOperationDetails.HttpResponse.Builder builderForValue)
Optional. Response metadata.
.google.cloud.apihub.v1.HttpOperationDetails.HttpResponse response = 5 [(.google.api.field_behavior) = OPTIONAL];
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpOperationDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides