Class CreateApiOperationRequest.Builder (0.28.0)

public static final class CreateApiOperationRequest.Builder extends GeneratedMessageV3.Builder<CreateApiOperationRequest.Builder> implements CreateApiOperationRequestOrBuilder

The CreateApiOperation method's request.

Protobuf type google.cloud.apihub.v1.CreateApiOperationRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateApiOperationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides

build()

public CreateApiOperationRequest build()
Returns
Type Description
CreateApiOperationRequest

buildPartial()

public CreateApiOperationRequest buildPartial()
Returns
Type Description
CreateApiOperationRequest

clear()

public CreateApiOperationRequest.Builder clear()
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides

clearApiOperation()

public CreateApiOperationRequest.Builder clearApiOperation()

Required. The operation resource to create.

.google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateApiOperationRequest.Builder

clearApiOperationId()

public CreateApiOperationRequest.Builder clearApiOperationId()

Optional. The ID to use for the operation resource, which will become the final component of the operation's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another operation resource in the API hub.
  • If not provided, a system generated id will be used.

    This value should be 4-500 characters, overall resource name which will be of format projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}, its length is limited to 700 characters, and valid characters are /a-z[0-9]-_/.

string api_operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateApiOperationRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateApiOperationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateApiOperationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides

clearParent()

public CreateApiOperationRequest.Builder clearParent()

Required. The parent resource for the operation resource. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateApiOperationRequest.Builder

This builder for chaining.

clone()

public CreateApiOperationRequest.Builder clone()
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides

getApiOperation()

public ApiOperation getApiOperation()

Required. The operation resource to create.

.google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiOperation

The apiOperation.

getApiOperationBuilder()

public ApiOperation.Builder getApiOperationBuilder()

Required. The operation resource to create.

.google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiOperation.Builder

getApiOperationId()

public String getApiOperationId()

Optional. The ID to use for the operation resource, which will become the final component of the operation's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another operation resource in the API hub.
  • If not provided, a system generated id will be used.

    This value should be 4-500 characters, overall resource name which will be of format projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}, its length is limited to 700 characters, and valid characters are /a-z[0-9]-_/.

string api_operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The apiOperationId.

getApiOperationIdBytes()

public ByteString getApiOperationIdBytes()

Optional. The ID to use for the operation resource, which will become the final component of the operation's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another operation resource in the API hub.
  • If not provided, a system generated id will be used.

    This value should be 4-500 characters, overall resource name which will be of format projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}, its length is limited to 700 characters, and valid characters are /a-z[0-9]-_/.

string api_operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for apiOperationId.

getApiOperationOrBuilder()

public ApiOperationOrBuilder getApiOperationOrBuilder()

Required. The operation resource to create.

.google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiOperationOrBuilder

getDefaultInstanceForType()

public CreateApiOperationRequest getDefaultInstanceForType()
Returns
Type Description
CreateApiOperationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource for the operation resource. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource for the operation resource. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasApiOperation()

public boolean hasApiOperation()

Required. The operation resource to create.

.google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the apiOperation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApiOperation(ApiOperation value)

public CreateApiOperationRequest.Builder mergeApiOperation(ApiOperation value)

Required. The operation resource to create.

.google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiOperation
Returns
Type Description
CreateApiOperationRequest.Builder

mergeFrom(CreateApiOperationRequest other)

public CreateApiOperationRequest.Builder mergeFrom(CreateApiOperationRequest other)
Parameter
Name Description
other CreateApiOperationRequest
Returns
Type Description
CreateApiOperationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateApiOperationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateApiOperationRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateApiOperationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides

setApiOperation(ApiOperation value)

public CreateApiOperationRequest.Builder setApiOperation(ApiOperation value)

Required. The operation resource to create.

.google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiOperation
Returns
Type Description
CreateApiOperationRequest.Builder

setApiOperation(ApiOperation.Builder builderForValue)

public CreateApiOperationRequest.Builder setApiOperation(ApiOperation.Builder builderForValue)

Required. The operation resource to create.

.google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ApiOperation.Builder
Returns
Type Description
CreateApiOperationRequest.Builder

setApiOperationId(String value)

public CreateApiOperationRequest.Builder setApiOperationId(String value)

Optional. The ID to use for the operation resource, which will become the final component of the operation's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another operation resource in the API hub.
  • If not provided, a system generated id will be used.

    This value should be 4-500 characters, overall resource name which will be of format projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}, its length is limited to 700 characters, and valid characters are /a-z[0-9]-_/.

string api_operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The apiOperationId to set.

Returns
Type Description
CreateApiOperationRequest.Builder

This builder for chaining.

setApiOperationIdBytes(ByteString value)

public CreateApiOperationRequest.Builder setApiOperationIdBytes(ByteString value)

Optional. The ID to use for the operation resource, which will become the final component of the operation's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another operation resource in the API hub.
  • If not provided, a system generated id will be used.

    This value should be 4-500 characters, overall resource name which will be of format projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}, its length is limited to 700 characters, and valid characters are /a-z[0-9]-_/.

string api_operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for apiOperationId to set.

Returns
Type Description
CreateApiOperationRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateApiOperationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides

setParent(String value)

public CreateApiOperationRequest.Builder setParent(String value)

Required. The parent resource for the operation resource. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateApiOperationRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateApiOperationRequest.Builder setParentBytes(ByteString value)

Required. The parent resource for the operation resource. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateApiOperationRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateApiOperationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateApiOperationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateApiOperationRequest.Builder
Overrides