Class SavedQuery.Builder (3.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SavedQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SavedQuery.Builder
Overrides

build()

public SavedQuery build()
Returns
TypeDescription
SavedQuery

buildPartial()

public SavedQuery buildPartial()
Returns
TypeDescription
SavedQuery

clear()

public SavedQuery.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SavedQuery.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SavedQuery.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SavedQuery.Builder
Overrides

clearMetadata()

public SavedQuery.Builder clearMetadata()

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Returns
TypeDescription
SavedQuery.Builder

clearName()

public SavedQuery.Builder clearName()

Output only. Resource name of the SavedQuery.

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

Returns
TypeDescription
SavedQuery.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SavedQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SavedQuery.Builder

clone()

public SavedQuery.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public SavedQuery getDefaultInstanceForType()
Returns
TypeDescription
SavedQuery

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for etag.

getMetadata()

public Value getMetadata()

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Returns
TypeDescription
Value

The metadata.

getMetadataBuilder()

public Value.Builder getMetadataBuilder()

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Returns
TypeDescription
Builder

getMetadataOrBuilder()

public ValueOrBuilder getMetadataOrBuilder()

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Returns
TypeDescription
ValueOrBuilder

getName()

public String getName()

Output only. Resource name of the SavedQuery.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of the SavedQuery.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

hasMetadata()

public boolean hasMetadata()

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
SavedQuery.Builder

mergeFrom(SavedQuery other)

public SavedQuery.Builder mergeFrom(SavedQuery other)
Parameter
NameDescription
otherSavedQuery
Returns
TypeDescription
SavedQuery.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SavedQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SavedQuery.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SavedQuery.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SavedQuery.Builder
Overrides

mergeMetadata(Value value)

public SavedQuery.Builder mergeMetadata(Value value)

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Parameter
NameDescription
valueValue
Returns
TypeDescription
SavedQuery.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SavedQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueString

The annotationFilter to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for annotationFilter to set.

Returns
TypeDescription
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
NameDescription
valueint

The annotationSpecCount to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
SavedQuery.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SavedQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SavedQuery.Builder
Overrides

setMetadata(Value value)

public SavedQuery.Builder setMetadata(Value value)

Some additional information about the SavedQuery.

.google.protobuf.Value metadata = 12;

Parameter
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The problemType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for problemType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The supportAutomlTraining to set.

Returns
TypeDescription
SavedQuery.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SavedQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
SavedQuery.Builder