Class OnlineEvaluator (3.100.0)

public final class OnlineEvaluator extends GeneratedMessage implements OnlineEvaluatorOrBuilder

An OnlineEvaluator contains the configuration for an Online Evaluation.

Protobuf type google.cloud.aiplatform.v1beta1.OnlineEvaluator

Static Fields

AGENT_RESOURCE_FIELD_NUMBER

public static final int AGENT_RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

CLOUD_OBSERVABILITY_FIELD_NUMBER

public static final int CLOUD_OBSERVABILITY_FIELD_NUMBER
Field Value
Type Description
int

CONFIG_FIELD_NUMBER

public static final int CONFIG_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

METRIC_SOURCES_FIELD_NUMBER

public static final int METRIC_SOURCES_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STATE_DETAILS_FIELD_NUMBER

public static final int STATE_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OnlineEvaluator getDefaultInstance()
Returns
Type Description
OnlineEvaluator

getDescriptor()

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

newBuilder()

public static OnlineEvaluator.Builder newBuilder()
Returns
Type Description
OnlineEvaluator.Builder

newBuilder(OnlineEvaluator prototype)

public static OnlineEvaluator.Builder newBuilder(OnlineEvaluator prototype)
Parameter
Name Description
prototype OnlineEvaluator
Returns
Type Description
OnlineEvaluator.Builder

parseDelimitedFrom(InputStream input)

public static OnlineEvaluator parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OnlineEvaluator parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OnlineEvaluator parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OnlineEvaluator parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OnlineEvaluator parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OnlineEvaluator parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OnlineEvaluator parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OnlineEvaluator parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OnlineEvaluator parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OnlineEvaluator parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OnlineEvaluator parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OnlineEvaluator parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OnlineEvaluator
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OnlineEvaluator> parser()
Returns
Type Description
Parser<OnlineEvaluator>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAgentResource()

public String getAgentResource()

Required. Immutable. The name of the agent that the OnlineEvaluator evaluates periodically. This value is used to filter the traces with a matching cloud.resource_id and link the evaluation results with relevant dashboards/UIs.

This field is immutable. Once set, it cannot be changed.

string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The agentResource.

getAgentResourceBytes()

public ByteString getAgentResourceBytes()

Required. Immutable. The name of the agent that the OnlineEvaluator evaluates periodically. This value is used to filter the traces with a matching cloud.resource_id and link the evaluation results with relevant dashboards/UIs.

This field is immutable. Once set, it cannot be changed.

string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for agentResource.

getCloudObservability()

public OnlineEvaluator.CloudObservability getCloudObservability()

Data source for the OnlineEvaluator, based on GCP Observability stack (Cloud Trace & Cloud Logging).

.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4;

Returns
Type Description
OnlineEvaluator.CloudObservability

The cloudObservability.

getCloudObservabilityOrBuilder()

public OnlineEvaluator.CloudObservabilityOrBuilder getCloudObservabilityOrBuilder()

Data source for the OnlineEvaluator, based on GCP Observability stack (Cloud Trace & Cloud Logging).

.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4;

Returns
Type Description
OnlineEvaluator.CloudObservabilityOrBuilder

getConfig()

public OnlineEvaluator.Config getConfig()

Required. Configuration for the OnlineEvaluator.

.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OnlineEvaluator.Config

The config.

getConfigOrBuilder()

public OnlineEvaluator.ConfigOrBuilder getConfigOrBuilder()

Required. Configuration for the OnlineEvaluator.

.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OnlineEvaluator.ConfigOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when the OnlineEvaluator was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when the OnlineEvaluator was created.

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

Returns
Type Description
TimestampOrBuilder

getDataSourceCase()

public OnlineEvaluator.DataSourceCase getDataSourceCase()
Returns
Type Description
OnlineEvaluator.DataSourceCase

getDefaultInstanceForType()

public OnlineEvaluator getDefaultInstanceForType()
Returns
Type Description
OnlineEvaluator

getDisplayName()

public String getDisplayName()

Optional. Human-readable name for the OnlineEvaluator.

The name doesn't have to be unique.

The name can consist of any UTF-8 characters. The maximum length is 63 characters. If the display name exceeds max characters, an INVALID_ARGUMENT error is returned.

string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Human-readable name for the OnlineEvaluator.

The name doesn't have to be unique.

The name can consist of any UTF-8 characters. The maximum length is 63 characters. If the display name exceeds max characters, an INVALID_ARGUMENT error is returned.

string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getMetricSources(int index)

public MetricSource getMetricSources(int index)

