The Feature values are merged into existing entities if any. The Feature values to be + * written must have timestamp within the online storage retention. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create()) {
+ * EntityTypeName entityType =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * List payloads = new ArrayList<>();
+ * WriteFeatureValuesResponse response =
+ * featurestoreOnlineServingServiceClient.writeFeatureValues(entityType, payloads);
+ * }
+ * }
+ *
+ * @param entityType Required. The resource name of the EntityType for the entities being written.
+ * 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`.
+ * @param payloads Required. The entities to be written. Up to 100,000 feature values can be
+ * written across all `payloads`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WriteFeatureValuesResponse writeFeatureValues(
+ EntityTypeName entityType, ListThe Feature values are merged into existing entities if any. The Feature values to be + * written must have timestamp within the online storage retention. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create()) {
+ * String entityType =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * List payloads = new ArrayList<>();
+ * WriteFeatureValuesResponse response =
+ * featurestoreOnlineServingServiceClient.writeFeatureValues(entityType, payloads);
+ * }
+ * }
+ *
+ * @param entityType Required. The resource name of the EntityType for the entities being written.
+ * 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`.
+ * @param payloads Required. The entities to be written. Up to 100,000 feature values can be
+ * written across all `payloads`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WriteFeatureValuesResponse writeFeatureValues(
+ String entityType, ListThe Feature values are merged into existing entities if any. The Feature values to be + * written must have timestamp within the online storage retention. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create()) {
+ * WriteFeatureValuesRequest request =
+ * WriteFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .addAllPayloads(new ArrayList())
+ * .build();
+ * WriteFeatureValuesResponse response =
+ * featurestoreOnlineServingServiceClient.writeFeatureValues(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WriteFeatureValuesResponse writeFeatureValues(WriteFeatureValuesRequest request) {
+ return writeFeatureValuesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Writes Feature values of one or more entities of an EntityType.
+ *
+ * The Feature values are merged into existing entities if any. The Feature values to be + * written must have timestamp within the online storage retention. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create()) {
+ * WriteFeatureValuesRequest request =
+ * WriteFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .addAllPayloads(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * featurestoreOnlineServingServiceClient.writeFeatureValuesCallable().futureCall(request);
+ * // Do something.
+ * WriteFeatureValuesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable+ * Writes Feature values of one or more entities of an EntityType. + * The Feature values are merged into existing entities if any. The Feature + * values to be written must have timestamp within the online storage + * retention. + *+ */ + public void writeFeatureValues( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest request, + io.grpc.stub.StreamObserver
+ * Writes Feature values of one or more entities of an EntityType. + * The Feature values are merged into existing entities if any. The Feature + * values to be written must have timestamp within the online storage + * retention. + *+ */ + public void writeFeatureValues( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest request, + io.grpc.stub.StreamObserver
+ * Writes Feature values of one or more entities of an EntityType. + * The Feature values are merged into existing entities if any. The Feature + * values to be written must have timestamp within the online storage + * retention. + *+ */ + public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse writeFeatureValues( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getWriteFeatureValuesMethod(), getCallOptions(), request); + } } /** @@ -394,10 +507,28 @@ protected FeaturestoreOnlineServingServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReadFeatureValuesMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * Writes Feature values of one or more entities of an EntityType. + * The Feature values are merged into existing entities if any. The Feature + * values to be written must have timestamp within the online storage + * retention. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse> + writeFeatureValues(com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getWriteFeatureValuesMethod(), getCallOptions()), request); + } } private static final int METHODID_READ_FEATURE_VALUES = 0; private static final int METHODID_STREAMING_READ_FEATURE_VALUES = 1; + private static final int METHODID_WRITE_FEATURE_VALUES = 2; private static final class MethodHandlers
+ * Contains Feature values to be written for a specific entity. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload} + */ +public final class WriteFeatureValuesPayload extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload) + WriteFeatureValuesPayloadOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteFeatureValuesPayload.newBuilder() to construct. + private WriteFeatureValuesPayload(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private WriteFeatureValuesPayload() { + entityId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WriteFeatureValuesPayload(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WriteFeatureValuesPayload( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityId_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + featureValues_ = + com.google.protobuf.MapField.newMapField( + FeatureValuesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.FeatureValue> + featureValues__ = + input.readMessage( + FeatureValuesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + featureValues_ + .getMutableMap() + .put(featureValues__.getKey(), featureValues__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteFeatureValuesPayload_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetFeatureValues(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteFeatureValuesPayload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.class, + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.Builder.class); + } + + public static final int ENTITY_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object entityId_; + /** + * + * + *
+ * Required. The ID of the entity. + *+ * + *
string entity_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The entityId.
+ */
+ @java.lang.Override
+ public java.lang.String getEntityId() {
+ java.lang.Object ref = entityId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ entityId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The ID of the entity. + *+ * + *
string entity_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for entityId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntityIdBytes() {
+ java.lang.Object ref = entityId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entityId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FEATURE_VALUES_FIELD_NUMBER = 2;
+
+ private static final class FeatureValuesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.aiplatform.v1beta1.FeatureValue>
+ defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public boolean containsFeatureValues(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetFeatureValues().getMap().containsKey(key);
+ }
+ /** Use {@link #getFeatureValuesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrDefault(
+ java.lang.String key, com.google.cloud.aiplatform.v1beta1.FeatureValue defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Contains Feature values to be written for a specific entity. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The ID of the entity. + *+ * + *
string entity_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The entityId.
+ */
+ public java.lang.String getEntityId() {
+ java.lang.Object ref = entityId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ entityId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The ID of the entity. + *+ * + *
string entity_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for entityId.
+ */
+ public com.google.protobuf.ByteString getEntityIdBytes() {
+ java.lang.Object ref = entityId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entityId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The ID of the entity. + *+ * + *
string entity_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The entityId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEntityId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ entityId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The ID of the entity. + *+ * + *
string entity_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEntityId() {
+
+ entityId_ = getDefaultInstance().getEntityId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The ID of the entity. + *+ * + *
string entity_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for entityId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ entityId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.aiplatform.v1beta1.FeatureValue>
+ featureValues_;
+
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.aiplatform.v1beta1.FeatureValue>
+ internalGetFeatureValues() {
+ if (featureValues_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ FeatureValuesDefaultEntryHolder.defaultEntry);
+ }
+ return featureValues_;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.aiplatform.v1beta1.FeatureValue>
+ internalGetMutableFeatureValues() {
+ onChanged();
+ ;
+ if (featureValues_ == null) {
+ featureValues_ =
+ com.google.protobuf.MapField.newMapField(FeatureValuesDefaultEntryHolder.defaultEntry);
+ }
+ if (!featureValues_.isMutable()) {
+ featureValues_ = featureValues_.copy();
+ }
+ return featureValues_;
+ }
+
+ public int getFeatureValuesCount() {
+ return internalGetFeatureValues().getMap().size();
+ }
+ /**
+ *
+ *
+ * + * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public boolean containsFeatureValues(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetFeatureValues().getMap().containsKey(key);
+ }
+ /** Use {@link #getFeatureValuesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrDefault(
+ java.lang.String key, com.google.cloud.aiplatform.v1beta1.FeatureValue defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removeFeatureValues(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableFeatureValues().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder putFeatureValues(
+ java.lang.String key, com.google.cloud.aiplatform.v1beta1.FeatureValue value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+
+ internalGetMutableFeatureValues().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder putAllFeatureValues(
+ java.util.Map+ * Required. The ID of the entity. + *+ * + *
string entity_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The entityId.
+ */
+ java.lang.String getEntityId();
+ /**
+ *
+ *
+ * + * Required. The ID of the entity. + *+ * + *
string entity_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for entityId.
+ */
+ com.google.protobuf.ByteString getEntityIdBytes();
+
+ /**
+ *
+ *
+ * + * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getFeatureValuesCount();
+ /**
+ *
+ *
+ * + * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ boolean containsFeatureValues(java.lang.String key);
+ /** Use {@link #getFeatureValuesMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.Map+ * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+
+ /* nullable */
+ com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.aiplatform.v1beta1.FeatureValue defaultValue);
+ /**
+ *
+ *
+ * + * Required. Feature values to be written, mapping from Feature ID to value. Up to + * 100,000 `feature_values` entries may be written across all payloads. The + * feature generation time, aligned by days, must be no older than five + * years (1825 days) and no later than one year (366 days) in the future. + *+ * + *
+ * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrThrow(java.lang.String key);
+}
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesRequest.java
new file mode 100644
index 000000000..6d4dd1417
--- /dev/null
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesRequest.java
@@ -0,0 +1,1270 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/aiplatform/v1beta1/featurestore_online_service.proto
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Request message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest} + */ +public final class WriteFeatureValuesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest) + WriteFeatureValuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteFeatureValuesRequest.newBuilder() to construct. + private WriteFeatureValuesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private WriteFeatureValuesRequest() { + entityType_ = ""; + payloads_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WriteFeatureValuesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WriteFeatureValuesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityType_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + payloads_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload>(); + mutable_bitField0_ |= 0x00000001; + } + payloads_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + payloads_ = java.util.Collections.unmodifiableList(payloads_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest.Builder.class); + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object entityType_; + /** + * + * + *
+ * Required. The resource name of the EntityType for the entities being written.
+ * 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) = { ... }
+ *
+ *
+ * @return The entityType.
+ */
+ @java.lang.Override
+ public java.lang.String getEntityType() {
+ java.lang.Object ref = entityType_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ entityType_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the EntityType for the entities being written.
+ * 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) = { ... }
+ *
+ *
+ * @return The bytes for entityType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntityTypeBytes() {
+ java.lang.Object ref = entityType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entityType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAYLOADS_FIELD_NUMBER = 2;
+ private java.util.List+ * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayloadOrBuilder>
+ getPayloadsOrBuilderList() {
+ return payloads_;
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getPayloadsCount() {
+ return payloads_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload getPayloads(int index) {
+ return payloads_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayloadOrBuilder
+ getPayloadsOrBuilder(int index) {
+ return payloads_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityType_);
+ }
+ for (int i = 0; i < payloads_.size(); i++) {
+ output.writeMessage(2, payloads_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityType_);
+ }
+ for (int i = 0; i < payloads_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, payloads_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest other =
+ (com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest) obj;
+
+ if (!getEntityType().equals(other.getEntityType())) return false;
+ if (!getPayloadsList().equals(other.getPayloadsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getEntityType().hashCode();
+ if (getPayloadsCount() > 0) {
+ hash = (37 * hash) + PAYLOADS_FIELD_NUMBER;
+ hash = (53 * hash) + getPayloadsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The resource name of the EntityType for the entities being written.
+ * 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) = { ... }
+ *
+ *
+ * @return The entityType.
+ */
+ public java.lang.String getEntityType() {
+ java.lang.Object ref = entityType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ entityType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the EntityType for the entities being written.
+ * 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) = { ... }
+ *
+ *
+ * @return The bytes for entityType.
+ */
+ public com.google.protobuf.ByteString getEntityTypeBytes() {
+ java.lang.Object ref = entityType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entityType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the EntityType for the entities being written.
+ * 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) = { ... }
+ *
+ *
+ * @param value The entityType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEntityType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ entityType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the EntityType for the entities being written.
+ * 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) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEntityType() {
+
+ entityType_ = getDefaultInstance().getEntityType();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the EntityType for the entities being written.
+ * 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) = { ... }
+ *
+ *
+ * @param value The bytes for entityType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ entityType_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getPayloadsCount() {
+ if (payloadsBuilder_ == null) {
+ return payloads_.size();
+ } else {
+ return payloadsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload getPayloads(int index) {
+ if (payloadsBuilder_ == null) {
+ return payloads_.get(index);
+ } else {
+ return payloadsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setPayloads(
+ int index, com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload value) {
+ if (payloadsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePayloadsIsMutable();
+ payloads_.set(index, value);
+ onChanged();
+ } else {
+ payloadsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setPayloads(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.Builder builderForValue) {
+ if (payloadsBuilder_ == null) {
+ ensurePayloadsIsMutable();
+ payloads_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ payloadsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPayloads(
+ com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload value) {
+ if (payloadsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePayloadsIsMutable();
+ payloads_.add(value);
+ onChanged();
+ } else {
+ payloadsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPayloads(
+ int index, com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload value) {
+ if (payloadsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePayloadsIsMutable();
+ payloads_.add(index, value);
+ onChanged();
+ } else {
+ payloadsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPayloads(
+ com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.Builder builderForValue) {
+ if (payloadsBuilder_ == null) {
+ ensurePayloadsIsMutable();
+ payloads_.add(builderForValue.build());
+ onChanged();
+ } else {
+ payloadsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addPayloads(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.Builder builderForValue) {
+ if (payloadsBuilder_ == null) {
+ ensurePayloadsIsMutable();
+ payloads_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ payloadsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllPayloads(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload>
+ values) {
+ if (payloadsBuilder_ == null) {
+ ensurePayloadsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, payloads_);
+ onChanged();
+ } else {
+ payloadsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearPayloads() {
+ if (payloadsBuilder_ == null) {
+ payloads_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ payloadsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removePayloads(int index) {
+ if (payloadsBuilder_ == null) {
+ ensurePayloadsIsMutable();
+ payloads_.remove(index);
+ onChanged();
+ } else {
+ payloadsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.Builder getPayloadsBuilder(
+ int index) {
+ return getPayloadsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayloadOrBuilder
+ getPayloadsOrBuilder(int index) {
+ if (payloadsBuilder_ == null) {
+ return payloads_.get(index);
+ } else {
+ return payloadsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayloadOrBuilder>
+ getPayloadsOrBuilderList() {
+ if (payloadsBuilder_ != null) {
+ return payloadsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(payloads_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.Builder
+ addPayloadsBuilder() {
+ return getPayloadsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.Builder addPayloadsBuilder(
+ int index) {
+ return getPayloadsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List
+ * Required. The resource name of the EntityType for the entities being written.
+ * 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) = { ... }
+ *
+ *
+ * @return The entityType.
+ */
+ java.lang.String getEntityType();
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the EntityType for the entities being written.
+ * 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) = { ... }
+ *
+ *
+ * @return The bytes for entityType.
+ */
+ com.google.protobuf.ByteString getEntityTypeBytes();
+
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload getPayloads(int index);
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getPayloadsCount();
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayloadOrBuilder>
+ getPayloadsOrBuilderList();
+ /**
+ *
+ *
+ * + * Required. The entities to be written. Up to 100,000 feature values can be written + * across all `payloads`. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayloadOrBuilder getPayloadsOrBuilder(
+ int index);
+}
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesResponse.java
new file mode 100644
index 000000000..f4fd2d6b4
--- /dev/null
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesResponse.java
@@ -0,0 +1,465 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/aiplatform/v1beta1/featurestore_online_service.proto
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Response message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse} + */ +public final class WriteFeatureValuesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse) + WriteFeatureValuesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteFeatureValuesResponse.newBuilder() to construct. + private WriteFeatureValuesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private WriteFeatureValuesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WriteFeatureValuesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WriteFeatureValuesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_WriteFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse other = + (com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+ * Response message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * UpsertDatapointsRequest request =
+ * UpsertDatapointsRequest.newBuilder()
+ * .setIndex(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+ * .addAllDatapoints(new ArrayList())
+ * .build();
+ * UpsertDatapointsResponse response = indexServiceClient.upsertDatapoints(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final UpsertDatapointsResponse upsertDatapoints(UpsertDatapointsRequest request) {
+ return upsertDatapointsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Add/update Datapoints into an Index.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * UpsertDatapointsRequest request =
+ * UpsertDatapointsRequest.newBuilder()
+ * .setIndex(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+ * .addAllDatapoints(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * indexServiceClient.upsertDatapointsCallable().futureCall(request);
+ * // Do something.
+ * UpsertDatapointsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * RemoveDatapointsRequest request =
+ * RemoveDatapointsRequest.newBuilder()
+ * .setIndex(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+ * .addAllDatapointIds(new ArrayList())
+ * .build();
+ * RemoveDatapointsResponse response = indexServiceClient.removeDatapoints(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RemoveDatapointsResponse removeDatapoints(RemoveDatapointsRequest request) {
+ return removeDatapointsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Remove Datapoints from an Index.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * RemoveDatapointsRequest request =
+ * RemoveDatapointsRequest.newBuilder()
+ * .setIndex(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+ * .addAllDatapointIds(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * indexServiceClient.removeDatapointsCallable().futureCall(request);
+ * // Do something.
+ * RemoveDatapointsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableExample: `projects/{project}/locations/{location}/models/{model}{@literal @}1234` * @param versionAliases Required. The set of version aliases to merge. The alias should be at - * most 128 characters, and match `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. Add the `-` prefix to an - * alias means removing that alias from the version. `-` is NOT counted in the 128 characters. - * Example: `-golden` means removing the `golden` alias from the version. + * most 128 characters, and match `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`. Add the `-` prefix to + * an alias means removing that alias from the version. `-` is NOT counted in the 128 + * characters. Example: `-golden` means removing the `golden` alias from the version. *
There is NO ordering in aliases, which means 1) The aliases returned from GetModel API
* might not have the exactly same order from this MergeVersionAliases API. 2) Adding and
* deleting the same alias in the request is not recommended, and the 2 operations will be
@@ -1189,9 +1189,9 @@ public final Model mergeVersionAliases(ModelName name, List Example: `projects/{project}/locations/{location}/models/{model}{@literal @}1234`
* @param versionAliases Required. The set of version aliases to merge. The alias should be at
- * most 128 characters, and match `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. Add the `-` prefix to an
- * alias means removing that alias from the version. `-` is NOT counted in the 128 characters.
- * Example: `-golden` means removing the `golden` alias from the version.
+ * most 128 characters, and match `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`. Add the `-` prefix to
+ * an alias means removing that alias from the version. `-` is NOT counted in the 128
+ * characters. Example: `-golden` means removing the `golden` alias from the version.
* There is NO ordering in aliases, which means 1) The aliases returned from GetModel API
* might not have the exactly same order from this MergeVersionAliases API. 2) Adding and
* deleting the same alias in the request is not recommended, and the 2 operations will be
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
index 3f39baf58..cbc61de48 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
@@ -295,6 +295,9 @@
"ListLocations": {
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
},
+ "RemoveDatapoints": {
+ "methods": ["removeDatapoints", "removeDatapointsCallable"]
+ },
"SetIamPolicy": {
"methods": ["setIamPolicy", "setIamPolicyCallable"]
},
@@ -303,6 +306,9 @@
},
"UpdateIndex": {
"methods": ["updateIndexAsync", "updateIndexAsync", "updateIndexOperationCallable", "updateIndexCallable"]
+ },
+ "UpsertDatapoints": {
+ "methods": ["upsertDatapoints", "upsertDatapointsCallable"]
}
}
}
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceStub.java
index e653f1bef..7980baceb 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceStub.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceStub.java
@@ -34,8 +34,12 @@
import com.google.cloud.aiplatform.v1.Index;
import com.google.cloud.aiplatform.v1.ListIndexesRequest;
import com.google.cloud.aiplatform.v1.ListIndexesResponse;
+import com.google.cloud.aiplatform.v1.RemoveDatapointsRequest;
+import com.google.cloud.aiplatform.v1.RemoveDatapointsResponse;
import com.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata;
import com.google.cloud.aiplatform.v1.UpdateIndexRequest;
+import com.google.cloud.aiplatform.v1.UpsertDatapointsRequest;
+import com.google.cloud.aiplatform.v1.UpsertDatapointsResponse;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
@@ -105,6 +109,28 @@ public class GrpcIndexServiceStub extends IndexServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Example: `projects/{project}/locations/{location}/models/{model}{@literal @}1234`
* @param versionAliases Required. The set of version aliases to merge. The alias should be at
- * most 128 characters, and match `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. Add the `-` prefix to an
- * alias means removing that alias from the version. `-` is NOT counted in the 128 characters.
- * Example: `-golden` means removing the `golden` alias from the version.
+ * most 128 characters, and match `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`. Add the `-` prefix to
+ * an alias means removing that alias from the version. `-` is NOT counted in the 128
+ * characters. Example: `-golden` means removing the `golden` alias from the version.
* There is NO ordering in aliases, which means 1) The aliases returned from GetModel API
* might not have the exactly same order from this MergeVersionAliases API. 2) Adding and
* deleting the same alias in the request is not recommended, and the 2 operations will be
@@ -1333,9 +1333,9 @@ public final Model mergeVersionAliases(ModelName name, List Example: `projects/{project}/locations/{location}/models/{model}{@literal @}1234`
* @param versionAliases Required. The set of version aliases to merge. The alias should be at
- * most 128 characters, and match `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. Add the `-` prefix to an
- * alias means removing that alias from the version. `-` is NOT counted in the 128 characters.
- * Example: `-golden` means removing the `golden` alias from the version.
+ * most 128 characters, and match `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`. Add the `-` prefix to
+ * an alias means removing that alias from the version. `-` is NOT counted in the 128
+ * characters. Example: `-golden` means removing the `golden` alias from the version.
* There is NO ordering in aliases, which means 1) The aliases returned from GetModel API
* might not have the exactly same order from this MergeVersionAliases API. 2) Adding and
* deleting the same alias in the request is not recommended, and the 2 operations will be
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json
index 929f61958..4db13dbe8 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json
@@ -337,6 +337,9 @@
"ListLocations": {
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
},
+ "RemoveDatapoints": {
+ "methods": ["removeDatapoints", "removeDatapointsCallable"]
+ },
"SetIamPolicy": {
"methods": ["setIamPolicy", "setIamPolicyCallable"]
},
@@ -345,6 +348,9 @@
},
"UpdateIndex": {
"methods": ["updateIndexAsync", "updateIndexAsync", "updateIndexOperationCallable", "updateIndexCallable"]
+ },
+ "UpsertDatapoints": {
+ "methods": ["upsertDatapoints", "upsertDatapointsCallable"]
}
}
}
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java
index 006a16018..b21f862e9 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java
@@ -35,8 +35,12 @@
import com.google.cloud.aiplatform.v1beta1.Index;
import com.google.cloud.aiplatform.v1beta1.ListIndexesRequest;
import com.google.cloud.aiplatform.v1beta1.ListIndexesResponse;
+import com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest;
+import com.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse;
import com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest;
+import com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest;
+import com.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
@@ -107,6 +111,28 @@ public class GrpcIndexServiceStub extends IndexServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * UpsertDatapointsRequest request =
+ * UpsertDatapointsRequest.newBuilder()
+ * .setIndex(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+ * .addAllDatapoints(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final UpsertDatapointsResponse upsertDatapoints(UpsertDatapointsRequest request) {
+ return upsertDatapointsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Add/update Datapoints into an Index.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * UpsertDatapointsRequest request =
+ * UpsertDatapointsRequest.newBuilder()
+ * .setIndex(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+ * .addAllDatapoints(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * RemoveDatapointsRequest request =
+ * RemoveDatapointsRequest.newBuilder()
+ * .setIndex(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+ * .addAllDatapointIds(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RemoveDatapointsResponse removeDatapoints(RemoveDatapointsRequest request) {
+ return removeDatapointsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Remove Datapoints from an Index.
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * RemoveDatapointsRequest request =
+ * RemoveDatapointsRequest.newBuilder()
+ * .setIndex(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+ * .addAllDatapointIds(new ArrayList
+ */
+ public final UnaryCallable
+ * Add/update Datapoints into an Index.
+ *
+ */
+ public void upsertDatapoints(
+ com.google.cloud.aiplatform.v1.UpsertDatapointsRequest request,
+ io.grpc.stub.StreamObserver
+ * Remove Datapoints from an Index.
+ *
+ */
+ public void removeDatapoints(
+ com.google.cloud.aiplatform.v1.RemoveDatapointsRequest request,
+ io.grpc.stub.StreamObserver
+ * Add/update Datapoints into an Index.
+ *
+ */
+ public void upsertDatapoints(
+ com.google.cloud.aiplatform.v1.UpsertDatapointsRequest request,
+ io.grpc.stub.StreamObserver
+ * Remove Datapoints from an Index.
+ *
+ */
+ public void removeDatapoints(
+ com.google.cloud.aiplatform.v1.RemoveDatapointsRequest request,
+ io.grpc.stub.StreamObserver
+ * Add/update Datapoints into an Index.
+ *
+ */
+ public com.google.cloud.aiplatform.v1.UpsertDatapointsResponse upsertDatapoints(
+ com.google.cloud.aiplatform.v1.UpsertDatapointsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getUpsertDatapointsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Remove Datapoints from an Index.
+ *
+ */
+ public com.google.cloud.aiplatform.v1.RemoveDatapointsResponse removeDatapoints(
+ com.google.cloud.aiplatform.v1.RemoveDatapointsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getRemoveDatapointsMethod(), getCallOptions(), request);
+ }
}
/**
@@ -681,6 +879,34 @@ protected IndexServiceFutureStub build(
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), request);
}
+
+ /**
+ *
+ *
+ *
+ * Add/update Datapoints into an Index.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.aiplatform.v1.UpsertDatapointsResponse>
+ upsertDatapoints(com.google.cloud.aiplatform.v1.UpsertDatapointsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getUpsertDatapointsMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Remove Datapoints from an Index.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.aiplatform.v1.RemoveDatapointsResponse>
+ removeDatapoints(com.google.cloud.aiplatform.v1.RemoveDatapointsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getRemoveDatapointsMethod(), getCallOptions()), request);
+ }
}
private static final int METHODID_CREATE_INDEX = 0;
@@ -688,6 +914,8 @@ protected IndexServiceFutureStub build(
private static final int METHODID_LIST_INDEXES = 2;
private static final int METHODID_UPDATE_INDEX = 3;
private static final int METHODID_DELETE_INDEX = 4;
+ private static final int METHODID_UPSERT_DATAPOINTS = 5;
+ private static final int METHODID_REMOVE_DATAPOINTS = 6;
private static final class MethodHandlers
+ * Add/update Datapoints into an Index.
+ *
+ */
+ public void upsertDatapoints(
+ com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest request,
+ io.grpc.stub.StreamObserver
+ * Remove Datapoints from an Index.
+ *
+ */
+ public void removeDatapoints(
+ com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest request,
+ io.grpc.stub.StreamObserver
+ * Add/update Datapoints into an Index.
+ *
+ */
+ public void upsertDatapoints(
+ com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest request,
+ io.grpc.stub.StreamObserver
+ * Remove Datapoints from an Index.
+ *
+ */
+ public void removeDatapoints(
+ com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest request,
+ io.grpc.stub.StreamObserver
+ * Add/update Datapoints into an Index.
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse upsertDatapoints(
+ com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getUpsertDatapointsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Remove Datapoints from an Index.
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse removeDatapoints(
+ com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getRemoveDatapointsMethod(), getCallOptions(), request);
+ }
}
/**
@@ -689,6 +887,34 @@ protected IndexServiceFutureStub build(
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), request);
}
+
+ /**
+ *
+ *
+ *
+ * Add/update Datapoints into an Index.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse>
+ upsertDatapoints(com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getUpsertDatapointsMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Remove Datapoints from an Index.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse>
+ removeDatapoints(com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getRemoveDatapointsMethod(), getCallOptions()), request);
+ }
}
private static final int METHODID_CREATE_INDEX = 0;
@@ -696,6 +922,8 @@ protected IndexServiceFutureStub build(
private static final int METHODID_LIST_INDEXES = 2;
private static final int METHODID_UPDATE_INDEX = 3;
private static final int METHODID_DELETE_INDEX = 4;
+ private static final int METHODID_UPSERT_DATAPOINTS = 5;
+ private static final int METHODID_REMOVE_DATAPOINTS = 6;
private static final class MethodHandlers
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the metadata field is set.
@@ -215,11 +215,11 @@ public boolean hasMetadata() {
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The metadata.
@@ -234,11 +234,11 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata getMetadata() {
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
@@ -816,11 +816,11 @@ public com.google.cloud.aiplatform.v1.ExplanationParametersOrBuilder getParamete
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the metadata field is set.
@@ -832,11 +832,11 @@ public boolean hasMetadata() {
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The metadata.
@@ -854,11 +854,11 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata getMetadata() {
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setMetadata(com.google.cloud.aiplatform.v1.ExplanationMetadata value) {
@@ -878,11 +878,11 @@ public Builder setMetadata(com.google.cloud.aiplatform.v1.ExplanationMetadata va
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setMetadata(
@@ -900,11 +900,11 @@ public Builder setMetadata(
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeMetadata(com.google.cloud.aiplatform.v1.ExplanationMetadata value) {
@@ -928,11 +928,11 @@ public Builder mergeMetadata(com.google.cloud.aiplatform.v1.ExplanationMetadata
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearMetadata() {
@@ -950,11 +950,11 @@ public Builder clearMetadata() {
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.aiplatform.v1.ExplanationMetadata.Builder getMetadataBuilder() {
@@ -966,11 +966,11 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.Builder getMetadataBui
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.aiplatform.v1.ExplanationMetadataOrBuilder getMetadataOrBuilder() {
@@ -986,11 +986,11 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadataOrBuilder getMetadataOr
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOrBuilder.java
index 49c2aa138..af6ea3503 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOrBuilder.java
@@ -68,11 +68,11 @@ public interface ExplanationSpecOrBuilder
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the metadata field is set.
@@ -82,11 +82,11 @@ public interface ExplanationSpecOrBuilder
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The metadata.
@@ -96,11 +96,11 @@ public interface ExplanationSpecOrBuilder
*
*
*
- * Required. Metadata describing the Model's input and output for explanation.
+ * Optional. Metadata describing the Model's input and output for explanation.
*
*
*
- * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
com.google.cloud.aiplatform.v1.ExplanationMetadataOrBuilder getMetadataOrBuilder();
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java
index b25416588..9e965a09d 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java
@@ -45,6 +45,7 @@ private Index() {
metadataSchemaUri_ = "";
deployedIndexes_ = java.util.Collections.emptyList();
etag_ = "";
+ indexUpdateMethod_ = 0;
}
@java.lang.Override
@@ -179,6 +180,29 @@ private Index(
updateTime_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 114:
+ {
+ com.google.cloud.aiplatform.v1.IndexStats.Builder subBuilder = null;
+ if (indexStats_ != null) {
+ subBuilder = indexStats_.toBuilder();
+ }
+ indexStats_ =
+ input.readMessage(
+ com.google.cloud.aiplatform.v1.IndexStats.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(indexStats_);
+ indexStats_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 128:
+ {
+ int rawValue = input.readEnum();
+
+ indexUpdateMethod_ = rawValue;
break;
}
default:
@@ -231,6 +255,172 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
com.google.cloud.aiplatform.v1.Index.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * The update method of an Index.
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1.Index.IndexUpdateMethod}
+ */
+ public enum IndexUpdateMethod implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Should not be used.
+ *
+ *
+ * INDEX_UPDATE_METHOD_UNSPECIFIED = 0;
+ */
+ INDEX_UPDATE_METHOD_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * BatchUpdate: user can call UpdateIndex with files on Cloud Storage of
+ * datapoints to update.
+ *
+ *
+ * BATCH_UPDATE = 1;
+ */
+ BATCH_UPDATE(1),
+ /**
+ *
+ *
+ *
+ * StreamUpdate: user can call UpsertDatapoints/DeleteDatapoints to update
+ * the Index and the updates will be applied in corresponding
+ * DeployedIndexes in nearly real-time.
+ *
+ *
+ * STREAM_UPDATE = 2;
+ */
+ STREAM_UPDATE(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Should not be used.
+ *
+ *
+ * INDEX_UPDATE_METHOD_UNSPECIFIED = 0;
+ */
+ public static final int INDEX_UPDATE_METHOD_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * BatchUpdate: user can call UpdateIndex with files on Cloud Storage of
+ * datapoints to update.
+ *
+ *
+ * BATCH_UPDATE = 1;
+ */
+ public static final int BATCH_UPDATE_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * StreamUpdate: user can call UpsertDatapoints/DeleteDatapoints to update
+ * the Index and the updates will be applied in corresponding
+ * DeployedIndexes in nearly real-time.
+ *
+ *
+ * STREAM_UPDATE = 2;
+ */
+ public static final int STREAM_UPDATE_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static IndexUpdateMethod valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static IndexUpdateMethod forNumber(int value) {
+ switch (value) {
+ case 0:
+ return INDEX_UPDATE_METHOD_UNSPECIFIED;
+ case 1:
+ return BATCH_UPDATE;
+ case 2:
+ return STREAM_UPDATE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the indexStats field is set.
+ */
+ @java.lang.Override
+ public boolean hasIndexStats() {
+ return indexStats_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The indexStats.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.IndexStats getIndexStats() {
+ return indexStats_ == null
+ ? com.google.cloud.aiplatform.v1.IndexStats.getDefaultInstance()
+ : indexStats_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.IndexStatsOrBuilder getIndexStatsOrBuilder() {
+ return getIndexStats();
+ }
+
+ public static final int INDEX_UPDATE_METHOD_FIELD_NUMBER = 16;
+ private int indexUpdateMethod_;
+ /**
+ *
+ *
+ *
+ * Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be
+ * used by default.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The enum numeric value on the wire for indexUpdateMethod.
+ */
+ @java.lang.Override
+ public int getIndexUpdateMethodValue() {
+ return indexUpdateMethod_;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be
+ * used by default.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The indexUpdateMethod.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod getIndexUpdateMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod result =
+ com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.valueOf(indexUpdateMethod_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -911,6 +1199,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (updateTime_ != null) {
output.writeMessage(11, getUpdateTime());
}
+ if (indexStats_ != null) {
+ output.writeMessage(14, getIndexStats());
+ }
+ if (indexUpdateMethod_
+ != com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.INDEX_UPDATE_METHOD_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(16, indexUpdateMethod_);
+ }
unknownFields.writeTo(output);
}
@@ -957,6 +1253,14 @@ public int getSerializedSize() {
if (updateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime());
}
+ if (indexStats_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getIndexStats());
+ }
+ if (indexUpdateMethod_
+ != com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.INDEX_UPDATE_METHOD_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, indexUpdateMethod_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -991,6 +1295,11 @@ public boolean equals(final java.lang.Object obj) {
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
+ if (hasIndexStats() != other.hasIndexStats()) return false;
+ if (hasIndexStats()) {
+ if (!getIndexStats().equals(other.getIndexStats())) return false;
+ }
+ if (indexUpdateMethod_ != other.indexUpdateMethod_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1032,6 +1341,12 @@ public int hashCode() {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
+ if (hasIndexStats()) {
+ hash = (37 * hash) + INDEX_STATS_FIELD_NUMBER;
+ hash = (53 * hash) + getIndexStats().hashCode();
+ }
+ hash = (37 * hash) + INDEX_UPDATE_METHOD_FIELD_NUMBER;
+ hash = (53 * hash) + indexUpdateMethod_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -1234,6 +1549,14 @@ public Builder clear() {
updateTime_ = null;
updateTimeBuilder_ = null;
}
+ if (indexStatsBuilder_ == null) {
+ indexStats_ = null;
+ } else {
+ indexStats_ = null;
+ indexStatsBuilder_ = null;
+ }
+ indexUpdateMethod_ = 0;
+
return this;
}
@@ -1292,6 +1615,12 @@ public com.google.cloud.aiplatform.v1.Index buildPartial() {
} else {
result.updateTime_ = updateTimeBuilder_.build();
}
+ if (indexStatsBuilder_ == null) {
+ result.indexStats_ = indexStats_;
+ } else {
+ result.indexStats_ = indexStatsBuilder_.build();
+ }
+ result.indexUpdateMethod_ = indexUpdateMethod_;
onBuilt();
return result;
}
@@ -1398,6 +1727,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Index other) {
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
+ if (other.hasIndexStats()) {
+ mergeIndexStats(other.getIndexStats());
+ }
+ if (other.indexUpdateMethod_ != 0) {
+ setIndexUpdateMethodValue(other.getIndexUpdateMethodValue());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -3281,6 +3616,319 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTimeBuilder_;
}
+ private com.google.cloud.aiplatform.v1.IndexStats indexStats_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.IndexStats,
+ com.google.cloud.aiplatform.v1.IndexStats.Builder,
+ com.google.cloud.aiplatform.v1.IndexStatsOrBuilder>
+ indexStatsBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the indexStats field is set.
+ */
+ public boolean hasIndexStats() {
+ return indexStatsBuilder_ != null || indexStats_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The indexStats.
+ */
+ public com.google.cloud.aiplatform.v1.IndexStats getIndexStats() {
+ if (indexStatsBuilder_ == null) {
+ return indexStats_ == null
+ ? com.google.cloud.aiplatform.v1.IndexStats.getDefaultInstance()
+ : indexStats_;
+ } else {
+ return indexStatsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setIndexStats(com.google.cloud.aiplatform.v1.IndexStats value) {
+ if (indexStatsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ indexStats_ = value;
+ onChanged();
+ } else {
+ indexStatsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setIndexStats(
+ com.google.cloud.aiplatform.v1.IndexStats.Builder builderForValue) {
+ if (indexStatsBuilder_ == null) {
+ indexStats_ = builderForValue.build();
+ onChanged();
+ } else {
+ indexStatsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeIndexStats(com.google.cloud.aiplatform.v1.IndexStats value) {
+ if (indexStatsBuilder_ == null) {
+ if (indexStats_ != null) {
+ indexStats_ =
+ com.google.cloud.aiplatform.v1.IndexStats.newBuilder(indexStats_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ indexStats_ = value;
+ }
+ onChanged();
+ } else {
+ indexStatsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearIndexStats() {
+ if (indexStatsBuilder_ == null) {
+ indexStats_ = null;
+ onChanged();
+ } else {
+ indexStats_ = null;
+ indexStatsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.IndexStats.Builder getIndexStatsBuilder() {
+
+ onChanged();
+ return getIndexStatsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.IndexStatsOrBuilder getIndexStatsOrBuilder() {
+ if (indexStatsBuilder_ != null) {
+ return indexStatsBuilder_.getMessageOrBuilder();
+ } else {
+ return indexStats_ == null
+ ? com.google.cloud.aiplatform.v1.IndexStats.getDefaultInstance()
+ : indexStats_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.IndexStats,
+ com.google.cloud.aiplatform.v1.IndexStats.Builder,
+ com.google.cloud.aiplatform.v1.IndexStatsOrBuilder>
+ getIndexStatsFieldBuilder() {
+ if (indexStatsBuilder_ == null) {
+ indexStatsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.IndexStats,
+ com.google.cloud.aiplatform.v1.IndexStats.Builder,
+ com.google.cloud.aiplatform.v1.IndexStatsOrBuilder>(
+ getIndexStats(), getParentForChildren(), isClean());
+ indexStats_ = null;
+ }
+ return indexStatsBuilder_;
+ }
+
+ private int indexUpdateMethod_ = 0;
+ /**
+ *
+ *
+ *
+ * Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be
+ * used by default.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The enum numeric value on the wire for indexUpdateMethod.
+ */
+ @java.lang.Override
+ public int getIndexUpdateMethodValue() {
+ return indexUpdateMethod_;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be
+ * used by default.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The enum numeric value on the wire for indexUpdateMethod to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIndexUpdateMethodValue(int value) {
+
+ indexUpdateMethod_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be
+ * used by default.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The indexUpdateMethod.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod getIndexUpdateMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod result =
+ com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.valueOf(indexUpdateMethod_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be
+ * used by default.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The indexUpdateMethod to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIndexUpdateMethod(
+ com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ indexUpdateMethod_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be
+ * used by default.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIndexUpdateMethod() {
+
+ indexUpdateMethod_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java
new file mode 100644
index 000000000..71fb8ec98
--- /dev/null
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java
@@ -0,0 +1,3846 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/aiplatform/v1/index.proto
+
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * A datapoint of Index.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.IndexDatapoint}
+ */
+public final class IndexDatapoint extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.IndexDatapoint)
+ IndexDatapointOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IndexDatapoint.newBuilder() to construct.
+ private IndexDatapoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private IndexDatapoint() {
+ datapointId_ = "";
+ featureVector_ = emptyFloatList();
+ restricts_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new IndexDatapoint();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private IndexDatapoint(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ datapointId_ = s;
+ break;
+ }
+ case 21:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ featureVector_ = newFloatList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ featureVector_.addFloat(input.readFloat());
+ break;
+ }
+ case 18:
+ {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+ featureVector_ = newFloatList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ while (input.getBytesUntilLimit() > 0) {
+ featureVector_.addFloat(input.readFloat());
+ }
+ input.popLimit(limit);
+ break;
+ }
+ case 34:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ restricts_ =
+ new java.util.ArrayList<
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ restricts_.add(
+ input.readMessage(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.parser(),
+ extensionRegistry));
+ break;
+ }
+ case 42:
+ {
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.Builder subBuilder = null;
+ if (crowdingTag_ != null) {
+ subBuilder = crowdingTag_.toBuilder();
+ }
+ crowdingTag_ =
+ input.readMessage(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(crowdingTag_);
+ crowdingTag_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ featureVector_.makeImmutable(); // C
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ restricts_ = java.util.Collections.unmodifiableList(restricts_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.IndexProto
+ .internal_static_google_cloud_aiplatform_v1_IndexDatapoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.IndexProto
+ .internal_static_google_cloud_aiplatform_v1_IndexDatapoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.class,
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Builder.class);
+ }
+
+ public interface RestrictionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.IndexDatapoint.Restriction)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The namespace of this restriction. eg: color.
+ *
+ *
+ * string namespace = 1;
+ *
+ * @return The namespace.
+ */
+ java.lang.String getNamespace();
+ /**
+ *
+ *
+ *
+ * The namespace of this restriction. eg: color.
+ *
+ *
+ * string namespace = 1;
+ *
+ * @return The bytes for namespace.
+ */
+ com.google.protobuf.ByteString getNamespaceBytes();
+
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @return A list containing the allowList.
+ */
+ java.util.List
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @return The count of allowList.
+ */
+ int getAllowListCount();
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The allowList at the given index.
+ */
+ java.lang.String getAllowList(int index);
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the allowList at the given index.
+ */
+ com.google.protobuf.ByteString getAllowListBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @return A list containing the denyList.
+ */
+ java.util.List
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @return The count of denyList.
+ */
+ int getDenyListCount();
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @param index The index of the element to return.
+ * @return The denyList at the given index.
+ */
+ java.lang.String getDenyList(int index);
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the denyList at the given index.
+ */
+ com.google.protobuf.ByteString getDenyListBytes(int index);
+ }
+ /**
+ *
+ *
+ *
+ * Restriction of a datapoint which describe its attributes(tokens) from each
+ * of several attribute categories(namespaces).
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.IndexDatapoint.Restriction}
+ */
+ public static final class Restriction extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.IndexDatapoint.Restriction)
+ RestrictionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Restriction.newBuilder() to construct.
+ private Restriction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Restriction() {
+ namespace_ = "";
+ allowList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Restriction();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Restriction(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ namespace_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ allowList_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ allowList_.add(s);
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ denyList_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ denyList_.add(s);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ allowList_ = allowList_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ denyList_ = denyList_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.IndexProto
+ .internal_static_google_cloud_aiplatform_v1_IndexDatapoint_Restriction_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.IndexProto
+ .internal_static_google_cloud_aiplatform_v1_IndexDatapoint_Restriction_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.class,
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder.class);
+ }
+
+ public static final int NAMESPACE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object namespace_;
+ /**
+ *
+ *
+ *
+ * The namespace of this restriction. eg: color.
+ *
+ *
+ * string namespace = 1;
+ *
+ * @return The namespace.
+ */
+ @java.lang.Override
+ public java.lang.String getNamespace() {
+ java.lang.Object ref = namespace_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ namespace_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The namespace of this restriction. eg: color.
+ *
+ *
+ * string namespace = 1;
+ *
+ * @return The bytes for namespace.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNamespaceBytes() {
+ java.lang.Object ref = namespace_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ namespace_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ALLOW_LIST_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList allowList_;
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @return A list containing the allowList.
+ */
+ public com.google.protobuf.ProtocolStringList getAllowListList() {
+ return allowList_;
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @return The count of allowList.
+ */
+ public int getAllowListCount() {
+ return allowList_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The allowList at the given index.
+ */
+ public java.lang.String getAllowList(int index) {
+ return allowList_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the allowList at the given index.
+ */
+ public com.google.protobuf.ByteString getAllowListBytes(int index) {
+ return allowList_.getByteString(index);
+ }
+
+ public static final int DENY_LIST_FIELD_NUMBER = 3;
+ private com.google.protobuf.LazyStringList denyList_;
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @return A list containing the denyList.
+ */
+ public com.google.protobuf.ProtocolStringList getDenyListList() {
+ return denyList_;
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @return The count of denyList.
+ */
+ public int getDenyListCount() {
+ return denyList_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @param index The index of the element to return.
+ * @return The denyList at the given index.
+ */
+ public java.lang.String getDenyList(int index) {
+ return denyList_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the denyList at the given index.
+ */
+ public com.google.protobuf.ByteString getDenyListBytes(int index) {
+ return denyList_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_);
+ }
+ for (int i = 0; i < allowList_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allowList_.getRaw(i));
+ }
+ for (int i = 0; i < denyList_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, denyList_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < allowList_.size(); i++) {
+ dataSize += computeStringSizeNoTag(allowList_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getAllowListList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < denyList_.size(); i++) {
+ dataSize += computeStringSizeNoTag(denyList_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDenyListList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction other =
+ (com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction) obj;
+
+ if (!getNamespace().equals(other.getNamespace())) return false;
+ if (!getAllowListList().equals(other.getAllowListList())) return false;
+ if (!getDenyListList().equals(other.getDenyListList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
+ hash = (53 * hash) + getNamespace().hashCode();
+ if (getAllowListCount() > 0) {
+ hash = (37 * hash) + ALLOW_LIST_FIELD_NUMBER;
+ hash = (53 * hash) + getAllowListList().hashCode();
+ }
+ if (getDenyListCount() > 0) {
+ hash = (37 * hash) + DENY_LIST_FIELD_NUMBER;
+ hash = (53 * hash) + getDenyListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Restriction of a datapoint which describe its attributes(tokens) from each
+ * of several attribute categories(namespaces).
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.IndexDatapoint.Restriction}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The namespace of this restriction. eg: color.
+ *
+ *
+ * string namespace = 1;
+ *
+ * @return The namespace.
+ */
+ public java.lang.String getNamespace() {
+ java.lang.Object ref = namespace_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ namespace_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The namespace of this restriction. eg: color.
+ *
+ *
+ * string namespace = 1;
+ *
+ * @return The bytes for namespace.
+ */
+ public com.google.protobuf.ByteString getNamespaceBytes() {
+ java.lang.Object ref = namespace_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ namespace_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The namespace of this restriction. eg: color.
+ *
+ *
+ * string namespace = 1;
+ *
+ * @param value The namespace to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNamespace(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ namespace_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The namespace of this restriction. eg: color.
+ *
+ *
+ * string namespace = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNamespace() {
+
+ namespace_ = getDefaultInstance().getNamespace();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The namespace of this restriction. eg: color.
+ *
+ *
+ * string namespace = 1;
+ *
+ * @param value The bytes for namespace to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ namespace_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList allowList_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureAllowListIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ allowList_ = new com.google.protobuf.LazyStringArrayList(allowList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @return A list containing the allowList.
+ */
+ public com.google.protobuf.ProtocolStringList getAllowListList() {
+ return allowList_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @return The count of allowList.
+ */
+ public int getAllowListCount() {
+ return allowList_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The allowList at the given index.
+ */
+ public java.lang.String getAllowList(int index) {
+ return allowList_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the allowList at the given index.
+ */
+ public com.google.protobuf.ByteString getAllowListBytes(int index) {
+ return allowList_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @param index The index to set the value at.
+ * @param value The allowList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAllowList(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAllowListIsMutable();
+ allowList_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @param value The allowList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllowList(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAllowListIsMutable();
+ allowList_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @param values The allowList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllAllowList(java.lang.Iterable
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAllowList() {
+ allowList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to allow in this namespace. eg: 'red'
+ *
+ *
+ * repeated string allow_list = 2;
+ *
+ * @param value The bytes of the allowList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllowListBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureAllowListIsMutable();
+ allowList_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList denyList_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureDenyListIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ denyList_ = new com.google.protobuf.LazyStringArrayList(denyList_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @return A list containing the denyList.
+ */
+ public com.google.protobuf.ProtocolStringList getDenyListList() {
+ return denyList_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @return The count of denyList.
+ */
+ public int getDenyListCount() {
+ return denyList_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @param index The index of the element to return.
+ * @return The denyList at the given index.
+ */
+ public java.lang.String getDenyList(int index) {
+ return denyList_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the denyList at the given index.
+ */
+ public com.google.protobuf.ByteString getDenyListBytes(int index) {
+ return denyList_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @param index The index to set the value at.
+ * @param value The denyList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDenyList(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDenyListIsMutable();
+ denyList_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @param value The denyList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDenyList(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDenyListIsMutable();
+ denyList_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @param values The denyList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDenyList(java.lang.Iterable
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDenyList() {
+ denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The attributes to deny in this namespace. eg: 'blue'
+ *
+ *
+ * repeated string deny_list = 3;
+ *
+ * @param value The bytes of the denyList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDenyListBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDenyListIsMutable();
+ denyList_.add(value);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.IndexDatapoint.Restriction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.IndexDatapoint.Restriction)
+ private static final com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction();
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The attribute value used for crowding. The maximum number of neighbors
+ * to return per crowding attribute value
+ * (per_crowding_attribute_num_neighbors) is configured per-query. This
+ * field is ignored if per_crowding_attribute_num_neighbors is larger than
+ * the total number of neighbors to return for a given query.
+ *
+ *
+ * string crowding_attribute = 1;
+ *
+ * @return The crowdingAttribute.
+ */
+ java.lang.String getCrowdingAttribute();
+ /**
+ *
+ *
+ *
+ * The attribute value used for crowding. The maximum number of neighbors
+ * to return per crowding attribute value
+ * (per_crowding_attribute_num_neighbors) is configured per-query. This
+ * field is ignored if per_crowding_attribute_num_neighbors is larger than
+ * the total number of neighbors to return for a given query.
+ *
+ *
+ * string crowding_attribute = 1;
+ *
+ * @return The bytes for crowdingAttribute.
+ */
+ com.google.protobuf.ByteString getCrowdingAttributeBytes();
+ }
+ /**
+ *
+ *
+ *
+ * Crowding tag is a constraint on a neighbor list produced by nearest
+ * neighbor search requiring that no more than some value k' of the k
+ * neighbors returned have the same value of crowding_attribute.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag}
+ */
+ public static final class CrowdingTag extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag)
+ CrowdingTagOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CrowdingTag.newBuilder() to construct.
+ private CrowdingTag(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private CrowdingTag() {
+ crowdingAttribute_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new CrowdingTag();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private CrowdingTag(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ crowdingAttribute_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.IndexProto
+ .internal_static_google_cloud_aiplatform_v1_IndexDatapoint_CrowdingTag_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.IndexProto
+ .internal_static_google_cloud_aiplatform_v1_IndexDatapoint_CrowdingTag_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.class,
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.Builder.class);
+ }
+
+ public static final int CROWDING_ATTRIBUTE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object crowdingAttribute_;
+ /**
+ *
+ *
+ *
+ * The attribute value used for crowding. The maximum number of neighbors
+ * to return per crowding attribute value
+ * (per_crowding_attribute_num_neighbors) is configured per-query. This
+ * field is ignored if per_crowding_attribute_num_neighbors is larger than
+ * the total number of neighbors to return for a given query.
+ *
+ *
+ * string crowding_attribute = 1;
+ *
+ * @return The crowdingAttribute.
+ */
+ @java.lang.Override
+ public java.lang.String getCrowdingAttribute() {
+ java.lang.Object ref = crowdingAttribute_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crowdingAttribute_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The attribute value used for crowding. The maximum number of neighbors
+ * to return per crowding attribute value
+ * (per_crowding_attribute_num_neighbors) is configured per-query. This
+ * field is ignored if per_crowding_attribute_num_neighbors is larger than
+ * the total number of neighbors to return for a given query.
+ *
+ *
+ * string crowding_attribute = 1;
+ *
+ * @return The bytes for crowdingAttribute.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCrowdingAttributeBytes() {
+ java.lang.Object ref = crowdingAttribute_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ crowdingAttribute_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crowdingAttribute_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, crowdingAttribute_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crowdingAttribute_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, crowdingAttribute_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag other =
+ (com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag) obj;
+
+ if (!getCrowdingAttribute().equals(other.getCrowdingAttribute())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CROWDING_ATTRIBUTE_FIELD_NUMBER;
+ hash = (53 * hash) + getCrowdingAttribute().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Crowding tag is a constraint on a neighbor list produced by nearest
+ * neighbor search requiring that no more than some value k' of the k
+ * neighbors returned have the same value of crowding_attribute.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The attribute value used for crowding. The maximum number of neighbors
+ * to return per crowding attribute value
+ * (per_crowding_attribute_num_neighbors) is configured per-query. This
+ * field is ignored if per_crowding_attribute_num_neighbors is larger than
+ * the total number of neighbors to return for a given query.
+ *
+ *
+ * string crowding_attribute = 1;
+ *
+ * @return The crowdingAttribute.
+ */
+ public java.lang.String getCrowdingAttribute() {
+ java.lang.Object ref = crowdingAttribute_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crowdingAttribute_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The attribute value used for crowding. The maximum number of neighbors
+ * to return per crowding attribute value
+ * (per_crowding_attribute_num_neighbors) is configured per-query. This
+ * field is ignored if per_crowding_attribute_num_neighbors is larger than
+ * the total number of neighbors to return for a given query.
+ *
+ *
+ * string crowding_attribute = 1;
+ *
+ * @return The bytes for crowdingAttribute.
+ */
+ public com.google.protobuf.ByteString getCrowdingAttributeBytes() {
+ java.lang.Object ref = crowdingAttribute_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ crowdingAttribute_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The attribute value used for crowding. The maximum number of neighbors
+ * to return per crowding attribute value
+ * (per_crowding_attribute_num_neighbors) is configured per-query. This
+ * field is ignored if per_crowding_attribute_num_neighbors is larger than
+ * the total number of neighbors to return for a given query.
+ *
+ *
+ * string crowding_attribute = 1;
+ *
+ * @param value The crowdingAttribute to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCrowdingAttribute(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ crowdingAttribute_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The attribute value used for crowding. The maximum number of neighbors
+ * to return per crowding attribute value
+ * (per_crowding_attribute_num_neighbors) is configured per-query. This
+ * field is ignored if per_crowding_attribute_num_neighbors is larger than
+ * the total number of neighbors to return for a given query.
+ *
+ *
+ * string crowding_attribute = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCrowdingAttribute() {
+
+ crowdingAttribute_ = getDefaultInstance().getCrowdingAttribute();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The attribute value used for crowding. The maximum number of neighbors
+ * to return per crowding attribute value
+ * (per_crowding_attribute_num_neighbors) is configured per-query. This
+ * field is ignored if per_crowding_attribute_num_neighbors is larger than
+ * the total number of neighbors to return for a given query.
+ *
+ *
+ * string crowding_attribute = 1;
+ *
+ * @param value The bytes for crowdingAttribute to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCrowdingAttributeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ crowdingAttribute_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag)
+ private static final com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag();
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. Unique identifier of the datapoint.
+ *
+ *
+ * string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The datapointId.
+ */
+ @java.lang.Override
+ public java.lang.String getDatapointId() {
+ java.lang.Object ref = datapointId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datapointId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Unique identifier of the datapoint.
+ *
+ *
+ * string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for datapointId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatapointIdBytes() {
+ java.lang.Object ref = datapointId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datapointId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FEATURE_VECTOR_FIELD_NUMBER = 2;
+ private com.google.protobuf.Internal.FloatList featureVector_;
+ /**
+ *
+ *
+ *
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the featureVector.
+ */
+ @java.lang.Override
+ public java.util.List
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of featureVector.
+ */
+ public int getFeatureVectorCount() {
+ return featureVector_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The featureVector at the given index.
+ */
+ public float getFeatureVector(int index) {
+ return featureVector_.getFloat(index);
+ }
+
+ private int featureVectorMemoizedSerializedSize = -1;
+
+ public static final int RESTRICTS_FIELD_NUMBER = 4;
+ private java.util.List
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionOrBuilder>
+ getRestrictsOrBuilderList() {
+ return restricts_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getRestrictsCount() {
+ return restricts_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction getRestricts(int index) {
+ return restricts_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionOrBuilder getRestrictsOrBuilder(
+ int index) {
+ return restricts_.get(index);
+ }
+
+ public static final int CROWDING_TAG_FIELD_NUMBER = 5;
+ private com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowdingTag_;
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the crowdingTag field is set.
+ */
+ @java.lang.Override
+ public boolean hasCrowdingTag() {
+ return crowdingTag_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The crowdingTag.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag getCrowdingTag() {
+ return crowdingTag_ == null
+ ? com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.getDefaultInstance()
+ : crowdingTag_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTagOrBuilder
+ getCrowdingTagOrBuilder() {
+ return getCrowdingTag();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ getSerializedSize();
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datapointId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datapointId_);
+ }
+ if (getFeatureVectorList().size() > 0) {
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(featureVectorMemoizedSerializedSize);
+ }
+ for (int i = 0; i < featureVector_.size(); i++) {
+ output.writeFloatNoTag(featureVector_.getFloat(i));
+ }
+ for (int i = 0; i < restricts_.size(); i++) {
+ output.writeMessage(4, restricts_.get(i));
+ }
+ if (crowdingTag_ != null) {
+ output.writeMessage(5, getCrowdingTag());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datapointId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datapointId_);
+ }
+ {
+ int dataSize = 0;
+ dataSize = 4 * getFeatureVectorList().size();
+ size += dataSize;
+ if (!getFeatureVectorList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
+ }
+ featureVectorMemoizedSerializedSize = dataSize;
+ }
+ for (int i = 0; i < restricts_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, restricts_.get(i));
+ }
+ if (crowdingTag_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCrowdingTag());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.IndexDatapoint)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.IndexDatapoint other =
+ (com.google.cloud.aiplatform.v1.IndexDatapoint) obj;
+
+ if (!getDatapointId().equals(other.getDatapointId())) return false;
+ if (!getFeatureVectorList().equals(other.getFeatureVectorList())) return false;
+ if (!getRestrictsList().equals(other.getRestrictsList())) return false;
+ if (hasCrowdingTag() != other.hasCrowdingTag()) return false;
+ if (hasCrowdingTag()) {
+ if (!getCrowdingTag().equals(other.getCrowdingTag())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DATAPOINT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getDatapointId().hashCode();
+ if (getFeatureVectorCount() > 0) {
+ hash = (37 * hash) + FEATURE_VECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getFeatureVectorList().hashCode();
+ }
+ if (getRestrictsCount() > 0) {
+ hash = (37 * hash) + RESTRICTS_FIELD_NUMBER;
+ hash = (53 * hash) + getRestrictsList().hashCode();
+ }
+ if (hasCrowdingTag()) {
+ hash = (37 * hash) + CROWDING_TAG_FIELD_NUMBER;
+ hash = (53 * hash) + getCrowdingTag().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.aiplatform.v1.IndexDatapoint prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A datapoint of Index.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.IndexDatapoint}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Unique identifier of the datapoint.
+ *
+ *
+ * string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The datapointId.
+ */
+ public java.lang.String getDatapointId() {
+ java.lang.Object ref = datapointId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ datapointId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Unique identifier of the datapoint.
+ *
+ *
+ * string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for datapointId.
+ */
+ public com.google.protobuf.ByteString getDatapointIdBytes() {
+ java.lang.Object ref = datapointId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ datapointId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Unique identifier of the datapoint.
+ *
+ *
+ * string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The datapointId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatapointId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ datapointId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Unique identifier of the datapoint.
+ *
+ *
+ * string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatapointId() {
+
+ datapointId_ = getDefaultInstance().getDatapointId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Unique identifier of the datapoint.
+ *
+ *
+ * string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for datapointId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatapointIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ datapointId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.FloatList featureVector_ = emptyFloatList();
+
+ private void ensureFeatureVectorIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ featureVector_ = mutableCopy(featureVector_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the featureVector.
+ */
+ public java.util.List
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of featureVector.
+ */
+ public int getFeatureVectorCount() {
+ return featureVector_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The featureVector at the given index.
+ */
+ public float getFeatureVector(int index) {
+ return featureVector_.getFloat(index);
+ }
+ /**
+ *
+ *
+ *
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index to set the value at.
+ * @param value The featureVector to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFeatureVector(int index, float value) {
+ ensureFeatureVectorIsMutable();
+ featureVector_.setFloat(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The featureVector to add.
+ * @return This builder for chaining.
+ */
+ public Builder addFeatureVector(float value) {
+ ensureFeatureVectorIsMutable();
+ featureVector_.addFloat(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param values The featureVector to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllFeatureVector(java.lang.Iterable extends java.lang.Float> values) {
+ ensureFeatureVectorIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, featureVector_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFeatureVector() {
+ featureVector_ = emptyFloatList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getRestrictsCount() {
+ if (restrictsBuilder_ == null) {
+ return restricts_.size();
+ } else {
+ return restrictsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction getRestricts(int index) {
+ if (restrictsBuilder_ == null) {
+ return restricts_.get(index);
+ } else {
+ return restrictsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRestricts(
+ int index, com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction value) {
+ if (restrictsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRestrictsIsMutable();
+ restricts_.set(index, value);
+ onChanged();
+ } else {
+ restrictsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRestricts(
+ int index,
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder builderForValue) {
+ if (restrictsBuilder_ == null) {
+ ensureRestrictsIsMutable();
+ restricts_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ restrictsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addRestricts(com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction value) {
+ if (restrictsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRestrictsIsMutable();
+ restricts_.add(value);
+ onChanged();
+ } else {
+ restrictsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addRestricts(
+ int index, com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction value) {
+ if (restrictsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRestrictsIsMutable();
+ restricts_.add(index, value);
+ onChanged();
+ } else {
+ restrictsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addRestricts(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder builderForValue) {
+ if (restrictsBuilder_ == null) {
+ ensureRestrictsIsMutable();
+ restricts_.add(builderForValue.build());
+ onChanged();
+ } else {
+ restrictsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addRestricts(
+ int index,
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder builderForValue) {
+ if (restrictsBuilder_ == null) {
+ ensureRestrictsIsMutable();
+ restricts_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ restrictsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllRestricts(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction>
+ values) {
+ if (restrictsBuilder_ == null) {
+ ensureRestrictsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restricts_);
+ onChanged();
+ } else {
+ restrictsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRestricts() {
+ if (restrictsBuilder_ == null) {
+ restricts_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ restrictsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeRestricts(int index) {
+ if (restrictsBuilder_ == null) {
+ ensureRestrictsIsMutable();
+ restricts_.remove(index);
+ onChanged();
+ } else {
+ restrictsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder getRestrictsBuilder(
+ int index) {
+ return getRestrictsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionOrBuilder getRestrictsOrBuilder(
+ int index) {
+ if (restrictsBuilder_ == null) {
+ return restricts_.get(index);
+ } else {
+ return restrictsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionOrBuilder>
+ getRestrictsOrBuilderList() {
+ if (restrictsBuilder_ != null) {
+ return restrictsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(restricts_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder addRestrictsBuilder() {
+ return getRestrictsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder addRestrictsBuilder(
+ int index) {
+ return getRestrictsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the crowdingTag field is set.
+ */
+ public boolean hasCrowdingTag() {
+ return crowdingTagBuilder_ != null || crowdingTag_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The crowdingTag.
+ */
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag getCrowdingTag() {
+ if (crowdingTagBuilder_ == null) {
+ return crowdingTag_ == null
+ ? com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.getDefaultInstance()
+ : crowdingTag_;
+ } else {
+ return crowdingTagBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setCrowdingTag(com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag value) {
+ if (crowdingTagBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ crowdingTag_ = value;
+ onChanged();
+ } else {
+ crowdingTagBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setCrowdingTag(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.Builder builderForValue) {
+ if (crowdingTagBuilder_ == null) {
+ crowdingTag_ = builderForValue.build();
+ onChanged();
+ } else {
+ crowdingTagBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeCrowdingTag(
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag value) {
+ if (crowdingTagBuilder_ == null) {
+ if (crowdingTag_ != null) {
+ crowdingTag_ =
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.newBuilder(crowdingTag_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ crowdingTag_ = value;
+ }
+ onChanged();
+ } else {
+ crowdingTagBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearCrowdingTag() {
+ if (crowdingTagBuilder_ == null) {
+ crowdingTag_ = null;
+ onChanged();
+ } else {
+ crowdingTag_ = null;
+ crowdingTagBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.Builder
+ getCrowdingTagBuilder() {
+
+ onChanged();
+ return getCrowdingTagFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTagOrBuilder
+ getCrowdingTagOrBuilder() {
+ if (crowdingTagBuilder_ != null) {
+ return crowdingTagBuilder_.getMessageOrBuilder();
+ } else {
+ return crowdingTag_ == null
+ ? com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.getDefaultInstance()
+ : crowdingTag_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag,
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.Builder,
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTagOrBuilder>
+ getCrowdingTagFieldBuilder() {
+ if (crowdingTagBuilder_ == null) {
+ crowdingTagBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag,
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.Builder,
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTagOrBuilder>(
+ getCrowdingTag(), getParentForChildren(), isClean());
+ crowdingTag_ = null;
+ }
+ return crowdingTagBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.IndexDatapoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.IndexDatapoint)
+ private static final com.google.cloud.aiplatform.v1.IndexDatapoint DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.IndexDatapoint();
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexDatapoint getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. Unique identifier of the datapoint.
+ *
+ *
+ * string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The datapointId.
+ */
+ java.lang.String getDatapointId();
+ /**
+ *
+ *
+ *
+ * Required. Unique identifier of the datapoint.
+ *
+ *
+ * string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for datapointId.
+ */
+ com.google.protobuf.ByteString getDatapointIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the featureVector.
+ */
+ java.util.List
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of featureVector.
+ */
+ int getFeatureVectorCount();
+ /**
+ *
+ *
+ *
+ * Required. Feature embedding vector. An array of numbers with the length of
+ * [NearestNeighborSearchConfig.dimensions].
+ *
+ *
+ * repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The featureVector at the given index.
+ */
+ float getFeatureVector(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction getRestricts(int index);
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getRestrictsCount();
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionOrBuilder>
+ getRestrictsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Optional. List of Restrict of the datapoint, used to perform "restricted searches"
+ * where boolean rule are used to filter the subset of the database eligible
+ * for matching.
+ * See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionOrBuilder getRestrictsOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the crowdingTag field is set.
+ */
+ boolean hasCrowdingTag();
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The crowdingTag.
+ */
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag getCrowdingTag();
+ /**
+ *
+ *
+ *
+ * Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
+ * crowding can be configured during query.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTagOrBuilder getCrowdingTagOrBuilder();
+}
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java
index 5a3bcc4ba..eeec98ba1 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java
@@ -453,4 +453,76 @@ java.lang.String getLabelsOrDefault(
*
*/
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the indexStats field is set.
+ */
+ boolean hasIndexStats();
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The indexStats.
+ */
+ com.google.cloud.aiplatform.v1.IndexStats getIndexStats();
+ /**
+ *
+ *
+ *
+ * Output only. Stats of the index resource.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1.IndexStatsOrBuilder getIndexStatsOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be
+ * used by default.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The enum numeric value on the wire for indexUpdateMethod.
+ */
+ int getIndexUpdateMethodValue();
+ /**
+ *
+ *
+ *
+ * Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be
+ * used by default.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The indexUpdateMethod.
+ */
+ com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod getIndexUpdateMethod();
}
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexProto.java
index cf17b72bf..47589cfee 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexProto.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexProto.java
@@ -35,6 +35,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_Index_LabelsEntry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_Index_LabelsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_Restriction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_Restriction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_CrowdingTag_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_CrowdingTag_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_IndexStats_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_IndexStats_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -50,7 +66,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ce.proto\0323google/cloud/aiplatform/v1/dep"
+ "loyed_index_ref.proto\032\034google/protobuf/s"
+ "truct.proto\032\037google/protobuf/timestamp.p"
- + "roto\"\252\004\n\005Index\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014dis"
+ + "roto\"\242\006\n\005Index\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014dis"
+ "play_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001("
+ "\t\022 \n\023metadata_schema_uri\030\004 \001(\tB\003\340A\005\022(\n\010m"
+ "etadata\030\006 \001(\0132\026.google.protobuf.Value\022K\n"
@@ -60,16 +76,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "aiplatform.v1.Index.LabelsEntry\0224\n\013creat"
+ "e_time\030\n \001(\0132\032.google.protobuf.Timestamp"
+ "B\003\340A\003\0224\n\013update_time\030\013 \001(\0132\032.google.prot"
- + "obuf.TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke"
- + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:]\352AZ\n\037aiplatf"
- + "orm.googleapis.com/Index\0227projects/{proj"
- + "ect}/locations/{location}/indexes/{index"
- + "}B\316\001\n\036com.google.cloud.aiplatform.v1B\nIn"
- + "dexProtoP\001ZDgoogle.golang.org/genproto/g"
- + "oogleapis/cloud/aiplatform/v1;aiplatform"
- + "\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\C"
- + "loud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPl"
- + "atform::V1b\006proto3"
+ + "obuf.TimestampB\003\340A\003\022@\n\013index_stats\030\016 \001(\013"
+ + "2&.google.cloud.aiplatform.v1.IndexStats"
+ + "B\003\340A\003\022U\n\023index_update_method\030\020 \001(\01623.goo"
+ + "gle.cloud.aiplatform.v1.Index.IndexUpdat"
+ + "eMethodB\003\340A\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t"
+ + "\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\021IndexUpdateMethod"
+ + "\022#\n\037INDEX_UPDATE_METHOD_UNSPECIFIED\020\000\022\020\n"
+ + "\014BATCH_UPDATE\020\001\022\021\n\rSTREAM_UPDATE\020\002:]\352AZ\n"
+ + "\037aiplatform.googleapis.com/Index\0227projec"
+ + "ts/{project}/locations/{location}/indexe"
+ + "s/{index}\"\337\002\n\016IndexDatapoint\022\031\n\014datapoin"
+ + "t_id\030\001 \001(\tB\003\340A\002\022\033\n\016feature_vector\030\002 \003(\002B"
+ + "\003\340A\002\022N\n\trestricts\030\004 \003(\01326.google.cloud.a"
+ + "iplatform.v1.IndexDatapoint.RestrictionB"
+ + "\003\340A\001\022Q\n\014crowding_tag\030\005 \001(\01326.google.clou"
+ + "d.aiplatform.v1.IndexDatapoint.CrowdingT"
+ + "agB\003\340A\001\032G\n\013Restriction\022\021\n\tnamespace\030\001 \001("
+ + "\t\022\022\n\nallow_list\030\002 \003(\t\022\021\n\tdeny_list\030\003 \003(\t"
+ + "\032)\n\013CrowdingTag\022\032\n\022crowding_attribute\030\001 "
+ + "\001(\t\"C\n\nIndexStats\022\032\n\rvectors_count\030\001 \001(\003"
+ + "B\003\340A\003\022\031\n\014shards_count\030\002 \001(\005B\003\340A\003B\316\001\n\036com"
+ + ".google.cloud.aiplatform.v1B\nIndexProtoP"
+ + "\001ZDgoogle.golang.org/genproto/googleapis"
+ + "/cloud/aiplatform/v1;aiplatform\252\002\032Google"
+ + ".Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPl"
+ + "atform\\V1\352\002\035Google::Cloud::AIPlatform::V"
+ + "1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -97,6 +130,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Labels",
"CreateTime",
"UpdateTime",
+ "IndexStats",
+ "IndexUpdateMethod",
});
internal_static_google_cloud_aiplatform_v1_Index_LabelsEntry_descriptor =
internal_static_google_cloud_aiplatform_v1_Index_descriptor.getNestedTypes().get(0);
@@ -106,6 +141,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Key", "Value",
});
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_descriptor,
+ new java.lang.String[] {
+ "DatapointId", "FeatureVector", "Restricts", "CrowdingTag",
+ });
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_Restriction_descriptor =
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_Restriction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_Restriction_descriptor,
+ new java.lang.String[] {
+ "Namespace", "AllowList", "DenyList",
+ });
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_CrowdingTag_descriptor =
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_CrowdingTag_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_IndexDatapoint_CrowdingTag_descriptor,
+ new java.lang.String[] {
+ "CrowdingAttribute",
+ });
+ internal_static_google_cloud_aiplatform_v1_IndexStats_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_aiplatform_v1_IndexStats_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_IndexStats_descriptor,
+ new java.lang.String[] {
+ "VectorsCount", "ShardsCount",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceProto.java
index 7d3014968..54ee72f02 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceProto.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceProto.java
@@ -59,6 +59,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_DeleteIndexRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_DeleteIndexRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_UpsertDatapointsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_UpsertDatapointsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_UpsertDatapointsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_UpsertDatapointsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_RemoveDatapointsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_RemoveDatapointsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_RemoveDatapointsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_RemoveDatapointsResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_NearestNeighborSearchOperationMetadata_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -117,60 +133,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\002 \001(\0132B.google.cloud.aiplatform.v1.Neare"
+ "stNeighborSearchOperationMetadata\"K\n\022Del"
+ "eteIndexRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037a"
- + "iplatform.googleapis.com/Index\"\311\006\n&Neare"
- + "stNeighborSearchOperationMetadata\022{\n\030con"
- + "tent_validation_stats\030\001 \003(\0132Y.google.clo"
- + "ud.aiplatform.v1.NearestNeighborSearchOp"
- + "erationMetadata.ContentValidationStats\022\030"
- + "\n\020data_bytes_count\030\002 \001(\003\032\262\003\n\013RecordError"
- + "\022r\n\nerror_type\030\001 \001(\0162^.google.cloud.aipl"
- + "atform.v1.NearestNeighborSearchOperation"
- + "Metadata.RecordError.RecordErrorType\022\025\n\r"
- + "error_message\030\002 \001(\t\022\026\n\016source_gcs_uri\030\003 "
- + "\001(\t\022\024\n\014embedding_id\030\004 \001(\t\022\022\n\nraw_record\030"
- + "\005 \001(\t\"\325\001\n\017RecordErrorType\022\032\n\026ERROR_TYPE_"
- + "UNSPECIFIED\020\000\022\016\n\nEMPTY_LINE\020\001\022\027\n\023INVALID"
- + "_JSON_SYNTAX\020\002\022\026\n\022INVALID_CSV_SYNTAX\020\003\022\027"
- + "\n\023INVALID_AVRO_SYNTAX\020\004\022\030\n\024INVALID_EMBED"
- + "DING_ID\020\005\022\033\n\027EMBEDDING_SIZE_MISMATCH\020\006\022\025"
- + "\n\021NAMESPACE_MISSING\020\007\032\322\001\n\026ContentValidat"
- + "ionStats\022\026\n\016source_gcs_uri\030\001 \001(\t\022\032\n\022vali"
- + "d_record_count\030\002 \001(\003\022\034\n\024invalid_record_c"
- + "ount\030\003 \001(\003\022f\n\016partial_errors\030\004 \003(\0132N.goo"
- + "gle.cloud.aiplatform.v1.NearestNeighborS"
- + "earchOperationMetadata.RecordError2\242\010\n\014I"
- + "ndexService\022\317\001\n\013CreateIndex\022..google.clo"
- + "ud.aiplatform.v1.CreateIndexRequest\032\035.go"
- + "ogle.longrunning.Operation\"q\202\323\344\223\0024\"+/v1/"
- + "{parent=projects/*/locations/*}/indexes:"
- + "\005index\332A\014parent,index\312A%\n\005Index\022\034CreateI"
- + "ndexOperationMetadata\022\226\001\n\010GetIndex\022+.goo"
- + "gle.cloud.aiplatform.v1.GetIndexRequest\032"
- + "!.google.cloud.aiplatform.v1.Index\":\202\323\344\223"
- + "\002-\022+/v1/{name=projects/*/locations/*/ind"
- + "exes/*}\332A\004name\022\254\001\n\013ListIndexes\022..google."
- + "cloud.aiplatform.v1.ListIndexesRequest\032/"
- + ".google.cloud.aiplatform.v1.ListIndexesR"
- + "esponse\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/"
- + "locations/*}/indexes\332A\006parent\022\332\001\n\013Update"
- + "Index\022..google.cloud.aiplatform.v1.Updat"
- + "eIndexRequest\032\035.google.longrunning.Opera"
- + "tion\"|\202\323\344\223\002:21/v1/{index.name=projects/*"
- + "/locations/*/indexes/*}:\005index\332A\021index,u"
- + "pdate_mask\312A%\n\005Index\022\034UpdateIndexOperati"
- + "onMetadata\022\313\001\n\013DeleteIndex\022..google.clou"
- + "d.aiplatform.v1.DeleteIndexRequest\032\035.goo"
- + "gle.longrunning.Operation\"m\202\323\344\223\002-*+/v1/{"
- + "name=projects/*/locations/*/indexes/*}\332A"
- + "\004name\312A0\n\025google.protobuf.Empty\022\027DeleteO"
- + "perationMetadata\032M\312A\031aiplatform.googleap"
- + "is.com\322A.https://www.googleapis.com/auth"
- + "/cloud-platformB\325\001\n\036com.google.cloud.aip"
- + "latform.v1B\021IndexServiceProtoP\001ZDgoogle."
- + "golang.org/genproto/googleapis/cloud/aip"
- + "latform/v1;aiplatform\252\002\032Google.Cloud.AIP"
- + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352"
- + "\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "iplatform.googleapis.com/Index\"\221\001\n\027Upser"
+ + "tDatapointsRequest\0226\n\005index\030\001 \001(\tB\'\340A\002\372A"
+ + "!\n\037aiplatform.googleapis.com/Index\022>\n\nda"
+ + "tapoints\030\002 \003(\0132*.google.cloud.aiplatform"
+ + ".v1.IndexDatapoint\"\032\n\030UpsertDatapointsRe"
+ + "sponse\"h\n\027RemoveDatapointsRequest\0226\n\005ind"
+ + "ex\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis."
+ + "com/Index\022\025\n\rdatapoint_ids\030\002 \003(\t\"\032\n\030Remo"
+ + "veDatapointsResponse\"\311\006\n&NearestNeighbor"
+ + "SearchOperationMetadata\022{\n\030content_valid"
+ + "ation_stats\030\001 \003(\0132Y.google.cloud.aiplatf"
+ + "orm.v1.NearestNeighborSearchOperationMet"
+ + "adata.ContentValidationStats\022\030\n\020data_byt"
+ + "es_count\030\002 \001(\003\032\262\003\n\013RecordError\022r\n\nerror_"
+ + "type\030\001 \001(\0162^.google.cloud.aiplatform.v1."
+ + "NearestNeighborSearchOperationMetadata.R"
+ + "ecordError.RecordErrorType\022\025\n\rerror_mess"
+ + "age\030\002 \001(\t\022\026\n\016source_gcs_uri\030\003 \001(\t\022\024\n\014emb"
+ + "edding_id\030\004 \001(\t\022\022\n\nraw_record\030\005 \001(\t\"\325\001\n\017"
+ + "RecordErrorType\022\032\n\026ERROR_TYPE_UNSPECIFIE"
+ + "D\020\000\022\016\n\nEMPTY_LINE\020\001\022\027\n\023INVALID_JSON_SYNT"
+ + "AX\020\002\022\026\n\022INVALID_CSV_SYNTAX\020\003\022\027\n\023INVALID_"
+ + "AVRO_SYNTAX\020\004\022\030\n\024INVALID_EMBEDDING_ID\020\005\022"
+ + "\033\n\027EMBEDDING_SIZE_MISMATCH\020\006\022\025\n\021NAMESPAC"
+ + "E_MISSING\020\007\032\322\001\n\026ContentValidationStats\022\026"
+ + "\n\016source_gcs_uri\030\001 \001(\t\022\032\n\022valid_record_c"
+ + "ount\030\002 \001(\003\022\034\n\024invalid_record_count\030\003 \001(\003"
+ + "\022f\n\016partial_errors\030\004 \003(\0132N.google.cloud."
+ + "aiplatform.v1.NearestNeighborSearchOpera"
+ + "tionMetadata.RecordError2\266\013\n\014IndexServic"
+ + "e\022\317\001\n\013CreateIndex\022..google.cloud.aiplatf"
+ + "orm.v1.CreateIndexRequest\032\035.google.longr"
+ + "unning.Operation\"q\202\323\344\223\0024\"+/v1/{parent=pr"
+ + "ojects/*/locations/*}/indexes:\005index\332A\014p"
+ + "arent,index\312A%\n\005Index\022\034CreateIndexOperat"
+ + "ionMetadata\022\226\001\n\010GetIndex\022+.google.cloud."
+ + "aiplatform.v1.GetIndexRequest\032!.google.c"
+ + "loud.aiplatform.v1.Index\":\202\323\344\223\002-\022+/v1/{n"
+ + "ame=projects/*/locations/*/indexes/*}\332A\004"
+ + "name\022\254\001\n\013ListIndexes\022..google.cloud.aipl"
+ + "atform.v1.ListIndexesRequest\032/.google.cl"
+ + "oud.aiplatform.v1.ListIndexesResponse\"<\202"
+ + "\323\344\223\002-\022+/v1/{parent=projects/*/locations/"
+ + "*}/indexes\332A\006parent\022\332\001\n\013UpdateIndex\022..go"
+ + "ogle.cloud.aiplatform.v1.UpdateIndexRequ"
+ + "est\032\035.google.longrunning.Operation\"|\202\323\344\223"
+ + "\002:21/v1/{index.name=projects/*/locations"
+ + "/*/indexes/*}:\005index\332A\021index,update_mask"
+ + "\312A%\n\005Index\022\034UpdateIndexOperationMetadata"
+ + "\022\313\001\n\013DeleteIndex\022..google.cloud.aiplatfo"
+ + "rm.v1.DeleteIndexRequest\032\035.google.longru"
+ + "nning.Operation\"m\202\323\344\223\002-*+/v1/{name=proje"
+ + "cts/*/locations/*/indexes/*}\332A\004name\312A0\n\025"
+ + "google.protobuf.Empty\022\027DeleteOperationMe"
+ + "tadata\022\307\001\n\020UpsertDatapoints\0223.google.clo"
+ + "ud.aiplatform.v1.UpsertDatapointsRequest"
+ + "\0324.google.cloud.aiplatform.v1.UpsertData"
+ + "pointsResponse\"H\202\323\344\223\002B\"=/v1/{index=proje"
+ + "cts/*/locations/*/indexes/*}:upsertDatap"
+ + "oints:\001*\022\307\001\n\020RemoveDatapoints\0223.google.c"
+ + "loud.aiplatform.v1.RemoveDatapointsReque"
+ + "st\0324.google.cloud.aiplatform.v1.RemoveDa"
+ + "tapointsResponse\"H\202\323\344\223\002B\"=/v1/{index=pro"
+ + "jects/*/locations/*/indexes/*}:removeDat"
+ + "apoints:\001*\032M\312A\031aiplatform.googleapis.com"
+ + "\322A.https://www.googleapis.com/auth/cloud"
+ + "-platformB\325\001\n\036com.google.cloud.aiplatfor"
+ + "m.v1B\021IndexServiceProtoP\001ZDgoogle.golang"
+ + ".org/genproto/googleapis/cloud/aiplatfor"
+ + "m/v1;aiplatform\252\002\032Google.Cloud.AIPlatfor"
+ + "m.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goog"
+ + "le::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -249,8 +283,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Name",
});
- internal_static_google_cloud_aiplatform_v1_NearestNeighborSearchOperationMetadata_descriptor =
+ internal_static_google_cloud_aiplatform_v1_UpsertDatapointsRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
+ internal_static_google_cloud_aiplatform_v1_UpsertDatapointsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_UpsertDatapointsRequest_descriptor,
+ new java.lang.String[] {
+ "Index", "Datapoints",
+ });
+ internal_static_google_cloud_aiplatform_v1_UpsertDatapointsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_cloud_aiplatform_v1_UpsertDatapointsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_UpsertDatapointsResponse_descriptor,
+ new java.lang.String[] {});
+ internal_static_google_cloud_aiplatform_v1_RemoveDatapointsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_cloud_aiplatform_v1_RemoveDatapointsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_RemoveDatapointsRequest_descriptor,
+ new java.lang.String[] {
+ "Index", "DatapointIds",
+ });
+ internal_static_google_cloud_aiplatform_v1_RemoveDatapointsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_aiplatform_v1_RemoveDatapointsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_RemoveDatapointsResponse_descriptor,
+ new java.lang.String[] {});
+ internal_static_google_cloud_aiplatform_v1_NearestNeighborSearchOperationMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(12);
internal_static_google_cloud_aiplatform_v1_NearestNeighborSearchOperationMetadata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_NearestNeighborSearchOperationMetadata_descriptor,
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexStats.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexStats.java
new file mode 100644
index 000000000..5a031cbe0
--- /dev/null
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexStats.java
@@ -0,0 +1,636 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/aiplatform/v1/index.proto
+
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Stats of the Index.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.IndexStats}
+ */
+public final class IndexStats extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.IndexStats)
+ IndexStatsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IndexStats.newBuilder() to construct.
+ private IndexStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private IndexStats() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new IndexStats();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private IndexStats(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ vectorsCount_ = input.readInt64();
+ break;
+ }
+ case 16:
+ {
+ shardsCount_ = input.readInt32();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.IndexProto
+ .internal_static_google_cloud_aiplatform_v1_IndexStats_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.IndexProto
+ .internal_static_google_cloud_aiplatform_v1_IndexStats_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.IndexStats.class,
+ com.google.cloud.aiplatform.v1.IndexStats.Builder.class);
+ }
+
+ public static final int VECTORS_COUNT_FIELD_NUMBER = 1;
+ private long vectorsCount_;
+ /**
+ *
+ *
+ *
+ * Output only. The number of vectors in the Index.
+ *
+ *
+ * int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The vectorsCount.
+ */
+ @java.lang.Override
+ public long getVectorsCount() {
+ return vectorsCount_;
+ }
+
+ public static final int SHARDS_COUNT_FIELD_NUMBER = 2;
+ private int shardsCount_;
+ /**
+ *
+ *
+ *
+ * Output only. The number of shards in the Index.
+ *
+ *
+ * int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The shardsCount.
+ */
+ @java.lang.Override
+ public int getShardsCount() {
+ return shardsCount_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (vectorsCount_ != 0L) {
+ output.writeInt64(1, vectorsCount_);
+ }
+ if (shardsCount_ != 0) {
+ output.writeInt32(2, shardsCount_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (vectorsCount_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, vectorsCount_);
+ }
+ if (shardsCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, shardsCount_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.IndexStats)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.IndexStats other =
+ (com.google.cloud.aiplatform.v1.IndexStats) obj;
+
+ if (getVectorsCount() != other.getVectorsCount()) return false;
+ if (getShardsCount() != other.getShardsCount()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + VECTORS_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVectorsCount());
+ hash = (37 * hash) + SHARDS_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getShardsCount();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.aiplatform.v1.IndexStats prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Stats of the Index.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.IndexStats}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. The number of vectors in the Index.
+ *
+ *
+ * int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The vectorsCount.
+ */
+ @java.lang.Override
+ public long getVectorsCount() {
+ return vectorsCount_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The number of vectors in the Index.
+ *
+ *
+ * int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The vectorsCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVectorsCount(long value) {
+
+ vectorsCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The number of vectors in the Index.
+ *
+ *
+ * int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVectorsCount() {
+
+ vectorsCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int shardsCount_;
+ /**
+ *
+ *
+ *
+ * Output only. The number of shards in the Index.
+ *
+ *
+ * int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The shardsCount.
+ */
+ @java.lang.Override
+ public int getShardsCount() {
+ return shardsCount_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The number of shards in the Index.
+ *
+ *
+ * int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The shardsCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setShardsCount(int value) {
+
+ shardsCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The number of shards in the Index.
+ *
+ *
+ * int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearShardsCount() {
+
+ shardsCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.IndexStats)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.IndexStats)
+ private static final com.google.cloud.aiplatform.v1.IndexStats DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.IndexStats();
+ }
+
+ public static com.google.cloud.aiplatform.v1.IndexStats getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The number of vectors in the Index.
+ *
+ *
+ * int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The vectorsCount.
+ */
+ long getVectorsCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. The number of shards in the Index.
+ *
+ *
+ * int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The shardsCount.
+ */
+ int getShardsCount();
+}
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java
index 06000abbd..9648dd14e 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java
@@ -136,8 +136,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -150,8 +149,7 @@ public java.util.List
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -165,8 +163,7 @@ public java.util.List
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -179,8 +176,7 @@ public int getSavedQueriesCount() {
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -193,8 +189,7 @@ public com.google.cloud.aiplatform.v1.SavedQuery getSavedQueries(int index) {
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -651,8 +646,7 @@ private void ensureSavedQueriesIsMutable() {
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -668,8 +662,7 @@ public java.util.List
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -685,8 +678,7 @@ public int getSavedQueriesCount() {
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -702,8 +694,7 @@ public com.google.cloud.aiplatform.v1.SavedQuery getSavedQueries(int index) {
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -725,8 +716,7 @@ public Builder setSavedQueries(int index, com.google.cloud.aiplatform.v1.SavedQu
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -746,8 +736,7 @@ public Builder setSavedQueries(
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -769,8 +758,7 @@ public Builder addSavedQueries(com.google.cloud.aiplatform.v1.SavedQuery value)
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -792,8 +780,7 @@ public Builder addSavedQueries(int index, com.google.cloud.aiplatform.v1.SavedQu
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -813,8 +800,7 @@ public Builder addSavedQueries(
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -834,8 +820,7 @@ public Builder addSavedQueries(
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -855,8 +840,7 @@ public Builder addAllSavedQueries(
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -875,8 +859,7 @@ public Builder clearSavedQueries() {
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -895,8 +878,7 @@ public Builder removeSavedQueries(int index) {
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -908,8 +890,7 @@ public com.google.cloud.aiplatform.v1.SavedQuery.Builder getSavedQueriesBuilder(
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -925,8 +906,7 @@ public com.google.cloud.aiplatform.v1.SavedQueryOrBuilder getSavedQueriesOrBuild
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -943,8 +923,7 @@ public com.google.cloud.aiplatform.v1.SavedQueryOrBuilder getSavedQueriesOrBuild
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -957,8 +936,7 @@ public com.google.cloud.aiplatform.v1.SavedQuery.Builder addSavedQueriesBuilder(
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -971,8 +949,7 @@ public com.google.cloud.aiplatform.v1.SavedQuery.Builder addSavedQueriesBuilder(
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java
index 10837c9d2..a78ca8315 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java
@@ -27,8 +27,7 @@ public interface ListSavedQueriesResponseOrBuilder
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -38,8 +37,7 @@ public interface ListSavedQueriesResponseOrBuilder
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -49,8 +47,7 @@ public interface ListSavedQueriesResponseOrBuilder
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -60,8 +57,7 @@ public interface ListSavedQueriesResponseOrBuilder
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
@@ -72,8 +68,7 @@ public interface ListSavedQueriesResponseOrBuilder
*
*
*
- * A list of SavedQueries that matches the specified filter in the
- * request.
+ * A list of SavedQueries that match the specified filter in the request.
*
*
* repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1;
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java
index bfa334968..13952f8fb 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java
@@ -193,7 +193,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -217,7 +217,7 @@ public com.google.protobuf.ProtocolStringList getVersionAliasesList() {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -241,7 +241,7 @@ public int getVersionAliasesCount() {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -266,7 +266,7 @@ public java.lang.String getVersionAliases(int index) {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -782,7 +782,7 @@ private void ensureVersionAliasesIsMutable() {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -806,7 +806,7 @@ public com.google.protobuf.ProtocolStringList getVersionAliasesList() {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -830,7 +830,7 @@ public int getVersionAliasesCount() {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -855,7 +855,7 @@ public java.lang.String getVersionAliases(int index) {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -880,7 +880,7 @@ public com.google.protobuf.ByteString getVersionAliasesBytes(int index) {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -912,7 +912,7 @@ public Builder setVersionAliases(int index, java.lang.String value) {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -943,7 +943,7 @@ public Builder addVersionAliases(java.lang.String value) {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -971,7 +971,7 @@ public Builder addAllVersionAliases(java.lang.Iterable
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -998,7 +998,7 @@ public Builder clearVersionAliases() {
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequestOrBuilder.java
index 967cd7715..ed0f12a40 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequestOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequestOrBuilder.java
@@ -62,7 +62,7 @@ public interface MergeVersionAliasesRequestOrBuilder
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -84,7 +84,7 @@ public interface MergeVersionAliasesRequestOrBuilder
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -106,7 +106,7 @@ public interface MergeVersionAliasesRequestOrBuilder
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
@@ -129,7 +129,7 @@ public interface MergeVersionAliasesRequestOrBuilder
*
* Required. The set of version aliases to merge.
* The alias should be at most 128 characters, and match
- * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+ * `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
* Add the `-` prefix to an alias means removing that alias from the version.
* `-` is NOT counted in the 128 characters. Example: `-golden` means removing
* the `golden` alias from the version.
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java
index 378fd52e6..ceef01834 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java
@@ -18,15 +18,7 @@
package com.google.cloud.aiplatform.v1;
-/**
- *
- *
- *
- * Next ID: 3
- *
- *
- * Protobuf type {@code google.cloud.aiplatform.v1.ModelMonitoringAlertConfig}
- */
+/** Protobuf type {@code google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} */
public final class ModelMonitoringAlertConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ModelMonitoringAlertConfig)
@@ -1252,15 +1244,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
Builder builder = new Builder(parent);
return builder;
}
- /**
- *
- *
- *
- * Next ID: 3
- *
- *
- * Protobuf type {@code google.cloud.aiplatform.v1.ModelMonitoringAlertConfig}
- */
+ /** Protobuf type {@code google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Next ID: 8
+ * The objective configuration for model monitoring, including the information
+ * needed to detect anomalies for one particular model.
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig}
@@ -9335,7 +9336,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Next ID: 8
+ * The objective configuration for model monitoring, including the information
+ * needed to detect anomalies for one particular model.
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig}
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveDatapointsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveDatapointsRequest.java
new file mode 100644
index 000000000..5e66fab3b
--- /dev/null
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveDatapointsRequest.java
@@ -0,0 +1,947 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/aiplatform/v1/index_service.proto
+
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Request message for [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1.IndexService.RemoveDatapoints]
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.RemoveDatapointsRequest}
+ */
+public final class RemoveDatapointsRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RemoveDatapointsRequest)
+ RemoveDatapointsRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RemoveDatapointsRequest.newBuilder() to construct.
+ private RemoveDatapointsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private RemoveDatapointsRequest() {
+ index_ = "";
+ datapointIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new RemoveDatapointsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private RemoveDatapointsRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ index_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ datapointIds_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ datapointIds_.add(s);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ datapointIds_ = datapointIds_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.IndexServiceProto
+ .internal_static_google_cloud_aiplatform_v1_RemoveDatapointsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.IndexServiceProto
+ .internal_static_google_cloud_aiplatform_v1_RemoveDatapointsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.RemoveDatapointsRequest.class,
+ com.google.cloud.aiplatform.v1.RemoveDatapointsRequest.Builder.class);
+ }
+
+ public static final int INDEX_FIELD_NUMBER = 1;
+ private volatile java.lang.Object index_;
+ /**
+ *
+ *
+ *
+ * Required. The name of the Index resource to be updated.
+ * Format:
+ * `projects/{project}/locations/{location}/indexes/{index}`
+ *
+ *
+ *
+ * string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The index.
+ */
+ @java.lang.Override
+ public java.lang.String getIndex() {
+ java.lang.Object ref = index_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ index_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the Index resource to be updated.
+ * Format:
+ * `projects/{project}/locations/{location}/indexes/{index}`
+ *
+ *
+ *
+ * string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for index.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIndexBytes() {
+ java.lang.Object ref = index_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ index_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATAPOINT_IDS_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList datapointIds_;
+ /**
+ *
+ *
+ *
+ * A list of datapoint ids to be deleted.
+ *
+ *
+ * repeated string datapoint_ids = 2;
+ *
+ * @return A list containing the datapointIds.
+ */
+ public com.google.protobuf.ProtocolStringList getDatapointIdsList() {
+ return datapointIds_;
+ }
+ /**
+ *
+ *
+ *
+ * A list of datapoint ids to be deleted.
+ *
+ *
+ * repeated string datapoint_ids = 2;
+ *
+ * @return The count of datapointIds.
+ */
+ public int getDatapointIdsCount() {
+ return datapointIds_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of datapoint ids to be deleted.
+ *
+ *
+ * repeated string datapoint_ids = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The datapointIds at the given index.
+ */
+ public java.lang.String getDatapointIds(int index) {
+ return datapointIds_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of datapoint ids to be deleted.
+ *
+ *
+ * repeated string datapoint_ids = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the datapointIds at the given index.
+ */
+ public com.google.protobuf.ByteString getDatapointIdsBytes(int index) {
+ return datapointIds_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(index_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, index_);
+ }
+ for (int i = 0; i < datapointIds_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, datapointIds_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(index_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, index_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < datapointIds_.size(); i++) {
+ dataSize += computeStringSizeNoTag(datapointIds_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDatapointIdsList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.RemoveDatapointsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.RemoveDatapointsRequest other =
+ (com.google.cloud.aiplatform.v1.RemoveDatapointsRequest) obj;
+
+ if (!getIndex().equals(other.getIndex())) return false;
+ if (!getDatapointIdsList().equals(other.getDatapointIdsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getIndex().hashCode();
+ if (getDatapointIdsCount() > 0) {
+ hash = (37 * hash) + DATAPOINT_IDS_FIELD_NUMBER;
+ hash = (53 * hash) + getDatapointIdsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.RemoveDatapointsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1.RemoveDatapointsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Request message for [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1.IndexService.RemoveDatapoints]
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.RemoveDatapointsRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder