Class CreateOperatorRequest.Builder (0.2.0)

public static final class CreateOperatorRequest.Builder extends GeneratedMessageV3.Builder<CreateOperatorRequest.Builder> implements CreateOperatorRequestOrBuilder

Message for creating a Operator.

Protobuf type google.cloud.visionai.v1.CreateOperatorRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateOperatorRequest build()
Returns
Type Description
CreateOperatorRequest

buildPartial()

public CreateOperatorRequest buildPartial()
Returns
Type Description
CreateOperatorRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperator()

public CreateOperatorRequest.Builder clearOperator()

Required. The resource being created.

.google.cloud.visionai.v1.Operator operator = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateOperatorRequest.Builder

clearOperatorId()

public CreateOperatorRequest.Builder clearOperatorId()

Required. Id of the requesting object.

string operator_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateOperatorRequest.Builder

This builder for chaining.

clearParent()

public CreateOperatorRequest.Builder clearParent()

Required. Value for parent.

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

Returns
Type Description
CreateOperatorRequest.Builder

This builder for chaining.

clearRequestId()

public CreateOperatorRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateOperatorRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateOperatorRequest getDefaultInstanceForType()
Returns
Type Description
CreateOperatorRequest

getDescriptorForType()

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

getOperator()

public Operator getOperator()

Required. The resource being created.

.google.cloud.visionai.v1.Operator operator = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Operator

The operator.

getOperatorBuilder()

public Operator.Builder getOperatorBuilder()

Required. The resource being created.

.google.cloud.visionai.v1.Operator operator = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Operator.Builder

getOperatorId()

public String getOperatorId()

Required. Id of the requesting object.

string operator_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The operatorId.

getOperatorIdBytes()

public ByteString getOperatorIdBytes()

Required. Id of the requesting object.

string operator_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for operatorId.

getOperatorOrBuilder()

public OperatorOrBuilder getOperatorOrBuilder()

Required. The resource being created.

.google.cloud.visionai.v1.Operator operator = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OperatorOrBuilder

getParent()

public String getParent()

Required. Value for parent.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

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

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requestId.

hasOperator()

public boolean hasOperator()

Required. The resource being created.

.google.cloud.visionai.v1.Operator operator = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the operator field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateOperatorRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOperator(Operator value)

public CreateOperatorRequest.Builder mergeOperator(Operator value)

Required. The resource being created.

.google.cloud.visionai.v1.Operator operator = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Operator
Returns
Type Description
CreateOperatorRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setOperator(Operator value)

public CreateOperatorRequest.Builder setOperator(Operator value)

Required. The resource being created.

.google.cloud.visionai.v1.Operator operator = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Operator
Returns
Type Description
CreateOperatorRequest.Builder

setOperator(Operator.Builder builderForValue)

public CreateOperatorRequest.Builder setOperator(Operator.Builder builderForValue)

Required. The resource being created.

.google.cloud.visionai.v1.Operator operator = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Operator.Builder
Returns
Type Description
CreateOperatorRequest.Builder

setOperatorId(String value)

public CreateOperatorRequest.Builder setOperatorId(String value)

Required. Id of the requesting object.

string operator_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The operatorId to set.

Returns
Type Description
CreateOperatorRequest.Builder

This builder for chaining.

setOperatorIdBytes(ByteString value)

public CreateOperatorRequest.Builder setOperatorIdBytes(ByteString value)

Required. Id of the requesting object.

string operator_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for operatorId to set.

Returns
Type Description
CreateOperatorRequest.Builder

This builder for chaining.

setParent(String value)

public CreateOperatorRequest.Builder setParent(String value)

Required. Value for parent.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateOperatorRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateOperatorRequest.Builder setParentBytes(ByteString value)

Required. Value for parent.

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
CreateOperatorRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateOperatorRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateOperatorRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateOperatorRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateOperatorRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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