Class SavedQuery.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SavedQuery.Builder>
com.google.cloud.aiplatform.v1.SavedQuery.Builder
All Implemented Interfaces:
SavedQueryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SavedQuery

public static final class SavedQuery.Builder extends com.google.protobuf.GeneratedMessage.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.v1.SavedQuery
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SavedQuery.Builder>
    • clear

      public SavedQuery.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SavedQuery.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SavedQuery.Builder>
    • getDefaultInstanceForType

      public SavedQuery getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SavedQuery build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SavedQuery buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SavedQuery.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SavedQuery.Builder>
    • mergeFrom

      public SavedQuery.Builder mergeFrom(SavedQuery other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SavedQuery.Builder>
    • mergeFrom

      public SavedQuery.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SavedQuery.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Resource name of the SavedQuery.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface SavedQueryOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Resource name of the SavedQuery.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface SavedQueryOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SavedQuery.Builder setName(String value)
       Output only. Resource name of the SavedQuery.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SavedQuery.Builder clearName()
       Output only. Resource name of the SavedQuery.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public SavedQuery.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Resource name of the SavedQuery.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getDisplayName in interface SavedQueryOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.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];
      Specified by:
      getDisplayNameBytes in interface SavedQueryOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      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];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDisplayNameBytes

      public SavedQuery.Builder setDisplayNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasMetadata

      public boolean hasMetadata()
       Some additional information about the SavedQuery.
       
      .google.protobuf.Value metadata = 12;
      Specified by:
      hasMetadata in interface SavedQueryOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public com.google.protobuf.Value getMetadata()
       Some additional information about the SavedQuery.
       
      .google.protobuf.Value metadata = 12;
      Specified by:
      getMetadata in interface SavedQueryOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public SavedQuery.Builder setMetadata(com.google.protobuf.Value value)
       Some additional information about the SavedQuery.
       
      .google.protobuf.Value metadata = 12;
    • setMetadata

      public SavedQuery.Builder setMetadata(com.google.protobuf.Value.Builder builderForValue)
       Some additional information about the SavedQuery.
       
      .google.protobuf.Value metadata = 12;
    • mergeMetadata

      public SavedQuery.Builder mergeMetadata(com.google.protobuf.Value value)
       Some additional information about the SavedQuery.
       
      .google.protobuf.Value metadata = 12;
    • clearMetadata

      public SavedQuery.Builder clearMetadata()
       Some additional information about the SavedQuery.
       
      .google.protobuf.Value metadata = 12;
    • getMetadataBuilder

      public com.google.protobuf.Value.Builder getMetadataBuilder()
       Some additional information about the SavedQuery.
       
      .google.protobuf.Value metadata = 12;
    • getMetadataOrBuilder

      public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder()
       Some additional information about the SavedQuery.
       
      .google.protobuf.Value metadata = 12;
      Specified by:
      getMetadataOrBuilder in interface SavedQueryOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Timestamp when this SavedQuery was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface SavedQueryOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Timestamp when this SavedQuery was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface SavedQueryOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public SavedQuery.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this SavedQuery was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public SavedQuery.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when this SavedQuery was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public SavedQuery.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this SavedQuery was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Timestamp when this SavedQuery was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Timestamp when this SavedQuery was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface SavedQueryOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Timestamp when SavedQuery was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface SavedQueryOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Timestamp when SavedQuery was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface SavedQueryOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public SavedQuery.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when SavedQuery was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public SavedQuery.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when SavedQuery was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public SavedQuery.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when SavedQuery was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Timestamp when SavedQuery was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Timestamp when SavedQuery was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface SavedQueryOrBuilder
    • getAnnotationFilter

      public String getAnnotationFilter()
       Output only. Filters on the Annotations in the dataset.
       
      string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAnnotationFilter in interface SavedQueryOrBuilder
      Returns:
      The annotationFilter.
    • getAnnotationFilterBytes

      public com.google.protobuf.ByteString getAnnotationFilterBytes()
       Output only. Filters on the Annotations in the dataset.
       
      string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAnnotationFilterBytes in interface SavedQueryOrBuilder
      Returns:
      The bytes for annotationFilter.
    • setAnnotationFilter

      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];
      Parameters:
      value - The annotationFilter to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setAnnotationFilterBytes

      public SavedQuery.Builder setAnnotationFilterBytes(com.google.protobuf.ByteString value)
       Output only. Filters on the Annotations in the dataset.
       
      string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for annotationFilter to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getProblemType in interface SavedQueryOrBuilder
      Returns:
      The problemType.
    • getProblemTypeBytes

      public com.google.protobuf.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];
      Specified by:
      getProblemTypeBytes in interface SavedQueryOrBuilder
      Returns:
      The bytes for problemType.
    • setProblemType

      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];
      Parameters:
      value - The problemType to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setProblemTypeBytes

      public SavedQuery.Builder setProblemTypeBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for problemType to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getAnnotationSpecCount in interface SavedQueryOrBuilder
      Returns:
      The annotationSpecCount.
    • setAnnotationSpecCount

      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];
      Parameters:
      value - The annotationSpecCount to set.
      Returns:
      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:
      This builder for chaining.
    • getEtag

      public String getEtag()
       Used to perform a consistent read-modify-write update. If not set, a blind
       "overwrite" update happens.
       
      string etag = 8;
      Specified by:
      getEtag in interface SavedQueryOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Used to perform a consistent read-modify-write update. If not set, a blind
       "overwrite" update happens.
       
      string etag = 8;
      Specified by:
      getEtagBytes in interface SavedQueryOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      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;
      Parameters:
      value - The etag to set.
      Returns:
      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:
      This builder for chaining.
    • setEtagBytes

      public SavedQuery.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Used to perform a consistent read-modify-write update. If not set, a blind
       "overwrite" update happens.
       
      string etag = 8;
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getSupportAutomlTraining in interface SavedQueryOrBuilder
      Returns:
      The supportAutomlTraining.
    • setSupportAutomlTraining

      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];
      Parameters:
      value - The supportAutomlTraining to set.
      Returns:
      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:
      This builder for chaining.