Required. A list of metric sources to be used for evaluating samples. At least one MetricSource must be provided. Right now, only predefined metrics and registered metrics are supported.

Every registered metric must have display_name (or title) and score_range defined. Otherwise, the evaluations will fail.

The maximum number of metric_sources is 25.

repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MetricSource

getMetricSourcesCount()

public int getMetricSourcesCount()

Required. A list of metric sources to be used for evaluating samples. At least one MetricSource must be provided. Right now, only predefined metrics and registered metrics are supported.

Every registered metric must have display_name (or title) and score_range defined. Otherwise, the evaluations will fail.

The maximum number of metric_sources is 25.

repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getMetricSourcesList()

public List<MetricSource> getMetricSourcesList()

Required. A list of metric sources to be used for evaluating samples. At least one MetricSource must be provided. Right now, only predefined metrics and registered metrics are supported.

Every registered metric must have display_name (or title) and score_range defined. Otherwise, the evaluations will fail.

The maximum number of metric_sources is 25.

repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<MetricSource>

getMetricSourcesOrBuilder(int index)

public MetricSourceOrBuilder getMetricSourcesOrBuilder(int index)

Required. A list of metric sources to be used for evaluating samples. At least one MetricSource must be provided. Right now, only predefined metrics and registered metrics are supported.

Every registered metric must have display_name (or title) and score_range defined. Otherwise, the evaluations will fail.

The maximum number of metric_sources is 25.

repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MetricSourceOrBuilder

getMetricSourcesOrBuilderList()

public List<? extends MetricSourceOrBuilder> getMetricSourcesOrBuilderList()

Required. A list of metric sources to be used for evaluating samples. At least one MetricSource must be provided. Right now, only predefined metrics and registered metrics are supported.

Every registered metric must have display_name (or title) and score_range defined. Otherwise, the evaluations will fail.

The maximum number of metric_sources is 25.

repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder>

getName()

public String getName()

Identifier. The resource name of the OnlineEvaluator. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the OnlineEvaluator. Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<OnlineEvaluator> getParserForType()
Returns
Type Description
Parser<OnlineEvaluator>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public OnlineEvaluator.State getState()

Output only. The state of the OnlineEvaluator.

.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OnlineEvaluator.State

The state.

getStateDetails(int index)

public OnlineEvaluator.StateDetails getStateDetails(int index)

Output only. Contains additional information about the state of the OnlineEvaluator. This is used to provide more details in the event of a failure.

repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
OnlineEvaluator.StateDetails

getStateDetailsCount()

public int getStateDetailsCount()

Output only. Contains additional information about the state of the OnlineEvaluator. This is used to provide more details in the event of a failure.

repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getStateDetailsList()

public List<OnlineEvaluator.StateDetails> getStateDetailsList()

Output only. Contains additional information about the state of the OnlineEvaluator. This is used to provide more details in the event of a failure.

repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<StateDetails>

getStateDetailsOrBuilder(int index)

public OnlineEvaluator.StateDetailsOrBuilder getStateDetailsOrBuilder(int index)

Output only. Contains additional information about the state of the OnlineEvaluator. This is used to provide more details in the event of a failure.

repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
OnlineEvaluator.StateDetailsOrBuilder

getStateDetailsOrBuilderList()

public List<? extends OnlineEvaluator.StateDetailsOrBuilder> getStateDetailsOrBuilderList()

Output only. Contains additional information about the state of the OnlineEvaluator. This is used to provide more details in the event of a failure.

repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder>

getStateValue()

public int getStateValue()

Output only. The state of the OnlineEvaluator.

.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when the OnlineEvaluator was last updated.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when the OnlineEvaluator was last updated.

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

Returns
Type Description
TimestampOrBuilder

hasCloudObservability()

public boolean hasCloudObservability()

Data source for the OnlineEvaluator, based on GCP Observability stack (Cloud Trace & Cloud Logging).

.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4;

Returns
Type Description
boolean

Whether the cloudObservability field is set.

hasConfig()

public boolean hasConfig()

Required. Configuration for the OnlineEvaluator.

.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the config field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when the OnlineEvaluator was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp when the OnlineEvaluator was last updated.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OnlineEvaluator.Builder newBuilderForType()
Returns
Type Description
OnlineEvaluator.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected OnlineEvaluator.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OnlineEvaluator.Builder
Overrides

toBuilder()

public OnlineEvaluator.Builder toBuilder()
Returns
Type Description
OnlineEvaluator.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException