Class SavedQuery.Builder (3.56.0)

public static final class SavedQuery.Builder extends GeneratedMessageV3.Builder<SavedQuery.Builder> implements SavedQueryOrBuilder

A SavedQuery is a view of the dataset. It references a subset of annotations by problem type and filters.

Protobuf type google.cloud.aiplatform.v1beta1.SavedQuery

Implements

SavedQueryOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SavedQuery build()
Returns
Type Description
SavedQuery

buildPartial()

public SavedQuery buildPartial()
Returns
Type Description
SavedQuery

clear()

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

clearAnnotationFilter()

public SavedQuery.Builder clearAnnotationFilter()

Output only. Filters on the Annotations in the dataset.

string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

clearAnnotationSpecCount()

public SavedQuery.Builder clearAnnotationSpecCount()

Output only. Number of AnnotationSpecs in the context of the SavedQuery.

int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

clearCreateTime()

public SavedQuery.Builder clearCreateTime()

Output only. Timestamp when this SavedQuery was created.

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

Returns
Type Description
SavedQuery.Builder

clearDisplayName()

public SavedQuery.Builder clearDisplayName()

Required. The user-defined name of the SavedQuery. The name can be up to 128 characters long and can consist of any UTF-8 characters.

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

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

clearEtag()

public SavedQuery.Builder clearEtag()

Used to perform a consistent read-modify-write update. If not set, a blind "overwrite" update happens.

string etag = 8;

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMetadata()

public SavedQuery.Builder clearMetadata()

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Returns
Type Description
SavedQuery.Builder

clearName()

public SavedQuery.Builder clearName()

Output only. Resource name of the SavedQuery.

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

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProblemType()

public SavedQuery.Builder clearProblemType()

Required. Problem type of the SavedQuery. Allowed values:

  • IMAGE_CLASSIFICATION_SINGLE_LABEL
  • IMAGE_CLASSIFICATION_MULTI_LABEL
  • IMAGE_BOUNDING_POLY
  • IMAGE_BOUNDING_BOX
  • TEXT_CLASSIFICATION_SINGLE_LABEL
  • TEXT_CLASSIFICATION_MULTI_LABEL
  • TEXT_EXTRACTION
  • TEXT_SENTIMENT
  • VIDEO_CLASSIFICATION
  • VIDEO_OBJECT_TRACKING

string problem_type = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

clearSupportAutomlTraining()

public SavedQuery.Builder clearSupportAutomlTraining()

Output only. If the Annotations belonging to the SavedQuery can be used for AutoML training.

bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

clearUpdateTime()

public SavedQuery.Builder clearUpdateTime()

Output only. Timestamp when SavedQuery was last updated.

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

Returns
Type Description
SavedQuery.Builder

clone()

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

getAnnotationFilter()

public String getAnnotationFilter()

Output only. Filters on the Annotations in the dataset.

string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The annotationFilter.

getAnnotationFilterBytes()

public ByteString getAnnotationFilterBytes()

Output only. Filters on the Annotations in the dataset.

string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for annotationFilter.

getAnnotationSpecCount()

public int getAnnotationSpecCount()

Output only. Number of AnnotationSpecs in the context of the SavedQuery.

int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The annotationSpecCount.

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this SavedQuery was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when this SavedQuery was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this SavedQuery was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public SavedQuery getDefaultInstanceForType()
Returns
Type Description
SavedQuery

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. The user-defined name of the SavedQuery. The name can be up to 128 characters long and can consist of any UTF-8 characters.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The user-defined name of the SavedQuery. The name can be up to 128 characters long and can consist of any UTF-8 characters.

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

Returns
Type Description
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Used to perform a consistent read-modify-write update. If not set, a blind "overwrite" update happens.

string etag = 8;

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Used to perform a consistent read-modify-write update. If not set, a blind "overwrite" update happens.

string etag = 8;

Returns
Type Description
ByteString

The bytes for etag.

getMetadata()

public Value getMetadata()

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Returns
Type Description
Value

The metadata.

getMetadataBuilder()

public Value.Builder getMetadataBuilder()

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Returns
Type Description
Builder

getMetadataOrBuilder()

public ValueOrBuilder getMetadataOrBuilder()

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Returns
Type Description
ValueOrBuilder

getName()

public String getName()

Output only. Resource name of the SavedQuery.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of the SavedQuery.

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

Returns
Type Description
ByteString

The bytes for name.

getProblemType()

public String getProblemType()

Required. Problem type of the SavedQuery. Allowed values:

  • IMAGE_CLASSIFICATION_SINGLE_LABEL
  • IMAGE_CLASSIFICATION_MULTI_LABEL
  • IMAGE_BOUNDING_POLY
  • IMAGE_BOUNDING_BOX
  • TEXT_CLASSIFICATION_SINGLE_LABEL
  • TEXT_CLASSIFICATION_MULTI_LABEL
  • TEXT_EXTRACTION
  • TEXT_SENTIMENT
  • VIDEO_CLASSIFICATION
  • VIDEO_OBJECT_TRACKING

string problem_type = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The problemType.

getProblemTypeBytes()

public ByteString getProblemTypeBytes()

