Class BatchReadFeatureValuesRequest

  • All Implemented Interfaces:
    BatchReadFeatureValuesRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class BatchReadFeatureValuesRequest
    extends com.google.protobuf.GeneratedMessageV3
    implements BatchReadFeatureValuesRequestOrBuilder
     Request message for
     [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues].
     
    Protobuf type google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest
    See Also:
    Serialized Form
    • Field Detail

      • CSV_READ_INSTANCES_FIELD_NUMBER

        public static final int CSV_READ_INSTANCES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BIGQUERY_READ_INSTANCES_FIELD_NUMBER

        public static final int BIGQUERY_READ_INSTANCES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FEATURESTORE_FIELD_NUMBER

        public static final int FEATURESTORE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESTINATION_FIELD_NUMBER

        public static final int DESTINATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PASS_THROUGH_FIELDS_FIELD_NUMBER

        public static final int PASS_THROUGH_FIELDS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENTITY_TYPE_SPECS_FIELD_NUMBER

        public static final int ENTITY_TYPE_SPECS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • START_TIME_FIELD_NUMBER

        public static final int START_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasCsvReadInstances

        public boolean hasCsvReadInstances()
         Each read instance consists of exactly one read timestamp and one or more
         entity IDs identifying entities of the corresponding EntityTypes whose
         Features are requested.
        
         Each output instance contains Feature values of requested entities
         concatenated together as of the read time.
        
         An example read instance may be `foo_entity_id, bar_entity_id,
         2020-01-01T10:00:00.123Z`.
        
         An example output instance may be `foo_entity_id, bar_entity_id,
         2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
         bar_entity_feature2_value`.
        
         Timestamp in each read instance must be millisecond-aligned.
        
         `csv_read_instances` are read instances stored in a plain-text CSV file.
         The header should be:
             [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
        
         The columns can be in any order.
        
         Values in the timestamp column must use the RFC 3339 format, e.g.
         `2012-07-30T10:43:17.123Z`.
         
        .google.cloud.aiplatform.v1.CsvSource csv_read_instances = 3;
        Specified by:
        hasCsvReadInstances in interface BatchReadFeatureValuesRequestOrBuilder
        Returns:
        Whether the csvReadInstances field is set.
      • getCsvReadInstances

        public CsvSource getCsvReadInstances()
         Each read instance consists of exactly one read timestamp and one or more
         entity IDs identifying entities of the corresponding EntityTypes whose
         Features are requested.
        
         Each output instance contains Feature values of requested entities
         concatenated together as of the read time.
        
         An example read instance may be `foo_entity_id, bar_entity_id,
         2020-01-01T10:00:00.123Z`.
        
         An example output instance may be `foo_entity_id, bar_entity_id,
         2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
         bar_entity_feature2_value`.
        
         Timestamp in each read instance must be millisecond-aligned.
        
         `csv_read_instances` are read instances stored in a plain-text CSV file.
         The header should be:
             [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
        
         The columns can be in any order.
        
         Values in the timestamp column must use the RFC 3339 format, e.g.
         `2012-07-30T10:43:17.123Z`.
         
        .google.cloud.aiplatform.v1.CsvSource csv_read_instances = 3;
        Specified by:
        getCsvReadInstances in interface BatchReadFeatureValuesRequestOrBuilder
        Returns:
        The csvReadInstances.
      • getCsvReadInstancesOrBuilder

        public CsvSourceOrBuilder getCsvReadInstancesOrBuilder()
         Each read instance consists of exactly one read timestamp and one or more
         entity IDs identifying entities of the corresponding EntityTypes whose
         Features are requested.
        
         Each output instance contains Feature values of requested entities
         concatenated together as of the read time.
        
         An example read instance may be `foo_entity_id, bar_entity_id,
         2020-01-01T10:00:00.123Z`.
        
         An example output instance may be `foo_entity_id, bar_entity_id,
         2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
         bar_entity_feature2_value`.
        
         Timestamp in each read instance must be millisecond-aligned.
        
         `csv_read_instances` are read instances stored in a plain-text CSV file.
         The header should be:
             [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
        
         The columns can be in any order.
        
         Values in the timestamp column must use the RFC 3339 format, e.g.
         `2012-07-30T10:43:17.123Z`.
         
        .google.cloud.aiplatform.v1.CsvSource csv_read_instances = 3;
        Specified by:
        getCsvReadInstancesOrBuilder in interface BatchReadFeatureValuesRequestOrBuilder
      • hasBigqueryReadInstances

        public boolean hasBigqueryReadInstances()
         Similar to csv_read_instances, but from BigQuery source.
         
        .google.cloud.aiplatform.v1.BigQuerySource bigquery_read_instances = 5;
        Specified by:
        hasBigqueryReadInstances in interface BatchReadFeatureValuesRequestOrBuilder
        Returns:
        Whether the bigqueryReadInstances field is set.
      • getFeaturestore

        public String getFeaturestore()
         Required. The resource name of the Featurestore from which to query Feature
         values. Format:
         `projects/{project}/locations/{location}/featurestores/{featurestore}`
         
        string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getFeaturestore in interface BatchReadFeatureValuesRequestOrBuilder
        Returns:
        The featurestore.
      • getFeaturestoreBytes

        public com.google.protobuf.ByteString getFeaturestoreBytes()
         Required. The resource name of the Featurestore from which to query Feature
         values. Format:
         `projects/{project}/locations/{location}/featurestores/{featurestore}`
         
        string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getFeaturestoreBytes in interface BatchReadFeatureValuesRequestOrBuilder
        Returns:
        The bytes for featurestore.
      • hasDestination

        public boolean hasDestination()
         Required. Specifies output location and format.
         
        .google.cloud.aiplatform.v1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDestination in interface BatchReadFeatureValuesRequestOrBuilder
        Returns:
        Whether the destination field is set.
      • getPassThroughFieldsList

        public List<BatchReadFeatureValuesRequest.PassThroughField> getPassThroughFieldsList()
         When not empty, the specified fields in the *_read_instances source will be
         joined as-is in the output, in addition to those fields from the
         Featurestore Entity.
        
         For BigQuery source, the type of the pass-through values will be
         automatically inferred. For CSV source, the pass-through values will be
         passed as opaque bytes.
         
        repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8;
        Specified by:
        getPassThroughFieldsList in interface BatchReadFeatureValuesRequestOrBuilder
      • getPassThroughFieldsOrBuilderList

        public List<? extends BatchReadFeatureValuesRequest.PassThroughFieldOrBuilder> getPassThroughFieldsOrBuilderList()
         When not empty, the specified fields in the *_read_instances source will be
         joined as-is in the output, in addition to those fields from the
         Featurestore Entity.
        
         For BigQuery source, the type of the pass-through values will be
         automatically inferred. For CSV source, the pass-through values will be
         passed as opaque bytes.
         
        repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8;
        Specified by:
        getPassThroughFieldsOrBuilderList in interface BatchReadFeatureValuesRequestOrBuilder
      • getPassThroughFieldsCount

        public int getPassThroughFieldsCount()
         When not empty, the specified fields in the *_read_instances source will be
         joined as-is in the output, in addition to those fields from the
         Featurestore Entity.
        
         For BigQuery source, the type of the pass-through values will be
         automatically inferred. For CSV source, the pass-through values will be
         passed as opaque bytes.
         
        repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8;
        Specified by:
        getPassThroughFieldsCount in interface BatchReadFeatureValuesRequestOrBuilder
      • getPassThroughFields

        public BatchReadFeatureValuesRequest.PassThroughField getPassThroughFields​(int index)
         When not empty, the specified fields in the *_read_instances source will be
         joined as-is in the output, in addition to those fields from the
         Featurestore Entity.
        
         For BigQuery source, the type of the pass-through values will be
         automatically inferred. For CSV source, the pass-through values will be
         passed as opaque bytes.
         
        repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8;
        Specified by:
        getPassThroughFields in interface BatchReadFeatureValuesRequestOrBuilder
      • getPassThroughFieldsOrBuilder

        public BatchReadFeatureValuesRequest.PassThroughFieldOrBuilder getPassThroughFieldsOrBuilder​(int index)
         When not empty, the specified fields in the *_read_instances source will be
         joined as-is in the output, in addition to those fields from the
         Featurestore Entity.
        
         For BigQuery source, the type of the pass-through values will be
         automatically inferred. For CSV source, the pass-through values will be
         passed as opaque bytes.
         
        repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8;
        Specified by:
        getPassThroughFieldsOrBuilder in interface BatchReadFeatureValuesRequestOrBuilder
      • getEntityTypeSpecsCount

        public int getEntityTypeSpecsCount()
         Required. Specifies EntityType grouping Features to read values of and
         settings.
         
        repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getEntityTypeSpecsCount in interface BatchReadFeatureValuesRequestOrBuilder
      • hasStartTime

        public boolean hasStartTime()
         Optional. Excludes Feature values with feature generation timestamp before
         this timestamp. If not set, retrieve oldest values kept in Feature Store.
         Timestamp, if present, must not have higher than millisecond precision.
         
        .google.protobuf.Timestamp start_time = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasStartTime in interface BatchReadFeatureValuesRequestOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Optional. Excludes Feature values with feature generation timestamp before
         this timestamp. If not set, retrieve oldest values kept in Feature Store.
         Timestamp, if present, must not have higher than millisecond precision.
         
        .google.protobuf.Timestamp start_time = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getStartTime in interface BatchReadFeatureValuesRequestOrBuilder
        Returns:
        The startTime.
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         Optional. Excludes Feature values with feature generation timestamp before
         this timestamp. If not set, retrieve oldest values kept in Feature Store.
         Timestamp, if present, must not have higher than millisecond precision.
         
        .google.protobuf.Timestamp start_time = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getStartTimeOrBuilder in interface BatchReadFeatureValuesRequestOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static BatchReadFeatureValuesRequest parseFrom​(ByteBuffer data)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BatchReadFeatureValuesRequest parseFrom​(ByteBuffer data,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BatchReadFeatureValuesRequest parseFrom​(com.google.protobuf.ByteString data)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BatchReadFeatureValuesRequest parseFrom​(com.google.protobuf.ByteString data,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BatchReadFeatureValuesRequest parseFrom​(byte[] data)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BatchReadFeatureValuesRequest parseFrom​(byte[] data,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public BatchReadFeatureValuesRequest.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public BatchReadFeatureValuesRequest.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected BatchReadFeatureValuesRequest.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<BatchReadFeatureValuesRequest> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public BatchReadFeatureValuesRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder