Class StreamingReadFeatureValuesRequest.Builder

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

public static final class StreamingReadFeatureValuesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<StreamingReadFeatureValuesRequest.Builder> implements StreamingReadFeatureValuesRequestOrBuilder
 Request message for
 [FeaturestoreOnlineServingService.StreamingReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValues].
 
Protobuf type google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest
  • 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<StreamingReadFeatureValuesRequest.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<StreamingReadFeatureValuesRequest.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<StreamingReadFeatureValuesRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public StreamingReadFeatureValuesRequest.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<StreamingReadFeatureValuesRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public StreamingReadFeatureValuesRequest.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<StreamingReadFeatureValuesRequest.Builder>
      Throws:
      IOException
    • getEntityType

      public String getEntityType()
       Required. The resource name of the entities' type.
       Value format:
       `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`.
       For example,
       for a machine learning model predicting user clicks on a website, an
       EntityType ID could be `user`.
       
      string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntityType in interface StreamingReadFeatureValuesRequestOrBuilder
      Returns:
      The entityType.
    • getEntityTypeBytes

      public com.google.protobuf.ByteString getEntityTypeBytes()
       Required. The resource name of the entities' type.
       Value format:
       `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`.
       For example,
       for a machine learning model predicting user clicks on a website, an
       EntityType ID could be `user`.
       
      string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntityTypeBytes in interface StreamingReadFeatureValuesRequestOrBuilder
      Returns:
      The bytes for entityType.
    • setEntityType

      public StreamingReadFeatureValuesRequest.Builder setEntityType(String value)
       Required. The resource name of the entities' type.
       Value format:
       `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`.
       For example,
       for a machine learning model predicting user clicks on a website, an
       EntityType ID could be `user`.
       
      string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The entityType to set.
      Returns:
      This builder for chaining.
    • clearEntityType

       Required. The resource name of the entities' type.
       Value format:
       `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`.
       For example,
       for a machine learning model predicting user clicks on a website, an
       EntityType ID could be `user`.
       
      string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setEntityTypeBytes

      public StreamingReadFeatureValuesRequest.Builder setEntityTypeBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the entities' type.
       Value format:
       `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`.
       For example,
       for a machine learning model predicting user clicks on a website, an
       EntityType ID could be `user`.
       
      string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for entityType to set.
      Returns:
      This builder for chaining.
    • getEntityIdsList

      public com.google.protobuf.ProtocolStringList getEntityIdsList()
       Required. IDs of entities to read Feature values of. The maximum number of
       IDs is 100. For example, for a machine learning model predicting user
       clicks on a website, an entity ID could be `user_123`.
       
      repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityIdsList in interface StreamingReadFeatureValuesRequestOrBuilder
      Returns:
      A list containing the entityIds.
    • getEntityIdsCount

      public int getEntityIdsCount()
       Required. IDs of entities to read Feature values of. The maximum number of
       IDs is 100. For example, for a machine learning model predicting user
       clicks on a website, an entity ID could be `user_123`.
       
      repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityIdsCount in interface StreamingReadFeatureValuesRequestOrBuilder
      Returns:
      The count of entityIds.
    • getEntityIds

      public String getEntityIds(int index)
       Required. IDs of entities to read Feature values of. The maximum number of
       IDs is 100. For example, for a machine learning model predicting user
       clicks on a website, an entity ID could be `user_123`.
       
      repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityIds in interface StreamingReadFeatureValuesRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The entityIds at the given index.
    • getEntityIdsBytes

      public com.google.protobuf.ByteString getEntityIdsBytes(int index)
       Required. IDs of entities to read Feature values of. The maximum number of
       IDs is 100. For example, for a machine learning model predicting user
       clicks on a website, an entity ID could be `user_123`.
       
      repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityIdsBytes in interface StreamingReadFeatureValuesRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the entityIds at the given index.
    • setEntityIds

      public StreamingReadFeatureValuesRequest.Builder setEntityIds(int index, String value)
       Required. IDs of entities to read Feature values of. The maximum number of
       IDs is 100. For example, for a machine learning model predicting user
       clicks on a website, an entity ID could be `user_123`.
       
      repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The entityIds to set.
      Returns:
      This builder for chaining.
    • addEntityIds

       Required. IDs of entities to read Feature values of. The maximum number of
       IDs is 100. For example, for a machine learning model predicting user
       clicks on a website, an entity ID could be `user_123`.
       
      repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The entityIds to add.
      Returns:
      This builder for chaining.
    • addAllEntityIds

      public StreamingReadFeatureValuesRequest.Builder addAllEntityIds(Iterable<String> values)
       Required. IDs of entities to read Feature values of. The maximum number of
       IDs is 100. For example, for a machine learning model predicting user
       clicks on a website, an entity ID could be `user_123`.
       
      repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The entityIds to add.
      Returns:
      This builder for chaining.
    • clearEntityIds

       Required. IDs of entities to read Feature values of. The maximum number of
       IDs is 100. For example, for a machine learning model predicting user
       clicks on a website, an entity ID could be `user_123`.
       
      repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addEntityIdsBytes

      public StreamingReadFeatureValuesRequest.Builder addEntityIdsBytes(com.google.protobuf.ByteString value)
       Required. IDs of entities to read Feature values of. The maximum number of
       IDs is 100. For example, for a machine learning model predicting user
       clicks on a website, an entity ID could be `user_123`.
       
      repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the entityIds to add.
      Returns:
      This builder for chaining.
    • hasFeatureSelector

      public boolean hasFeatureSelector()
       Required. Selector choosing Features of the target EntityType. Feature IDs
       will be deduplicated.
       
      .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasFeatureSelector in interface StreamingReadFeatureValuesRequestOrBuilder
      Returns:
      Whether the featureSelector field is set.
    • getFeatureSelector

      public FeatureSelector getFeatureSelector()
       Required. Selector choosing Features of the target EntityType. Feature IDs
       will be deduplicated.
       
      .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFeatureSelector in interface StreamingReadFeatureValuesRequestOrBuilder
      Returns:
      The featureSelector.
    • setFeatureSelector

       Required. Selector choosing Features of the target EntityType. Feature IDs
       will be deduplicated.
       
      .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED];
    • setFeatureSelector

      public StreamingReadFeatureValuesRequest.Builder setFeatureSelector(FeatureSelector.Builder builderForValue)
       Required. Selector choosing Features of the target EntityType. Feature IDs
       will be deduplicated.
       
      .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeFeatureSelector

      public StreamingReadFeatureValuesRequest.Builder mergeFeatureSelector(FeatureSelector value)
       Required. Selector choosing Features of the target EntityType. Feature IDs
       will be deduplicated.
       
      .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearFeatureSelector

      public StreamingReadFeatureValuesRequest.Builder clearFeatureSelector()
       Required. Selector choosing Features of the target EntityType. Feature IDs
       will be deduplicated.
       
      .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED];
    • getFeatureSelectorBuilder

      public FeatureSelector.Builder getFeatureSelectorBuilder()
       Required. Selector choosing Features of the target EntityType. Feature IDs
       will be deduplicated.
       
      .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED];
    • getFeatureSelectorOrBuilder

      public FeatureSelectorOrBuilder getFeatureSelectorOrBuilder()
       Required. Selector choosing Features of the target EntityType. Feature IDs
       will be deduplicated.
       
      .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFeatureSelectorOrBuilder in interface StreamingReadFeatureValuesRequestOrBuilder