Required. Problem type of the SavedQuery. Allowed values:

  • IMAGE_CLASSIFICATION_SINGLE_LABEL
  • IMAGE_CLASSIFICATION_MULTI_LABEL
  • IMAGE_BOUNDING_POLY
  • IMAGE_BOUNDING_BOX
  • TEXT_CLASSIFICATION_SINGLE_LABEL
  • TEXT_CLASSIFICATION_MULTI_LABEL
  • TEXT_EXTRACTION
  • TEXT_SENTIMENT
  • VIDEO_CLASSIFICATION
  • VIDEO_OBJECT_TRACKING

string problem_type = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for problemType.

getSupportAutomlTraining()

public boolean getSupportAutomlTraining()

Output only. If the Annotations belonging to the SavedQuery can be used for AutoML training.

bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The supportAutomlTraining.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when SavedQuery was last updated.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Timestamp when SavedQuery was last updated.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when SavedQuery was last updated.

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when this SavedQuery was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasMetadata()

public boolean hasMetadata()

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Returns
Type Description
boolean

Whether the metadata field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp when SavedQuery was last updated.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public SavedQuery.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when this SavedQuery was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SavedQuery.Builder

mergeFrom(SavedQuery other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetadata(Value value)

public SavedQuery.Builder mergeMetadata(Value value)

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Parameter
Name Description
value Value
Returns
Type Description
SavedQuery.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public SavedQuery.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp when SavedQuery was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SavedQuery.Builder

setAnnotationFilter(String value)

public SavedQuery.Builder setAnnotationFilter(String value)

Output only. Filters on the Annotations in the dataset.

string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The annotationFilter to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setAnnotationFilterBytes(ByteString value)

public SavedQuery.Builder setAnnotationFilterBytes(ByteString value)

Output only. Filters on the Annotations in the dataset.

string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for annotationFilter to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setAnnotationSpecCount(int value)

public SavedQuery.Builder setAnnotationSpecCount(int value)

Output only. Number of AnnotationSpecs in the context of the SavedQuery.

int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The annotationSpecCount to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public SavedQuery.Builder setCreateTime(Timestamp value)

Output only. Timestamp when this SavedQuery was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SavedQuery.Builder

setCreateTime(Timestamp.Builder builderForValue)

public SavedQuery.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this SavedQuery was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SavedQuery.Builder

setDisplayName(String value)

public SavedQuery.Builder setDisplayName(String value)

Required. The user-defined name of the SavedQuery. The name can be up to 128 characters long and can consist of any UTF-8 characters.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public SavedQuery.Builder setDisplayNameBytes(ByteString value)

Required. The user-defined name of the SavedQuery. The name can be up to 128 characters long and can consist of any UTF-8 characters.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setEtag(String value)

public SavedQuery.Builder setEtag(String value)

Used to perform a consistent read-modify-write update. If not set, a blind "overwrite" update happens.

string etag = 8;

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public SavedQuery.Builder setEtagBytes(ByteString value)

Used to perform a consistent read-modify-write update. If not set, a blind "overwrite" update happens.

string etag = 8;

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetadata(Value value)

public SavedQuery.Builder setMetadata(Value value)

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Parameter
Name Description
value Value
Returns
Type Description
SavedQuery.Builder

setMetadata(Value.Builder builderForValue)

public SavedQuery.Builder setMetadata(Value.Builder builderForValue)

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SavedQuery.Builder

setName(String value)

public SavedQuery.Builder setName(String value)

Output only. Resource name of the SavedQuery.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SavedQuery.Builder setNameBytes(ByteString value)

Output only. Resource name of the SavedQuery.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setProblemType(String value)

public SavedQuery.Builder setProblemType(String value)

Required. Problem type of the SavedQuery. Allowed values:

  • IMAGE_CLASSIFICATION_SINGLE_LABEL
  • IMAGE_CLASSIFICATION_MULTI_LABEL
  • IMAGE_BOUNDING_POLY
  • IMAGE_BOUNDING_BOX
  • TEXT_CLASSIFICATION_SINGLE_LABEL
  • TEXT_CLASSIFICATION_MULTI_LABEL
  • TEXT_EXTRACTION
  • TEXT_SENTIMENT
  • VIDEO_CLASSIFICATION
  • VIDEO_OBJECT_TRACKING

string problem_type = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The problemType to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setProblemTypeBytes(ByteString value)

public SavedQuery.Builder setProblemTypeBytes(ByteString value)

Required. Problem type of the SavedQuery. Allowed values:

  • IMAGE_CLASSIFICATION_SINGLE_LABEL
  • IMAGE_CLASSIFICATION_MULTI_LABEL
  • IMAGE_BOUNDING_POLY
  • IMAGE_BOUNDING_BOX
  • TEXT_CLASSIFICATION_SINGLE_LABEL
  • TEXT_CLASSIFICATION_MULTI_LABEL
  • TEXT_EXTRACTION
  • TEXT_SENTIMENT
  • VIDEO_CLASSIFICATION
  • VIDEO_OBJECT_TRACKING

string problem_type = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for problemType to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

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

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

setSupportAutomlTraining(boolean value)

public SavedQuery.Builder setSupportAutomlTraining(boolean value)

Output only. If the Annotations belonging to the SavedQuery can be used for AutoML training.

bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The supportAutomlTraining to set.

Returns
Type Description
SavedQuery.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public SavedQuery.Builder setUpdateTime(Timestamp value)

Output only. Timestamp when SavedQuery was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SavedQuery.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public SavedQuery.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when SavedQuery was last updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SavedQuery.Builder