Class EvaluationExpectation.Builder (0.3.0)

public static final class EvaluationExpectation.Builder extends GeneratedMessage.Builder<EvaluationExpectation.Builder> implements EvaluationExpectationOrBuilder

An evaluation expectation represents a specific criteria to evaluate against.

Protobuf type google.cloud.ces.v1beta.EvaluationExpectation

Static Methods

getDescriptor()

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

Methods

addAllTags(Iterable<String> values)

public EvaluationExpectation.Builder addAllTags(Iterable<String> values)

Optional. User-defined tags for expectations. Can be used to filter expectations.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The tags to add.

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

addTags(String value)

public EvaluationExpectation.Builder addTags(String value)

Optional. User-defined tags for expectations. Can be used to filter expectations.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The tags to add.

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public EvaluationExpectation.Builder addTagsBytes(ByteString value)

Optional. User-defined tags for expectations. Can be used to filter expectations.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the tags to add.

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

build()

public EvaluationExpectation build()
Returns
Type Description
EvaluationExpectation

buildPartial()

public EvaluationExpectation buildPartial()
Returns
Type Description
EvaluationExpectation

clear()

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

clearCreateTime()

public EvaluationExpectation.Builder clearCreateTime()

Output only. Timestamp when the evaluation expectation was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationExpectation.Builder

clearCriteria()

public EvaluationExpectation.Builder clearCriteria()
Returns
Type Description
EvaluationExpectation.Builder

clearDisplayName()

public EvaluationExpectation.Builder clearDisplayName()

Required. User-defined display name. Must be unique within the app.

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

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

clearEtag()

public EvaluationExpectation.Builder clearEtag()

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

clearLlmCriteria()

public EvaluationExpectation.Builder clearLlmCriteria()

Optional. Evaluation criteria based on an LLM prompt.

.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteria llm_criteria = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationExpectation.Builder

clearName()

public EvaluationExpectation.Builder clearName()

Identifier. The unique identifier of this evaluation expectation. Format: projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

clearTags()

public EvaluationExpectation.Builder clearTags()

Optional. User-defined tags for expectations. Can be used to filter expectations.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

clearUpdateTime()

public EvaluationExpectation.Builder clearUpdateTime()

Output only. Timestamp when the evaluation expectation was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationExpectation.Builder

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when the evaluation expectation was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when the evaluation expectation was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when the evaluation expectation was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCriteriaCase()

public EvaluationExpectation.CriteriaCase getCriteriaCase()
Returns
Type Description
EvaluationExpectation.CriteriaCase

getDefaultInstanceForType()

public EvaluationExpectation getDefaultInstanceForType()
Returns
Type Description
EvaluationExpectation

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. User-defined display name. Must be unique within the app.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. User-defined display name. Must be unique within the app.

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

Returns
Type Description
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for etag.

getLlmCriteria()

public EvaluationExpectation.LlmCriteria getLlmCriteria()

Optional. Evaluation criteria based on an LLM prompt.

.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteria llm_criteria = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationExpectation.LlmCriteria

The llmCriteria.

getLlmCriteriaBuilder()

public EvaluationExpectation.LlmCriteria.Builder getLlmCriteriaBuilder()

Optional. Evaluation criteria based on an LLM prompt.

.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteria llm_criteria = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationExpectation.LlmCriteria.Builder

getLlmCriteriaOrBuilder()

public EvaluationExpectation.LlmCriteriaOrBuilder getLlmCriteriaOrBuilder()

Optional. Evaluation criteria based on an LLM prompt.

.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteria llm_criteria = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationExpectation.LlmCriteriaOrBuilder

getName()

public String getName()

Identifier. The unique identifier of this evaluation expectation. Format: projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The unique identifier of this evaluation expectation. Format: projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getTags(int index)

public String getTags(int index)

Optional. User-defined tags for expectations. Can be used to filter expectations.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tags at the given index.

getTagsBytes(int index)

public ByteString getTagsBytes(int index)

Optional. User-defined tags for expectations. Can be used to filter expectations.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the tags at the given index.

getTagsCount()

public int getTagsCount()

Optional. User-defined tags for expectations. Can be used to filter expectations.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

Optional. User-defined tags for expectations. Can be used to filter expectations.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the tags.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when the evaluation expectation was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Timestamp when the evaluation expectation was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when the evaluation expectation was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when the evaluation expectation was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasLlmCriteria()

public boolean hasLlmCriteria()

Optional. Evaluation criteria based on an LLM prompt.

.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteria llm_criteria = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the llmCriteria field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp when the evaluation expectation was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public EvaluationExpectation.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when the evaluation expectation was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EvaluationExpectation.Builder

mergeFrom(EvaluationExpectation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLlmCriteria(EvaluationExpectation.LlmCriteria value)

public EvaluationExpectation.Builder mergeLlmCriteria(EvaluationExpectation.LlmCriteria value)

Optional. Evaluation criteria based on an LLM prompt.

.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteria llm_criteria = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EvaluationExpectation.LlmCriteria
Returns
Type Description
EvaluationExpectation.Builder

mergeUpdateTime(Timestamp value)

public EvaluationExpectation.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp when the evaluation expectation was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EvaluationExpectation.Builder

setCreateTime(Timestamp value)

public EvaluationExpectation.Builder setCreateTime(Timestamp value)

Output only. Timestamp when the evaluation expectation was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EvaluationExpectation.Builder

setCreateTime(Timestamp.Builder builderForValue)

public EvaluationExpectation.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the evaluation expectation was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EvaluationExpectation.Builder

setDisplayName(String value)

public EvaluationExpectation.Builder setDisplayName(String value)

Required. User-defined display name. Must be unique within the app.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public EvaluationExpectation.Builder setDisplayNameBytes(ByteString value)

Required. User-defined display name. Must be unique within the app.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

setEtag(String value)

public EvaluationExpectation.Builder setEtag(String value)

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public EvaluationExpectation.Builder setEtagBytes(ByteString value)

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

setLlmCriteria(EvaluationExpectation.LlmCriteria value)

public EvaluationExpectation.Builder setLlmCriteria(EvaluationExpectation.LlmCriteria value)

Optional. Evaluation criteria based on an LLM prompt.

.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteria llm_criteria = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EvaluationExpectation.LlmCriteria
Returns
Type Description
EvaluationExpectation.Builder

setLlmCriteria(EvaluationExpectation.LlmCriteria.Builder builderForValue)

public EvaluationExpectation.Builder setLlmCriteria(EvaluationExpectation.LlmCriteria.Builder builderForValue)

Optional. Evaluation criteria based on an LLM prompt.

.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteria llm_criteria = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue EvaluationExpectation.LlmCriteria.Builder
Returns
Type Description
EvaluationExpectation.Builder

setName(String value)

public EvaluationExpectation.Builder setName(String value)

Identifier. The unique identifier of this evaluation expectation. Format: projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EvaluationExpectation.Builder setNameBytes(ByteString value)

Identifier. The unique identifier of this evaluation expectation. Format: projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

setTags(int index, String value)

public EvaluationExpectation.Builder setTags(int index, String value)

Optional. User-defined tags for expectations. Can be used to filter expectations.

repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The tags to set.

Returns
Type Description
EvaluationExpectation.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public EvaluationExpectation.Builder setUpdateTime(Timestamp value)

Output only. Timestamp when the evaluation expectation was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EvaluationExpectation.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public EvaluationExpectation.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the evaluation expectation was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EvaluationExpectation.Builder