Class CreateEvaluationRequest.Builder (0.1.0)

public static final class CreateEvaluationRequest.Builder extends GeneratedMessage.Builder<CreateEvaluationRequest.Builder> implements CreateEvaluationRequestOrBuilder

Request message for the CreateEvaluation RPC.

Protobuf type google.cloud.workloadmanager.v1.CreateEvaluationRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateEvaluationRequest build()
Returns
Type Description
CreateEvaluationRequest

buildPartial()

public CreateEvaluationRequest buildPartial()
Returns
Type Description
CreateEvaluationRequest

clear()

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

clearEvaluation()

public CreateEvaluationRequest.Builder clearEvaluation()

Required. The resource being created.

.google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateEvaluationRequest.Builder

clearEvaluationId()

public CreateEvaluationRequest.Builder clearEvaluationId()

Required. Id of the requesting object.

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

Returns
Type Description
CreateEvaluationRequest.Builder

This builder for chaining.

clearParent()

public CreateEvaluationRequest.Builder clearParent()

Required. The resource prefix of the evaluation location using the form: projects/{project_id}/locations/{location_id}.

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

Returns
Type Description
CreateEvaluationRequest.Builder

This builder for chaining.

clearRequestId()

public CreateEvaluationRequest.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
CreateEvaluationRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateEvaluationRequest getDefaultInstanceForType()
Returns
Type Description
CreateEvaluationRequest

getDescriptorForType()

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

getEvaluation()

public Evaluation getEvaluation()

Required. The resource being created.

.google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Evaluation

The evaluation.

getEvaluationBuilder()

public Evaluation.Builder getEvaluationBuilder()

Required. The resource being created.

.google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Evaluation.Builder

getEvaluationId()

public String getEvaluationId()

Required. Id of the requesting object.

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

Returns
Type Description
String

The evaluationId.

getEvaluationIdBytes()

public ByteString getEvaluationIdBytes()

Required. Id of the requesting object.

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

Returns
Type Description
ByteString

The bytes for evaluationId.

getEvaluationOrBuilder()

public EvaluationOrBuilder getEvaluationOrBuilder()

Required. The resource being created.

.google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EvaluationOrBuilder

getParent()

public String getParent()

Required. The resource prefix of the evaluation location using the form: projects/{project_id}/locations/{location_id}.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource prefix of the evaluation location using the form: projects/{project_id}/locations/{location_id}.

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.

hasEvaluation()

public boolean hasEvaluation()

Required. The resource being created.

.google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the evaluation field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEvaluation(Evaluation value)

public CreateEvaluationRequest.Builder mergeEvaluation(Evaluation value)

Required. The resource being created.

.google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Evaluation
Returns
Type Description
CreateEvaluationRequest.Builder

mergeFrom(CreateEvaluationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEvaluation(Evaluation value)

public CreateEvaluationRequest.Builder setEvaluation(Evaluation value)

Required. The resource being created.

.google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Evaluation
Returns
Type Description
CreateEvaluationRequest.Builder

setEvaluation(Evaluation.Builder builderForValue)

public CreateEvaluationRequest.Builder setEvaluation(Evaluation.Builder builderForValue)

Required. The resource being created.

.google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Evaluation.Builder
Returns
Type Description
CreateEvaluationRequest.Builder

setEvaluationId(String value)

public CreateEvaluationRequest.Builder setEvaluationId(String value)

Required. Id of the requesting object.

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

Parameter
Name Description
value String

The evaluationId to set.

Returns
Type Description
CreateEvaluationRequest.Builder

This builder for chaining.

setEvaluationIdBytes(ByteString value)

public CreateEvaluationRequest.Builder setEvaluationIdBytes(ByteString value)

Required. Id of the requesting object.

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

Parameter
Name Description
value ByteString

The bytes for evaluationId to set.

Returns
Type Description
CreateEvaluationRequest.Builder

This builder for chaining.

setParent(String value)

public CreateEvaluationRequest.Builder setParent(String value)

Required. The resource prefix of the evaluation location using the form: projects/{project_id}/locations/{location_id}.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateEvaluationRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateEvaluationRequest.Builder setParentBytes(ByteString value)

Required. The resource prefix of the evaluation location using the form: projects/{project_id}/locations/{location_id}.

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

This builder for chaining.

setRequestId(String value)

public CreateEvaluationRequest.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
CreateEvaluationRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateEvaluationRequest.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
CreateEvaluationRequest.Builder

This builder for chaining.