diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/AcceleratorType.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/AcceleratorType.php new file mode 100644 index 000000000000..856f71f0d523 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/AcceleratorType.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Annotation.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Annotation.php new file mode 100644 index 000000000000..53fd34106254 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Annotation.php @@ -0,0 +1,46 @@ +internalAddGeneratedFile( + ' + ++google/cloud/aiplatform/v1/annotation.protogoogle.cloud.aiplatform.v1google/api/resource.proto6google/cloud/aiplatform/v1/user_action_reference.protogoogle/protobuf/struct.protogoogle/protobuf/timestamp.proto" + +Annotation +name ( BA +payload_schema_uri ( BA, +payload ( 2.google.protobuf.ValueBA4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBA +etag ( BAO +annotation_source ( 2/.google.cloud.aiplatform.v1.UserActionReferenceBAG +labels ( 22.google.cloud.aiplatform.v1.Annotation.LabelsEntryBA- + LabelsEntry +key (  +value ( :8:A +$aiplatform.googleapis.com/Annotationiprojects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}B +com.google.cloud.aiplatform.v1BAnnotationProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/AnnotationSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/AnnotationSpec.php new file mode 100644 index 000000000000..11b13516ca82 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/AnnotationSpec.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + ' + +0google/cloud/aiplatform/v1/annotation_spec.protogoogle.cloud.aiplatform.v1google/api/resource.protogoogle/protobuf/timestamp.proto" +AnnotationSpec +name ( BA + display_name ( BA4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBA +etag ( BA:A +(aiplatform.googleapis.com/AnnotationSpec\\projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}B +com.google.cloud.aiplatform.v1BAnnotationSpecProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Artifact.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Artifact.php new file mode 100644 index 000000000000..89ff68241d2f Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Artifact.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/BatchPredictionJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/BatchPredictionJob.php new file mode 100644 index 000000000000..a1f62d64ba1f Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/BatchPredictionJob.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/CompletionStats.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/CompletionStats.php new file mode 100644 index 000000000000..f7befd7b44f4 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/CompletionStats.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' + +1google/cloud/aiplatform/v1/completion_stats.protogoogle.cloud.aiplatform.v1" +CompletionStats +successful_count (BA + failed_count (BA +incomplete_count (BA, +successful_forecast_point_count (BAB +com.google.cloud.aiplatform.v1BCompletionStatsProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Context.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Context.php new file mode 100644 index 000000000000..ea377c34110b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Context.php @@ -0,0 +1,49 @@ +internalAddGeneratedFile( + ' + +(google/cloud/aiplatform/v1/context.protogoogle.cloud.aiplatform.v1google/api/resource.protogoogle/protobuf/struct.protogoogle/protobuf/timestamp.proto" +Context +name ( BA + display_name (  +etag ( ? +labels ( 2/.google.cloud.aiplatform.v1.Context.LabelsEntry4 + create_time + ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBAB +parent_contexts ( B)AA# +!aiplatform.googleapis.com/Context + schema_title (  +schema_version ( ) +metadata ( 2.google.protobuf.Struct + description ( - + LabelsEntry +key (  +value ( :8:A +!aiplatform.googleapis.com/ContextZprojects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}B +com.google.cloud.aiplatform.v1B ContextProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/CustomJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/CustomJob.php new file mode 100644 index 000000000000..d749efaed206 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/CustomJob.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DataItem.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DataItem.php new file mode 100644 index 000000000000..996823b38cf5 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DataItem.php @@ -0,0 +1,42 @@ +internalAddGeneratedFile( + ' + +*google/cloud/aiplatform/v1/data_item.protogoogle.cloud.aiplatform.v1google/api/resource.protogoogle/protobuf/struct.protogoogle/protobuf/timestamp.proto" +DataItem +name ( BA4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBAE +labels ( 20.google.cloud.aiplatform.v1.DataItem.LabelsEntryBA, +payload ( 2.google.protobuf.ValueBA +etag ( BA- + LabelsEntry +key (  +value ( :8:yAv +"aiplatform.googleapis.com/DataItemPprojects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}B +com.google.cloud.aiplatform.v1B DataItemProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DataLabelingJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DataLabelingJob.php new file mode 100644 index 000000000000..38ffb0873f72 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DataLabelingJob.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Dataset.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Dataset.php new file mode 100644 index 000000000000..f065d5c3bf46 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Dataset.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DatasetService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DatasetService.php new file mode 100644 index 000000000000..8808e795c3cb Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DatasetService.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DatasetVersion.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DatasetVersion.php new file mode 100644 index 000000000000..ec2c2b7b26c5 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DatasetVersion.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + ' + +0google/cloud/aiplatform/v1/dataset_version.protogoogle.cloud.aiplatform.v1google/api/resource.protogoogle/protobuf/timestamp.proto" +DatasetVersion +name ( BA4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBA +etag ( # +big_query_dataset_name ( BA:A +(aiplatform.googleapis.com/DatasetVersion\\projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}B +com.google.cloud.aiplatform.v1BDatasetVersionProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DeployedIndexRef.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DeployedIndexRef.php new file mode 100644 index 000000000000..c77480e58676 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DeployedIndexRef.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' + +3google/cloud/aiplatform/v1/deployed_index_ref.protogoogle.cloud.aiplatform.v1google/api/resource.proto"{ +DeployedIndexRefG +index_endpoint ( B/AA) +\'aiplatform.googleapis.com/IndexEndpoint +deployed_index_id ( BAB +com.google.cloud.aiplatform.v1BDeployedIndexRefProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DeployedModelRef.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DeployedModelRef.php new file mode 100644 index 000000000000..4a189406ca9b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/DeployedModelRef.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' + +3google/cloud/aiplatform/v1/deployed_model_ref.protogoogle.cloud.aiplatform.v1google/api/resource.proto"p +DeployedModelRef< +endpoint ( B*AA$ +"aiplatform.googleapis.com/Endpoint +deployed_model_id ( BAB +com.google.cloud.aiplatform.v1BDeployedModelNameProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EncryptionSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EncryptionSpec.php new file mode 100644 index 000000000000..931d9dc28f06 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EncryptionSpec.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + ' + +0google/cloud/aiplatform/v1/encryption_spec.protogoogle.cloud.aiplatform.v1"+ +EncryptionSpec + kms_key_name ( BAB +com.google.cloud.aiplatform.v1BEncryptionSpecProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Endpoint.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Endpoint.php new file mode 100644 index 000000000000..b09c901c3c9d Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Endpoint.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EndpointService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EndpointService.php new file mode 100644 index 000000000000..f1fb5d21977c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EndpointService.php @@ -0,0 +1,110 @@ +internalAddGeneratedFile( + ' +% +1google/cloud/aiplatform/v1/endpoint_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto)google/cloud/aiplatform/v1/endpoint.proto*google/cloud/aiplatform/v1/operation.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" +CreateEndpointRequest9 +parent ( B)AA# +!locations.googleapis.com/Location; +endpoint ( 2$.google.cloud.aiplatform.v1.EndpointBA + endpoint_id ( BA"q +CreateEndpointOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"N +GetEndpointRequest8 +name ( B*AA$ +"aiplatform.googleapis.com/Endpoint" +ListEndpointsRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter ( BA + page_size (BA + +page_token ( BA2 + read_mask ( 2.google.protobuf.FieldMaskBA +order_by ( "i +ListEndpointsResponse7 + endpoints ( 2$.google.cloud.aiplatform.v1.Endpoint +next_page_token ( " +UpdateEndpointRequest; +endpoint ( 2$.google.cloud.aiplatform.v1.EndpointBA4 + update_mask ( 2.google.protobuf.FieldMaskBA"Q +DeleteEndpointRequest8 +name ( B*AA$ +"aiplatform.googleapis.com/Endpoint" +DeployModelRequest< +endpoint ( B*AA$ +"aiplatform.googleapis.com/EndpointF +deployed_model ( 2).google.cloud.aiplatform.v1.DeployedModelBAW + traffic_split ( 2@.google.cloud.aiplatform.v1.DeployModelRequest.TrafficSplitEntry3 +TrafficSplitEntry +key (  +value (:8"X +DeployModelResponseA +deployed_model ( 2).google.cloud.aiplatform.v1.DeployedModel"n +DeployModelOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata" +UndeployModelRequest< +endpoint ( B*AA$ +"aiplatform.googleapis.com/Endpoint +deployed_model_id ( BAY + traffic_split ( 2B.google.cloud.aiplatform.v1.UndeployModelRequest.TrafficSplitEntry3 +TrafficSplitEntry +key (  +value (:8" +UndeployModelResponse"p +UndeployModelOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata" +MutateDeployedModelRequest< +endpoint ( B*AA$ +"aiplatform.googleapis.com/EndpointF +deployed_model ( 2).google.cloud.aiplatform.v1.DeployedModelBA4 + update_mask ( 2.google.protobuf.FieldMaskBA"` +MutateDeployedModelResponseA +deployed_model ( 2).google.cloud.aiplatform.v1.DeployedModel"v +$MutateDeployedModelOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata2 +EndpointService +CreateEndpoint1.google.cloud.aiplatform.v1.CreateEndpointRequest.google.longrunning.Operation"9"-/v1/{parent=projects/*/locations/*}/endpoints:endpointAparent,endpointAparent,endpoint,endpoint_idA+ +EndpointCreateEndpointOperationMetadata + GetEndpoint..google.cloud.aiplatform.v1.GetEndpointRequest$.google.cloud.aiplatform.v1.Endpoint"</-/v1/{name=projects/*/locations/*/endpoints/*}Aname + ListEndpoints0.google.cloud.aiplatform.v1.ListEndpointsRequest1.google.cloud.aiplatform.v1.ListEndpointsResponse">/-/v1/{parent=projects/*/locations/*}/endpointsAparent +UpdateEndpoint1.google.cloud.aiplatform.v1.UpdateEndpointRequest$.google.cloud.aiplatform.v1.Endpoint"_B26/v1/{endpoint.name=projects/*/locations/*/endpoints/*}:endpointAendpoint,update_mask +DeleteEndpoint1.google.cloud.aiplatform.v1.DeleteEndpointRequest.google.longrunning.Operation"o/*-/v1/{name=projects/*/locations/*/endpoints/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata + DeployModel..google.cloud.aiplatform.v1.DeployModelRequest.google.longrunning.Operation"B"=/v1/{endpoint=projects/*/locations/*/endpoints/*}:deployModel:*A%endpoint,deployed_model,traffic_splitA3 +DeployModelResponseDeployModelOperationMetadata + UndeployModel0.google.cloud.aiplatform.v1.UndeployModelRequest.google.longrunning.Operation"D"?/v1/{endpoint=projects/*/locations/*/endpoints/*}:undeployModel:*A(endpoint,deployed_model_id,traffic_splitA7 +UndeployModelResponseUndeployModelOperationMetadata +MutateDeployedModel6.google.cloud.aiplatform.v1.MutateDeployedModelRequest.google.longrunning.Operation"J"E/v1/{endpoint=projects/*/locations/*/endpoints/*}:mutateDeployedModel:*A#endpoint,deployed_model,update_maskAC +MutateDeployedModelResponse$MutateDeployedModelOperationMetadataMAaiplatform.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +com.google.cloud.aiplatform.v1BEndpointServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EntityType.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EntityType.php new file mode 100644 index 000000000000..ab198c2f8562 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EntityType.php @@ -0,0 +1,46 @@ +internalAddGeneratedFile( + ' + +,google/cloud/aiplatform/v1/entity_type.protogoogle.cloud.aiplatform.v1google/api/resource.proto8google/cloud/aiplatform/v1/featurestore_monitoring.protogoogle/protobuf/timestamp.proto" + +EntityType +name ( BA + description ( BA4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBAG +labels ( 22.google.cloud.aiplatform.v1.EntityType.LabelsEntryBA +etag ( BAX +monitoring_config ( 28.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfigBA% +offline_storage_ttl_days + (BA- + LabelsEntry +key (  +value ( :8:A +$aiplatform.googleapis.com/EntityType^projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}B +com.google.cloud.aiplatform.v1BEntityTypeProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EnvVar.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EnvVar.php new file mode 100644 index 000000000000..11d566cf6cbc --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EnvVar.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + ' + +(google/cloud/aiplatform/v1/env_var.protogoogle.cloud.aiplatform.v1"/ +EnvVar +name ( BA +value ( BAB +com.google.cloud.aiplatform.v1B EnvVarProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EvaluatedAnnotation.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EvaluatedAnnotation.php new file mode 100644 index 000000000000..305bf31cba77 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/EvaluatedAnnotation.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Event.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Event.php new file mode 100644 index 000000000000..c0c82fb35237 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Event.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Execution.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Execution.php new file mode 100644 index 000000000000..07643c5d8a36 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Execution.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Explanation.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Explanation.php new file mode 100644 index 000000000000..9f18e7359e21 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Explanation.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ExplanationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ExplanationMetadata.php new file mode 100644 index 000000000000..72647ae21e5c Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ExplanationMetadata.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Feature.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Feature.php new file mode 100644 index 000000000000..29e4844cc922 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Feature.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureGroup.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureGroup.php new file mode 100644 index 000000000000..024f84b9afd2 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureGroup.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureMonitoringStats.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureMonitoringStats.php new file mode 100644 index 000000000000..ad3930fb15fb --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureMonitoringStats.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + ' + +9google/cloud/aiplatform/v1/feature_monitoring_stats.protogoogle.cloud.aiplatform.v1" +FeatureStatsAnomaly +score ( + stats_uri (  + anomaly_uri (  +distribution_deviation (# +anomaly_detection_threshold (. + +start_time ( 2.google.protobuf.Timestamp, +end_time ( 2.google.protobuf.TimestampB +com.google.cloud.aiplatform.v1BFeatureMonitoringStatsProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureOnlineStore.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureOnlineStore.php new file mode 100644 index 000000000000..03fbe6ab9e96 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureOnlineStore.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureOnlineStoreAdminService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureOnlineStoreAdminService.php new file mode 100644 index 000000000000..368ae5e3a690 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureOnlineStoreAdminService.php @@ -0,0 +1,135 @@ +internalAddGeneratedFile( + ' +6 +Cgoogle/cloud/aiplatform/v1/feature_online_store_admin_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto5google/cloud/aiplatform/v1/feature_online_store.proto-google/cloud/aiplatform/v1/feature_view.proto2google/cloud/aiplatform/v1/feature_view_sync.proto*google/cloud/aiplatform/v1/operation.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" +CreateFeatureOnlineStoreRequestD +parent ( B4AA.,aiplatform.googleapis.com/FeatureOnlineStoreQ +feature_online_store ( 2..google.cloud.aiplatform.v1.FeatureOnlineStoreBA$ +feature_online_store_id ( BA"b +GetFeatureOnlineStoreRequestB +name ( B4AA. +,aiplatform.googleapis.com/FeatureOnlineStore" +ListFeatureOnlineStoresRequestD +parent ( B4AA.,aiplatform.googleapis.com/FeatureOnlineStore +filter (  + page_size ( + +page_token (  +order_by ( " +ListFeatureOnlineStoresResponseM +feature_online_stores ( 2..google.cloud.aiplatform.v1.FeatureOnlineStore +next_page_token ( " +UpdateFeatureOnlineStoreRequestQ +feature_online_store ( 2..google.cloud.aiplatform.v1.FeatureOnlineStoreBA/ + update_mask ( 2.google.protobuf.FieldMask"t +DeleteFeatureOnlineStoreRequestB +name ( B4AA. +,aiplatform.googleapis.com/FeatureOnlineStore +force (" +CreateFeatureViewRequestD +parent ( B4AA. +,aiplatform.googleapis.com/FeatureOnlineStoreB + feature_view ( 2\'.google.cloud.aiplatform.v1.FeatureViewBA +feature_view_id ( BA! +run_sync_immediately (BA"T +GetFeatureViewRequest; +name ( B-AA\' +%aiplatform.googleapis.com/FeatureView" +ListFeatureViewsRequest= +parent ( B-AA\'%aiplatform.googleapis.com/FeatureView +filter (  + page_size ( + +page_token (  +order_by ( "s +ListFeatureViewsResponse> + feature_views ( 2\'.google.cloud.aiplatform.v1.FeatureView +next_page_token ( " +UpdateFeatureViewRequestB + feature_view ( 2\'.google.cloud.aiplatform.v1.FeatureViewBA/ + update_mask ( 2.google.protobuf.FieldMask"W +DeleteFeatureViewRequest; +name ( B-AA\' +%aiplatform.googleapis.com/FeatureView"{ +)CreateFeatureOnlineStoreOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"{ +)UpdateFeatureOnlineStoreOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"t +"CreateFeatureViewOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"t +"UpdateFeatureViewOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"] +SyncFeatureViewRequestC + feature_view ( B-AA\' +%aiplatform.googleapis.com/FeatureView"4 +SyncFeatureViewResponse +feature_view_sync ( "\\ +GetFeatureViewSyncRequest? +name ( B1AA+ +)aiplatform.googleapis.com/FeatureViewSync" +ListFeatureViewSyncsRequest= +parent ( B-AA\' +%aiplatform.googleapis.com/FeatureView +filter (  + page_size ( + +page_token (  +order_by ( " +ListFeatureViewSyncsResponseG +feature_view_syncs ( 2+.google.cloud.aiplatform.v1.FeatureViewSync +next_page_token ( 2 +FeatureOnlineStoreAdminService +CreateFeatureOnlineStore;.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest.google.longrunning.Operation"O"7/v1/{parent=projects/*/locations/*}/featureOnlineStores:feature_online_storeA3parent,feature_online_store,feature_online_store_idA? +FeatureOnlineStore)CreateFeatureOnlineStoreOperationMetadata +GetFeatureOnlineStore8.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest..google.cloud.aiplatform.v1.FeatureOnlineStore"F97/v1/{name=projects/*/locations/*/featureOnlineStores/*}Aname +ListFeatureOnlineStores:.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest;.google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse"H97/v1/{parent=projects/*/locations/*}/featureOnlineStoresAparent +UpdateFeatureOnlineStore;.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest.google.longrunning.Operation"d2L/v1/{feature_online_store.name=projects/*/locations/*/featureOnlineStores/*}:feature_online_storeA feature_online_store,update_maskA? +FeatureOnlineStore)UpdateFeatureOnlineStoreOperationMetadata +DeleteFeatureOnlineStore;.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest.google.longrunning.Operation"9*7/v1/{name=projects/*/locations/*/featureOnlineStores/*}A +name,forceA0 +google.protobuf.EmptyDeleteOperationMetadata +CreateFeatureView4.google.cloud.aiplatform.v1.CreateFeatureViewRequest.google.longrunning.Operation"V"F/v1/{parent=projects/*/locations/*/featureOnlineStores/*}/featureViews: feature_viewA#parent,feature_view,feature_view_idA1 + FeatureView"CreateFeatureViewOperationMetadata +GetFeatureView1.google.cloud.aiplatform.v1.GetFeatureViewRequest\'.google.cloud.aiplatform.v1.FeatureView"UHF/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}Aname +ListFeatureViews3.google.cloud.aiplatform.v1.ListFeatureViewsRequest4.google.cloud.aiplatform.v1.ListFeatureViewsResponse"WHF/v1/{parent=projects/*/locations/*/featureOnlineStores/*}/featureViewsAparent +UpdateFeatureView4.google.cloud.aiplatform.v1.UpdateFeatureViewRequest.google.longrunning.Operation"c2S/v1/{feature_view.name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}: feature_viewAfeature_view,update_maskA1 + FeatureView"UpdateFeatureViewOperationMetadata +DeleteFeatureView4.google.cloud.aiplatform.v1.DeleteFeatureViewRequest.google.longrunning.Operation"H*F/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata +SyncFeatureView2.google.cloud.aiplatform.v1.SyncFeatureViewRequest3.google.cloud.aiplatform.v1.SyncFeatureViewResponse"mX"S/v1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:sync:*A feature_view +GetFeatureViewSync5.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest+.google.cloud.aiplatform.v1.FeatureViewSync"h[Y/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/featureViewSyncs/*}Aname +ListFeatureViewSyncs7.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest8.google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse"j[Y/v1/{parent=projects/*/locations/*/featureOnlineStores/*/featureViews/*}/featureViewSyncsAparentMAaiplatform.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +com.google.cloud.aiplatform.v1B#FeatureOnlineStoreAdminServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureOnlineStoreService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureOnlineStoreService.php new file mode 100644 index 000000000000..47864cd2933a Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureOnlineStoreService.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureRegistryService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureRegistryService.php new file mode 100644 index 000000000000..0e381d4a48d8 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureRegistryService.php @@ -0,0 +1,89 @@ +internalAddGeneratedFile( + ' +" +9google/cloud/aiplatform/v1/feature_registry_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto(google/cloud/aiplatform/v1/feature.proto.google/cloud/aiplatform/v1/feature_group.proto5google/cloud/aiplatform/v1/featurestore_service.proto*google/cloud/aiplatform/v1/operation.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" +CreateFeatureGroupRequest> +parent ( B.AA(&aiplatform.googleapis.com/FeatureGroupD + feature_group ( 2(.google.cloud.aiplatform.v1.FeatureGroupBA +feature_group_id ( BA"V +GetFeatureGroupRequest< +name ( B.AA( +&aiplatform.googleapis.com/FeatureGroup" +ListFeatureGroupsRequest> +parent ( B.AA(&aiplatform.googleapis.com/FeatureGroup +filter (  + page_size ( + +page_token (  +order_by ( "v +ListFeatureGroupsResponse@ +feature_groups ( 2(.google.cloud.aiplatform.v1.FeatureGroup +next_page_token ( " +UpdateFeatureGroupRequestD + feature_group ( 2(.google.cloud.aiplatform.v1.FeatureGroupBA/ + update_mask ( 2.google.protobuf.FieldMask"h +DeleteFeatureGroupRequest< +name ( B.AA( +&aiplatform.googleapis.com/FeatureGroup +force ("u +#CreateFeatureGroupOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"u +#UpdateFeatureGroupOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"x +&CreateRegistryFeatureOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"p +UpdateFeatureOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata2 +FeatureRegistryService +CreateFeatureGroup5.google.cloud.aiplatform.v1.CreateFeatureGroupRequest.google.longrunning.Operation"B"1/v1/{parent=projects/*/locations/*}/featureGroups: feature_groupA%parent,feature_group,feature_group_idA3 + FeatureGroup#CreateFeatureGroupOperationMetadata +GetFeatureGroup2.google.cloud.aiplatform.v1.GetFeatureGroupRequest(.google.cloud.aiplatform.v1.FeatureGroup"@31/v1/{name=projects/*/locations/*/featureGroups/*}Aname +ListFeatureGroups4.google.cloud.aiplatform.v1.ListFeatureGroupsRequest5.google.cloud.aiplatform.v1.ListFeatureGroupsResponse"B31/v1/{parent=projects/*/locations/*}/featureGroupsAparent +UpdateFeatureGroup5.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest.google.longrunning.Operation"P2?/v1/{feature_group.name=projects/*/locations/*/featureGroups/*}: feature_groupAfeature_group,update_maskA3 + FeatureGroup#UpdateFeatureGroupOperationMetadata +DeleteFeatureGroup5.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest.google.longrunning.Operation"y3*1/v1/{name=projects/*/locations/*/featureGroups/*}A +name,forceA0 +google.protobuf.EmptyDeleteOperationMetadata + CreateFeature0.google.cloud.aiplatform.v1.CreateFeatureRequest.google.longrunning.Operation"G"*cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureSelector.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureSelector.php new file mode 100644 index 000000000000..25bde725c9be --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureSelector.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' + +1google/cloud/aiplatform/v1/feature_selector.protogoogle.cloud.aiplatform.v1" + IdMatcher +ids ( BA"Q +FeatureSelector> + +id_matcher ( 2%.google.cloud.aiplatform.v1.IdMatcherBAB +com.google.cloud.aiplatform.v1BFeatureSelectorProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureView.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureView.php new file mode 100644 index 000000000000..8767951117e2 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureView.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureViewSync.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureViewSync.php new file mode 100644 index 000000000000..8a5ea9117d75 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeatureViewSync.php @@ -0,0 +1,38 @@ +internalAddGeneratedFile( + ' + +2google/cloud/aiplatform/v1/feature_view_sync.protogoogle.cloud.aiplatform.v1google/api/resource.protogoogle/protobuf/timestamp.protogoogle/rpc/status.protogoogle/type/interval.proto" +FeatureViewSync +name ( BA4 + create_time ( 2.google.protobuf.TimestampBA, +run_time ( 2.google.type.IntervalBA- + final_status ( 2.google.rpc.StatusBA:A +)aiplatform.googleapis.com/FeatureViewSyncprojects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_syncB +com.google.cloud.aiplatform.v1BFeatureViewSyncProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::Aiplatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Featurestore.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Featurestore.php new file mode 100644 index 000000000000..6a71a0beb645 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Featurestore.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeaturestoreMonitoring.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeaturestoreMonitoring.php new file mode 100644 index 000000000000..a027e3248c51 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeaturestoreMonitoring.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeaturestoreOnlineService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeaturestoreOnlineService.php new file mode 100644 index 000000000000..b3beb605e39a Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeaturestoreOnlineService.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeaturestoreService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeaturestoreService.php new file mode 100644 index 000000000000..bb1f32725e79 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/FeaturestoreService.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/HyperparameterTuningJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/HyperparameterTuningJob.php new file mode 100644 index 000000000000..5776dd7302da --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/HyperparameterTuningJob.php @@ -0,0 +1,59 @@ +internalAddGeneratedFile( + ' + +:google/cloud/aiplatform/v1/hyperparameter_tuning_job.protogoogle.cloud.aiplatform.v1google/api/resource.proto+google/cloud/aiplatform/v1/custom_job.proto0google/cloud/aiplatform/v1/encryption_spec.proto*google/cloud/aiplatform/v1/job_state.proto&google/cloud/aiplatform/v1/study.protogoogle/protobuf/timestamp.protogoogle/rpc/status.proto" +HyperparameterTuningJob +name ( BA + display_name ( BA> + +study_spec ( 2%.google.cloud.aiplatform.v1.StudySpecBA +max_trial_count (BA! +parallel_trial_count (BA +max_failed_trial_count (F +trial_job_spec ( 2).google.cloud.aiplatform.v1.CustomJobSpecBA6 +trials ( 2!.google.cloud.aiplatform.v1.TrialBA8 +state + (2$.google.cloud.aiplatform.v1.JobStateBA4 + create_time ( 2.google.protobuf.TimestampBA3 + +start_time ( 2.google.protobuf.TimestampBA1 +end_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBA& +error ( 2.google.rpc.StatusBAO +labels ( 2?.google.cloud.aiplatform.v1.HyperparameterTuningJob.LabelsEntryC +encryption_spec ( 2*.google.cloud.aiplatform.v1.EncryptionSpec- + LabelsEntry +key (  +value ( :8:A +1aiplatform.googleapis.com/HyperparameterTuningJob\\projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}B +com.google.cloud.aiplatform.v1BHyperparameterTuningJobProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Index.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Index.php new file mode 100644 index 000000000000..88647ddf7876 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Index.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/IndexEndpoint.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/IndexEndpoint.php new file mode 100644 index 000000000000..225a88160962 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/IndexEndpoint.php @@ -0,0 +1,76 @@ +internalAddGeneratedFile( + ' + +/google/cloud/aiplatform/v1/index_endpoint.protogoogle.cloud.aiplatform.v1google/api/resource.proto0google/cloud/aiplatform/v1/encryption_spec.proto2google/cloud/aiplatform/v1/machine_resources.proto3google/cloud/aiplatform/v1/service_networking.protogoogle/protobuf/timestamp.proto" + IndexEndpoint +name ( BA + display_name ( BA + description ( H +deployed_indexes ( 2).google.cloud.aiplatform.v1.DeployedIndexBA +etag ( E +labels ( 25.google.cloud.aiplatform.v1.IndexEndpoint.LabelsEntry4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBA +network ( BA- +enable_private_service_connect + (BAd +private_service_connect_config ( 27.google.cloud.aiplatform.v1.PrivateServiceConnectConfigBA$ +public_endpoint_enabled (BA( +public_endpoint_domain_name ( BAH +encryption_spec ( 2*.google.cloud.aiplatform.v1.EncryptionSpecBA- + LabelsEntry +key (  +value ( :8:uAr +\'aiplatform.googleapis.com/IndexEndpointGprojects/{project}/locations/{location}/indexEndpoints/{index_endpoint}" + DeployedIndex +id ( BA6 +index ( B\'AA! +aiplatform.googleapis.com/Index + display_name ( 4 + create_time ( 2.google.protobuf.TimestampBAQ +private_endpoints ( 21.google.cloud.aiplatform.v1.IndexPrivateEndpointsBA8 +index_sync_time ( 2.google.protobuf.TimestampBAP +automatic_resources ( 2..google.cloud.aiplatform.v1.AutomaticResourcesBAP +dedicated_resources ( 2..google.cloud.aiplatform.v1.DedicatedResourcesBA" +enable_access_logging (BA\\ +deployed_index_auth_config ( 23.google.cloud.aiplatform.v1.DeployedIndexAuthConfigBA +reserved_ip_ranges + ( BA +deployment_group ( BA" +DeployedIndexAuthConfigW + auth_provider ( 2@.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider: + AuthProvider + audiences (  +allowed_issuers ( "Y +IndexPrivateEndpoints +match_grpc_address ( BA +service_attachment ( BAB +com.google.cloud.aiplatform.v1BIndexEndpointProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/IndexEndpointService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/IndexEndpointService.php new file mode 100644 index 000000000000..b61bc528c156 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/IndexEndpointService.php @@ -0,0 +1,101 @@ +internalAddGeneratedFile( + ' +$ +7google/cloud/aiplatform/v1/index_endpoint_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto/google/cloud/aiplatform/v1/index_endpoint.proto*google/cloud/aiplatform/v1/operation.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" +CreateIndexEndpointRequest9 +parent ( B)AA# +!locations.googleapis.com/LocationF +index_endpoint ( 2).google.cloud.aiplatform.v1.IndexEndpointBA"v +$CreateIndexEndpointOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"X +GetIndexEndpointRequest= +name ( B/AA) +\'aiplatform.googleapis.com/IndexEndpoint" +ListIndexEndpointsRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter ( BA + page_size (BA + +page_token ( BA2 + read_mask ( 2.google.protobuf.FieldMaskBA"y +ListIndexEndpointsResponseB +index_endpoints ( 2).google.cloud.aiplatform.v1.IndexEndpoint +next_page_token ( " +UpdateIndexEndpointRequestF +index_endpoint ( 2).google.cloud.aiplatform.v1.IndexEndpointBA4 + update_mask ( 2.google.protobuf.FieldMaskBA"[ +DeleteIndexEndpointRequest= +name ( B/AA) +\'aiplatform.googleapis.com/IndexEndpoint" +DeployIndexRequestG +index_endpoint ( B/AA) +\'aiplatform.googleapis.com/IndexEndpointF +deployed_index ( 2).google.cloud.aiplatform.v1.DeployedIndexBA"X +DeployIndexResponseA +deployed_index ( 2).google.cloud.aiplatform.v1.DeployedIndex" +DeployIndexOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata +deployed_index_id ( " +UndeployIndexRequestG +index_endpoint ( B/AA) +\'aiplatform.googleapis.com/IndexEndpoint +deployed_index_id ( BA" +UndeployIndexResponse"p +UndeployIndexOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata" +MutateDeployedIndexRequestG +index_endpoint ( B/AA) +\'aiplatform.googleapis.com/IndexEndpointF +deployed_index ( 2).google.cloud.aiplatform.v1.DeployedIndexBA"` +MutateDeployedIndexResponseA +deployed_index ( 2).google.cloud.aiplatform.v1.DeployedIndex" +$MutateDeployedIndexOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata +deployed_index_id ( 2 +IndexEndpointService +CreateIndexEndpoint6.google.cloud.aiplatform.v1.CreateIndexEndpointRequest.google.longrunning.Operation"D"2/v1/{parent=projects/*/locations/*}/indexEndpoints:index_endpointAparent,index_endpointA5 + IndexEndpoint$CreateIndexEndpointOperationMetadata +GetIndexEndpoint3.google.cloud.aiplatform.v1.GetIndexEndpointRequest).google.cloud.aiplatform.v1.IndexEndpoint"A42/v1/{name=projects/*/locations/*/indexEndpoints/*}Aname +ListIndexEndpoints5.google.cloud.aiplatform.v1.ListIndexEndpointsRequest6.google.cloud.aiplatform.v1.ListIndexEndpointsResponse"C42/v1/{parent=projects/*/locations/*}/indexEndpointsAparent +UpdateIndexEndpoint6.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest).google.cloud.aiplatform.v1.IndexEndpoint"vS2A/v1/{index_endpoint.name=projects/*/locations/*/indexEndpoints/*}:index_endpointAindex_endpoint,update_mask +DeleteIndexEndpoint6.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest.google.longrunning.Operation"t4*2/v1/{name=projects/*/locations/*/indexEndpoints/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata + DeployIndex..google.cloud.aiplatform.v1.DeployIndexRequest.google.longrunning.Operation"M"H/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:deployIndex:*Aindex_endpoint,deployed_indexA3 +DeployIndexResponseDeployIndexOperationMetadata + UndeployIndex0.google.cloud.aiplatform.v1.UndeployIndexRequest.google.longrunning.Operation"O"J/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:undeployIndex:*A index_endpoint,deployed_index_idA7 +UndeployIndexResponseUndeployIndexOperationMetadata +MutateDeployedIndex6.google.cloud.aiplatform.v1.MutateDeployedIndexRequest.google.longrunning.Operation"b"P/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:mutateDeployedIndex:deployed_indexAindex_endpoint,deployed_indexAC +MutateDeployedIndexResponse$MutateDeployedIndexOperationMetadataMAaiplatform.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +com.google.cloud.aiplatform.v1BIndexEndpointServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/IndexService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/IndexService.php new file mode 100644 index 000000000000..8b77ddebbb7e Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/IndexService.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Io.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Io.php new file mode 100644 index 000000000000..f62df8908f35 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Io.php @@ -0,0 +1,51 @@ +internalAddGeneratedFile( + ' + +#google/cloud/aiplatform/v1/io.protogoogle.cloud.aiplatform.v1"L + +AvroSource> + +gcs_source ( 2%.google.cloud.aiplatform.v1.GcsSourceBA"K + CsvSource> + +gcs_source ( 2%.google.cloud.aiplatform.v1.GcsSourceBA" + GcsSource +uris ( BA"0 +GcsDestination +output_uri_prefix ( BA"( +BigQuerySource + input_uri ( BA". +BigQueryDestination + +output_uri ( BA"Z +CsvDestinationH +gcs_destination ( 2*.google.cloud.aiplatform.v1.GcsDestinationBA"_ +TFRecordDestinationH +gcs_destination ( 2*.google.cloud.aiplatform.v1.GcsDestinationBA"7 +ContainerRegistryDestination + +output_uri ( BAB +com.google.cloud.aiplatform.v1BIoProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/JobService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/JobService.php new file mode 100644 index 000000000000..286c67be80ac --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/JobService.php @@ -0,0 +1,272 @@ +internalAddGeneratedFile( + ' +x +,google/cloud/aiplatform/v1/job_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto5google/cloud/aiplatform/v1/batch_prediction_job.proto+google/cloud/aiplatform/v1/custom_job.proto2google/cloud/aiplatform/v1/data_labeling_job.proto:google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto@google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto(google/cloud/aiplatform/v1/nas_job.proto*google/cloud/aiplatform/v1/operation.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto" +CreateCustomJobRequest9 +parent ( B)AA# +!locations.googleapis.com/Location> + +custom_job ( 2%.google.cloud.aiplatform.v1.CustomJobBA"P +GetCustomJobRequest9 +name ( B+AA% +#aiplatform.googleapis.com/CustomJob" +ListCustomJobsRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter (  + page_size ( + +page_token ( - + read_mask ( 2.google.protobuf.FieldMask"m +ListCustomJobsResponse: + custom_jobs ( 2%.google.cloud.aiplatform.v1.CustomJob +next_page_token ( "S +DeleteCustomJobRequest9 +name ( B+AA% +#aiplatform.googleapis.com/CustomJob"S +CancelCustomJobRequest9 +name ( B+AA% +#aiplatform.googleapis.com/CustomJob" +CreateDataLabelingJobRequest9 +parent ( B)AA# +!locations.googleapis.com/LocationK +data_labeling_job ( 2+.google.cloud.aiplatform.v1.DataLabelingJobBA"\\ +GetDataLabelingJobRequest? +name ( B1AA+ +)aiplatform.googleapis.com/DataLabelingJob" +ListDataLabelingJobsRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter (  + page_size ( + +page_token ( - + read_mask ( 2.google.protobuf.FieldMask +order_by ( " +ListDataLabelingJobsResponseG +data_labeling_jobs ( 2+.google.cloud.aiplatform.v1.DataLabelingJob +next_page_token ( "_ +DeleteDataLabelingJobRequest? +name ( B1AA+ +)aiplatform.googleapis.com/DataLabelingJob"_ +CancelDataLabelingJobRequest? +name ( B1AA+ +)aiplatform.googleapis.com/DataLabelingJob" +$CreateHyperparameterTuningJobRequest9 +parent ( B)AA# +!locations.googleapis.com/Location[ +hyperparameter_tuning_job ( 23.google.cloud.aiplatform.v1.HyperparameterTuningJobBA"l +!GetHyperparameterTuningJobRequestG +name ( B9AA3 +1aiplatform.googleapis.com/HyperparameterTuningJob" +#ListHyperparameterTuningJobsRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter (  + page_size ( + +page_token ( - + read_mask ( 2.google.protobuf.FieldMask" +$ListHyperparameterTuningJobsResponseW +hyperparameter_tuning_jobs ( 23.google.cloud.aiplatform.v1.HyperparameterTuningJob +next_page_token ( "o +$DeleteHyperparameterTuningJobRequestG +name ( B9AA3 +1aiplatform.googleapis.com/HyperparameterTuningJob"o +$CancelHyperparameterTuningJobRequestG +name ( B9AA3 +1aiplatform.googleapis.com/HyperparameterTuningJob" +CreateNasJobRequest9 +parent ( B)AA# +!locations.googleapis.com/Location8 +nas_job ( 2".google.cloud.aiplatform.v1.NasJobBA"J +GetNasJobRequest6 +name ( B(AA" + aiplatform.googleapis.com/NasJob" +ListNasJobsRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter (  + page_size ( + +page_token ( - + read_mask ( 2.google.protobuf.FieldMask"d +ListNasJobsResponse4 +nas_jobs ( 2".google.cloud.aiplatform.v1.NasJob +next_page_token ( "M +DeleteNasJobRequest6 +name ( B(AA" + aiplatform.googleapis.com/NasJob"M +CancelNasJobRequest6 +name ( B(AA" + aiplatform.googleapis.com/NasJob"Z +GetNasTrialDetailRequest> +name ( B0AA* +(aiplatform.googleapis.com/NasTrialDetail"} +ListNasTrialDetailsRequest8 +parent ( B(AA" + aiplatform.googleapis.com/NasJob + page_size ( + +page_token ( "} +ListNasTrialDetailsResponseE +nas_trial_details ( 2*.google.cloud.aiplatform.v1.NasTrialDetail +next_page_token ( " +CreateBatchPredictionJobRequest9 +parent ( B)AA# +!locations.googleapis.com/LocationQ +batch_prediction_job ( 2..google.cloud.aiplatform.v1.BatchPredictionJobBA"b +GetBatchPredictionJobRequestB +name ( B4AA. +,aiplatform.googleapis.com/BatchPredictionJob" +ListBatchPredictionJobsRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter (  + page_size ( + +page_token ( - + read_mask ( 2.google.protobuf.FieldMask" +ListBatchPredictionJobsResponseM +batch_prediction_jobs ( 2..google.cloud.aiplatform.v1.BatchPredictionJob +next_page_token ( "e +DeleteBatchPredictionJobRequestB +name ( B4AA. +,aiplatform.googleapis.com/BatchPredictionJob"e +CancelBatchPredictionJobRequestB +name ( B4AA. +,aiplatform.googleapis.com/BatchPredictionJob" +)CreateModelDeploymentMonitoringJobRequest9 +parent ( B)AA# +!locations.googleapis.com/Locationf +model_deployment_monitoring_job ( 28.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJobBA" +4SearchModelDeploymentMonitoringStatsAnomaliesRequestg +model_deployment_monitoring_job ( B>AA8 +6aiplatform.googleapis.com/ModelDeploymentMonitoringJob +deployed_model_id ( BA +feature_display_name (  + +objectives ( 2h.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjectiveBA + page_size ( + +page_token ( . + +start_time ( 2.google.protobuf.Timestamp, +end_time ( 2.google.protobuf.Timestamp +StatsAnomaliesObjectiveP +type (2B.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType +top_feature_count (" +5SearchModelDeploymentMonitoringStatsAnomaliesResponseS +monitoring_stats ( 29.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies +next_page_token ( "v +&GetModelDeploymentMonitoringJobRequestL +name ( B>AA8 +6aiplatform.googleapis.com/ModelDeploymentMonitoringJob" +(ListModelDeploymentMonitoringJobsRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter (  + page_size ( + +page_token ( - + read_mask ( 2.google.protobuf.FieldMask" +)ListModelDeploymentMonitoringJobsResponseb + model_deployment_monitoring_jobs ( 28.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob +next_page_token ( " +)UpdateModelDeploymentMonitoringJobRequestf +model_deployment_monitoring_job ( 28.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJobBA4 + update_mask ( 2.google.protobuf.FieldMaskBA"y +)DeleteModelDeploymentMonitoringJobRequestL +name ( B>AA8 +6aiplatform.googleapis.com/ModelDeploymentMonitoringJob"x +(PauseModelDeploymentMonitoringJobRequestL +name ( B>AA8 +6aiplatform.googleapis.com/ModelDeploymentMonitoringJob"y +)ResumeModelDeploymentMonitoringJobRequestL +name ( B>AA8 +6aiplatform.googleapis.com/ModelDeploymentMonitoringJob" +3UpdateModelDeploymentMonitoringJobOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata2? + +JobService +CreateCustomJob2.google.cloud.aiplatform.v1.CreateCustomJobRequest%.google.cloud.aiplatform.v1.CustomJob"V<"./v1/{parent=projects/*/locations/*}/customJobs: +custom_jobAparent,custom_job + GetCustomJob/.google.cloud.aiplatform.v1.GetCustomJobRequest%.google.cloud.aiplatform.v1.CustomJob"=0./v1/{name=projects/*/locations/*/customJobs/*}Aname +ListCustomJobs1.google.cloud.aiplatform.v1.ListCustomJobsRequest2.google.cloud.aiplatform.v1.ListCustomJobsResponse"?0./v1/{parent=projects/*/locations/*}/customJobsAparent +DeleteCustomJob2.google.cloud.aiplatform.v1.DeleteCustomJobRequest.google.longrunning.Operation"p0*./v1/{name=projects/*/locations/*/customJobs/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata +CancelCustomJob2.google.cloud.aiplatform.v1.CancelCustomJobRequest.google.protobuf.Empty"G:"5/v1/{name=projects/*/locations/*/customJobs/*}:cancel:*Aname +CreateDataLabelingJob8.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest+.google.cloud.aiplatform.v1.DataLabelingJob"jI"4/v1/{parent=projects/*/locations/*}/dataLabelingJobs:data_labeling_jobAparent,data_labeling_job +GetDataLabelingJob5.google.cloud.aiplatform.v1.GetDataLabelingJobRequest+.google.cloud.aiplatform.v1.DataLabelingJob"C64/v1/{name=projects/*/locations/*/dataLabelingJobs/*}Aname +ListDataLabelingJobs7.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest8.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse"E64/v1/{parent=projects/*/locations/*}/dataLabelingJobsAparent +DeleteDataLabelingJob8.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest.google.longrunning.Operation"v6*4/v1/{name=projects/*/locations/*/dataLabelingJobs/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata +CancelDataLabelingJob8.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest.google.protobuf.Empty"M@";/v1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel:*Aname +CreateHyperparameterTuningJob@.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest3.google.cloud.aiplatform.v1.HyperparameterTuningJob"Y"*/v1/{name=projects/*/locations/*/batchPredictionJobs/*}:cancel:*Aname +"CreateModelDeploymentMonitoringJobE.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest8.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob"d"A/v1/{parent=projects/*/locations/*}/modelDeploymentMonitoringJobs:model_deployment_monitoring_jobA&parent,model_deployment_monitoring_job +-SearchModelDeploymentMonitoringStatsAnomaliesP.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequestQ.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse""/v1/{model_deployment_monitoring_job=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:searchModelDeploymentMonitoringStatsAnomalies:*A1model_deployment_monitoring_job,deployed_model_id +GetModelDeploymentMonitoringJobB.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest8.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob"PCA/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}Aname +!ListModelDeploymentMonitoringJobsD.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequestE.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse"RCA/v1/{parent=projects/*/locations/*}/modelDeploymentMonitoringJobsAparent +"UpdateModelDeploymentMonitoringJobE.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.google.longrunning.Operation"2a/v1/{model_deployment_monitoring_job.name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:model_deployment_monitoring_jobA+model_deployment_monitoring_job,update_maskAS +ModelDeploymentMonitoringJob3UpdateModelDeploymentMonitoringJobOperationMetadata +"DeleteModelDeploymentMonitoringJobE.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.google.longrunning.Operation"C*A/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata +!PauseModelDeploymentMonitoringJobD.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.google.protobuf.Empty"YL"G/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:pause:*Aname +"ResumeModelDeploymentMonitoringJobE.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.google.protobuf.Empty"ZM"H/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:resume:*AnameAaiplatform.googleapis.comAghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB +com.google.cloud.aiplatform.v1BJobServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/JobState.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/JobState.php new file mode 100644 index 000000000000..b641b42f5b01 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/JobState.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/LineageSubgraph.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/LineageSubgraph.php new file mode 100644 index 000000000000..b35e989672cf --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/LineageSubgraph.php @@ -0,0 +1,35 @@ +internalAddGeneratedFile( + ' + +1google/cloud/aiplatform/v1/lineage_subgraph.protogoogle.cloud.aiplatform.v1&google/cloud/aiplatform/v1/event.proto*google/cloud/aiplatform/v1/execution.proto" +LineageSubgraph7 + artifacts ( 2$.google.cloud.aiplatform.v1.Artifact9 + +executions ( 2%.google.cloud.aiplatform.v1.Execution1 +events ( 2!.google.cloud.aiplatform.v1.EventB +com.google.cloud.aiplatform.v1BLineageSubgraphProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/LlmUtilityService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/LlmUtilityService.php new file mode 100644 index 000000000000..93bc4b020a62 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/LlmUtilityService.php @@ -0,0 +1,46 @@ +internalAddGeneratedFile( + ' + +4google/cloud/aiplatform/v1/llm_utility_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto3google/cloud/aiplatform/v1/prediction_service.protogoogle/protobuf/struct.proto" +ComputeTokensRequest< +endpoint ( B*AA$ +"aiplatform.googleapis.com/Endpoint. + instances ( 2.google.protobuf.ValueBA"/ + +TokensInfo +tokens (  + token_ids ("T +ComputeTokensResponse; + tokens_info ( 2&.google.cloud.aiplatform.v1.TokensInfo2 +LlmUtilityService + CountTokens..google.cloud.aiplatform.v1.CountTokensRequest/.google.cloud.aiplatform.v1.CountTokensResponse""=/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens:*ZL"G/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens:*Aendpoint,instances + ComputeTokens0.google.cloud.aiplatform.v1.ComputeTokensRequest1.google.cloud.aiplatform.v1.ComputeTokensResponse""?/v1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens:*ZN"I/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens:*Aendpoint,instancesMAaiplatform.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +com.google.cloud.aiplatform.v1BLlmUtilityServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MachineResources.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MachineResources.php new file mode 100644 index 000000000000..1adc07aab3c4 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MachineResources.php @@ -0,0 +1,62 @@ +internalAddGeneratedFile( + ' + + +2google/cloud/aiplatform/v1/machine_resources.protogoogle.cloud.aiplatform.v11google/cloud/aiplatform/v1/accelerator_type.proto" + MachineSpec + machine_type ( BAJ +accelerator_type (2+.google.cloud.aiplatform.v1.AcceleratorTypeBA +accelerator_count ( + tpu_topology ( BA" +DedicatedResourcesE + machine_spec ( 2\'.google.cloud.aiplatform.v1.MachineSpecBAA! +min_replica_count (BAA +max_replica_count (BAX +autoscaling_metric_specs ( 21.google.cloud.aiplatform.v1.AutoscalingMetricSpecBA"T +AutomaticResources +min_replica_count (BA +max_replica_count (BA" +BatchDedicatedResourcesE + machine_spec ( 2\'.google.cloud.aiplatform.v1.MachineSpecBAA# +starting_replica_count (BA +max_replica_count (BA"/ +ResourcesConsumed + replica_hours (BA"= +DiskSpec +boot_disk_type (  +boot_disk_size_gb ("= +PersistentDiskSpec + disk_type (  + disk_size_gb ("L +NfsMount +server ( BA +path ( BA + mount_point ( BA"A +AutoscalingMetricSpec + metric_name ( BA +target (B +com.google.cloud.aiplatform.v1BMachineResourcesProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ManualBatchTuningParameters.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ManualBatchTuningParameters.php new file mode 100644 index 000000000000..cebcc098c564 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ManualBatchTuningParameters.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + ' + +?google/cloud/aiplatform/v1/manual_batch_tuning_parameters.protogoogle.cloud.aiplatform.v1"6 +ManualBatchTuningParameters + +batch_size (BAB +com.google.cloud.aiplatform.v1B ManualBatchTuningParametersProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MatchService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MatchService.php new file mode 100644 index 000000000000..0c0d5672d60f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MatchService.php @@ -0,0 +1,64 @@ +internalAddGeneratedFile( + ' + +.google/cloud/aiplatform/v1/match_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto&google/cloud/aiplatform/v1/index.proto" +FindNeighborsRequestG +index_endpoint ( B/AA) +\'aiplatform.googleapis.com/IndexEndpoint +deployed_index_id ( G +queries ( 26.google.cloud.aiplatform.v1.FindNeighborsRequest.Query +return_full_datapoint ( +QueryB + datapoint ( 2*.google.cloud.aiplatform.v1.IndexDatapointBA +neighbor_count (- +%per_crowding_attribute_neighbor_count (" +approximate_neighbor_count (. +&fraction_leaf_nodes_to_search_override (" +FindNeighborsResponse] +nearest_neighbors ( 2B.google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors[ +Neighbor= + datapoint ( 2*.google.cloud.aiplatform.v1.IndexDatapoint +distance (m +NearestNeighbors + +id ( M + neighbors ( 2:.google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor" +ReadIndexDatapointsRequestG +index_endpoint ( B/AA) +\'aiplatform.googleapis.com/IndexEndpoint +deployed_index_id (  +ids ( "] +ReadIndexDatapointsResponse> + +datapoints ( 2*.google.cloud.aiplatform.v1.IndexDatapoint2 + MatchService + FindNeighbors0.google.cloud.aiplatform.v1.FindNeighborsRequest1.google.cloud.aiplatform.v1.FindNeighborsResponse"UO"J/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:findNeighbors:* +ReadIndexDatapoints6.google.cloud.aiplatform.v1.ReadIndexDatapointsRequest7.google.cloud.aiplatform.v1.ReadIndexDatapointsResponse"[U"P/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:readIndexDatapoints:*MAaiplatform.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +com.google.cloud.aiplatform.v1BMatchServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MetadataSchema.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MetadataSchema.php new file mode 100644 index 000000000000..2bd181da25e8 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MetadataSchema.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MetadataService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MetadataService.php new file mode 100644 index 000000000000..419ff0f1ee02 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MetadataService.php @@ -0,0 +1,274 @@ +internalAddGeneratedFile( + ' +o +1google/cloud/aiplatform/v1/metadata_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto)google/cloud/aiplatform/v1/artifact.proto(google/cloud/aiplatform/v1/context.proto&google/cloud/aiplatform/v1/event.proto*google/cloud/aiplatform/v1/execution.proto1google/cloud/aiplatform/v1/lineage_subgraph.proto0google/cloud/aiplatform/v1/metadata_schema.proto/google/cloud/aiplatform/v1/metadata_store.proto*google/cloud/aiplatform/v1/operation.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" +CreateMetadataStoreRequest9 +parent ( B)AA# +!locations.googleapis.com/LocationF +metadata_store ( 2).google.cloud.aiplatform.v1.MetadataStoreBA +metadata_store_id ( "v +$CreateMetadataStoreOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"X +GetMetadataStoreRequest= +name ( B/AA) +\'aiplatform.googleapis.com/MetadataStore"} +ListMetadataStoresRequest9 +parent ( B)AA# +!locations.googleapis.com/Location + page_size ( + +page_token ( "y +ListMetadataStoresResponseB +metadata_stores ( 2).google.cloud.aiplatform.v1.MetadataStore +next_page_token ( "n +DeleteMetadataStoreRequest= +name ( B/AA) +\'aiplatform.googleapis.com/MetadataStore +force (B"v +$DeleteMetadataStoreOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata" +CreateArtifactRequest? +parent ( B/AA) +\'aiplatform.googleapis.com/MetadataStore; +artifact ( 2$.google.cloud.aiplatform.v1.ArtifactBA + artifact_id ( "N +GetArtifactRequest8 +name ( B*AA$ +"aiplatform.googleapis.com/Artifact" +ListArtifactsRequest: +parent ( B*AA$"aiplatform.googleapis.com/Artifact + page_size ( + +page_token (  +filter (  +order_by ( "i +ListArtifactsResponse7 + artifacts ( 2$.google.cloud.aiplatform.v1.Artifact +next_page_token ( " +UpdateArtifactRequest; +artifact ( 2$.google.cloud.aiplatform.v1.ArtifactBA4 + update_mask ( 2.google.protobuf.FieldMaskBA + allow_missing ("d +DeleteArtifactRequest8 +name ( B*AA$ +"aiplatform.googleapis.com/Artifact +etag ( BA"| +PurgeArtifactsRequest: +parent ( B*AA$"aiplatform.googleapis.com/Artifact +filter ( BA +force (BA"l +PurgeArtifactsResponse + purge_count (= + purge_sample ( B\'A$ +"aiplatform.googleapis.com/Artifact"h +PurgeArtifactsMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata" +CreateContextRequest? +parent ( B/AA) +\'aiplatform.googleapis.com/MetadataStore9 +context ( 2#.google.cloud.aiplatform.v1.ContextBA + +context_id ( "L +GetContextRequest7 +name ( B)AA# +!aiplatform.googleapis.com/Context" +ListContextsRequest9 +parent ( B)AA#!aiplatform.googleapis.com/Context + page_size ( + +page_token (  +filter (  +order_by ( "f +ListContextsResponse5 +contexts ( 2#.google.cloud.aiplatform.v1.Context +next_page_token ( " +UpdateContextRequest9 +context ( 2#.google.cloud.aiplatform.v1.ContextBA4 + update_mask ( 2.google.protobuf.FieldMaskBA + allow_missing ("q +DeleteContextRequest7 +name ( B)AA# +!aiplatform.googleapis.com/Context +force ( +etag ( BA"z +PurgeContextsRequest9 +parent ( B)AA#!aiplatform.googleapis.com/Context +filter ( BA +force (BA"j +PurgeContextsResponse + purge_count (< + purge_sample ( B&A# +!aiplatform.googleapis.com/Context"g +PurgeContextsMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata" +\'AddContextArtifactsAndExecutionsRequest: +context ( B)AA# +!aiplatform.googleapis.com/Context: + artifacts ( B\'A$ +"aiplatform.googleapis.com/Artifact< + +executions ( B(A% +#aiplatform.googleapis.com/Execution"* +(AddContextArtifactsAndExecutionsResponse" +AddContextChildrenRequest: +context ( B)AA# +!aiplatform.googleapis.com/Context> +child_contexts ( B&A# +!aiplatform.googleapis.com/Context" +AddContextChildrenResponse" +RemoveContextChildrenRequest: +context ( B)AA# +!aiplatform.googleapis.com/Context> +child_contexts ( B&A# +!aiplatform.googleapis.com/Context" +RemoveContextChildrenResponse"` +"QueryContextLineageSubgraphRequest: +context ( B)AA# +!aiplatform.googleapis.com/Context" +CreateExecutionRequest? +parent ( B/AA) +\'aiplatform.googleapis.com/MetadataStore= + execution ( 2%.google.cloud.aiplatform.v1.ExecutionBA + execution_id ( "P +GetExecutionRequest9 +name ( B+AA% +#aiplatform.googleapis.com/Execution" +ListExecutionsRequest; +parent ( B+AA%#aiplatform.googleapis.com/Execution + page_size ( + +page_token (  +filter (  +order_by ( "l +ListExecutionsResponse9 + +executions ( 2%.google.cloud.aiplatform.v1.Execution +next_page_token ( " +UpdateExecutionRequest= + execution ( 2%.google.cloud.aiplatform.v1.ExecutionBA4 + update_mask ( 2.google.protobuf.FieldMaskBA + allow_missing ("f +DeleteExecutionRequest9 +name ( B+AA% +#aiplatform.googleapis.com/Execution +etag ( BA"~ +PurgeExecutionsRequest; +parent ( B+AA%#aiplatform.googleapis.com/Execution +filter ( BA +force (BA"n +PurgeExecutionsResponse + purge_count (> + purge_sample ( B(A% +#aiplatform.googleapis.com/Execution"i +PurgeExecutionsMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata" +AddExecutionEventsRequest> + execution ( B+AA% +#aiplatform.googleapis.com/Execution1 +events ( 2!.google.cloud.aiplatform.v1.Event" +AddExecutionEventsResponse"g +%QueryExecutionInputsAndOutputsRequest> + execution ( B+AA% +#aiplatform.googleapis.com/Execution" +CreateMetadataSchemaRequest? +parent ( B/AA) +\'aiplatform.googleapis.com/MetadataStoreH +metadata_schema ( 2*.google.cloud.aiplatform.v1.MetadataSchemaBA +metadata_schema_id ( "Z +GetMetadataSchemaRequest> +name ( B0AA* +(aiplatform.googleapis.com/MetadataSchema" +ListMetadataSchemasRequest@ +parent ( B0AA*(aiplatform.googleapis.com/MetadataSchema + page_size ( + +page_token (  +filter ( "| +ListMetadataSchemasResponseD +metadata_schemas ( 2*.google.cloud.aiplatform.v1.MetadataSchema +next_page_token ( " +#QueryArtifactLineageSubgraphRequest< +artifact ( B*AA$ +"aiplatform.googleapis.com/Artifact +max_hops ( +filter ( 2: +MetadataService +CreateMetadataStore6.google.cloud.aiplatform.v1.CreateMetadataStoreRequest.google.longrunning.Operation"D"2/v1/{parent=projects/*/locations/*}/metadataStores:metadata_storeA\'parent,metadata_store,metadata_store_idA5 + MetadataStore$CreateMetadataStoreOperationMetadata +GetMetadataStore3.google.cloud.aiplatform.v1.GetMetadataStoreRequest).google.cloud.aiplatform.v1.MetadataStore"A42/v1/{name=projects/*/locations/*/metadataStores/*}Aname +ListMetadataStores5.google.cloud.aiplatform.v1.ListMetadataStoresRequest6.google.cloud.aiplatform.v1.ListMetadataStoresResponse"C42/v1/{parent=projects/*/locations/*}/metadataStoresAparent +DeleteMetadataStore6.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.google.longrunning.Operation"4*2/v1/{name=projects/*/locations/*/metadataStores/*}AnameA= +google.protobuf.Empty$DeleteMetadataStoreOperationMetadata +CreateArtifact1.google.cloud.aiplatform.v1.CreateArtifactRequest$.google.cloud.aiplatform.v1.Artifact"nJ">/v1/{parent=projects/*/locations/*/metadataStores/*}/artifacts:artifactAparent,artifact,artifact_id + GetArtifact..google.cloud.aiplatform.v1.GetArtifactRequest$.google.cloud.aiplatform.v1.Artifact"M@>/v1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}Aname + ListArtifacts0.google.cloud.aiplatform.v1.ListArtifactsRequest1.google.cloud.aiplatform.v1.ListArtifactsResponse"O@>/v1/{parent=projects/*/locations/*/metadataStores/*}/artifactsAparent +UpdateArtifact1.google.cloud.aiplatform.v1.UpdateArtifactRequest$.google.cloud.aiplatform.v1.Artifact"pS2G/v1/{artifact.name=projects/*/locations/*/metadataStores/*/artifacts/*}:artifactAartifact,update_mask +DeleteArtifact1.google.cloud.aiplatform.v1.DeleteArtifactRequest.google.longrunning.Operation"@*>/v1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata +PurgeArtifacts1.google.cloud.aiplatform.v1.PurgeArtifactsRequest.google.longrunning.Operation"I"D/v1/{parent=projects/*/locations/*/metadataStores/*}/artifacts:purge:*AparentA0 +PurgeArtifactsResponsePurgeArtifactsMetadata + CreateContext0.google.cloud.aiplatform.v1.CreateContextRequest#.google.cloud.aiplatform.v1.Context"jH"=/v1/{parent=projects/*/locations/*/metadataStores/*}/contexts:contextAparent,context,context_id + +GetContext-.google.cloud.aiplatform.v1.GetContextRequest#.google.cloud.aiplatform.v1.Context"L?=/v1/{name=projects/*/locations/*/metadataStores/*/contexts/*}Aname + ListContexts/.google.cloud.aiplatform.v1.ListContextsRequest0.google.cloud.aiplatform.v1.ListContextsResponse"N?=/v1/{parent=projects/*/locations/*/metadataStores/*}/contextsAparent + UpdateContext0.google.cloud.aiplatform.v1.UpdateContextRequest#.google.cloud.aiplatform.v1.Context"lP2E/v1/{context.name=projects/*/locations/*/metadataStores/*/contexts/*}:contextAcontext,update_mask + DeleteContext0.google.cloud.aiplatform.v1.DeleteContextRequest.google.longrunning.Operation"?*=/v1/{name=projects/*/locations/*/metadataStores/*/contexts/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata + PurgeContexts0.google.cloud.aiplatform.v1.PurgeContextsRequest.google.longrunning.Operation"H"C/v1/{parent=projects/*/locations/*/metadataStores/*}/contexts:purge:*AparentA. +PurgeContextsResponsePurgeContextsMetadata + AddContextArtifactsAndExecutionsC.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequestD.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse"f"a/v1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:addContextArtifactsAndExecutions:*Acontext,artifacts,executions +AddContextChildren5.google.cloud.aiplatform.v1.AddContextChildrenRequest6.google.cloud.aiplatform.v1.AddContextChildrenResponse"wX"S/v1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:addContextChildren:*Acontext,child_contexts +RemoveContextChildren8.google.cloud.aiplatform.v1.RemoveContextChildrenRequest9.google.cloud.aiplatform.v1.RemoveContextChildrenResponse"z["V/v1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:removeContextChildren:*Acontext,child_contexts +QueryContextLineageSubgraph>.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest+.google.cloud.aiplatform.v1.LineageSubgraph"n^\\/v1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:queryContextLineageSubgraphAcontext +CreateExecution2.google.cloud.aiplatform.v1.CreateExecutionRequest%.google.cloud.aiplatform.v1.Execution"rL"?/v1/{parent=projects/*/locations/*/metadataStores/*}/executions: executionAparent,execution,execution_id + GetExecution/.google.cloud.aiplatform.v1.GetExecutionRequest%.google.cloud.aiplatform.v1.Execution"NA?/v1/{name=projects/*/locations/*/metadataStores/*/executions/*}Aname +ListExecutions1.google.cloud.aiplatform.v1.ListExecutionsRequest2.google.cloud.aiplatform.v1.ListExecutionsResponse"PA?/v1/{parent=projects/*/locations/*/metadataStores/*}/executionsAparent +UpdateExecution2.google.cloud.aiplatform.v1.UpdateExecutionRequest%.google.cloud.aiplatform.v1.Execution"tV2I/v1/{execution.name=projects/*/locations/*/metadataStores/*/executions/*}: executionAexecution,update_mask +DeleteExecution2.google.cloud.aiplatform.v1.DeleteExecutionRequest.google.longrunning.Operation"A*?/v1/{name=projects/*/locations/*/metadataStores/*/executions/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata +PurgeExecutions2.google.cloud.aiplatform.v1.PurgeExecutionsRequest.google.longrunning.Operation"J"E/v1/{parent=projects/*/locations/*/metadataStores/*}/executions:purge:*AparentA2 +PurgeExecutionsResponsePurgeExecutionsMetadata +AddExecutionEvents5.google.cloud.aiplatform.v1.AddExecutionEventsRequest6.google.cloud.aiplatform.v1.AddExecutionEventsResponse"u\\"W/v1/{execution=projects/*/locations/*/metadataStores/*/executions/*}:addExecutionEvents:*Aexecution,events +QueryExecutionInputsAndOutputsA.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest+.google.cloud.aiplatform.v1.LineageSubgraph"wec/v1/{execution=projects/*/locations/*/metadataStores/*/executions/*}:queryExecutionInputsAndOutputsA execution +CreateMetadataSchema7.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest*.google.cloud.aiplatform.v1.MetadataSchema"W"D/v1/{parent=projects/*/locations/*/metadataStores/*}/metadataSchemas:metadata_schemaA)parent,metadata_schema,metadata_schema_id +GetMetadataSchema4.google.cloud.aiplatform.v1.GetMetadataSchemaRequest*.google.cloud.aiplatform.v1.MetadataSchema"SFD/v1/{name=projects/*/locations/*/metadataStores/*/metadataSchemas/*}Aname +ListMetadataSchemas6.google.cloud.aiplatform.v1.ListMetadataSchemasRequest7.google.cloud.aiplatform.v1.ListMetadataSchemasResponse"UFD/v1/{parent=projects/*/locations/*/metadataStores/*}/metadataSchemasAparent +QueryArtifactLineageSubgraph?.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest+.google.cloud.aiplatform.v1.LineageSubgraph"ra_/v1/{artifact=projects/*/locations/*/metadataStores/*/artifacts/*}:queryArtifactLineageSubgraphAartifactMAaiplatform.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +com.google.cloud.aiplatform.v1BMetadataServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MetadataStore.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MetadataStore.php new file mode 100644 index 000000000000..06d652b2be40 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MetadataStore.php @@ -0,0 +1,41 @@ +internalAddGeneratedFile( + ' + +/google/cloud/aiplatform/v1/metadata_store.protogoogle.cloud.aiplatform.v1google/api/resource.proto0google/cloud/aiplatform/v1/encryption_spec.protogoogle/protobuf/timestamp.proto" + MetadataStore +name ( BA4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBAC +encryption_spec ( 2*.google.cloud.aiplatform.v1.EncryptionSpec + description ( P +state ( 2<.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreStateBA4 +MetadataStoreState +disk_utilization_bytes (:uAr +\'aiplatform.googleapis.com/MetadataStoreGprojects/{project}/locations/{location}/metadataStores/{metadata_store}B +com.google.cloud.aiplatform.v1B MetadataProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MigratableResource.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MigratableResource.php new file mode 100644 index 000000000000..42e10effc451 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MigratableResource.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MigrationService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MigrationService.php new file mode 100644 index 000000000000..5e4f68d74bf8 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/MigrationService.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Model.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Model.php new file mode 100644 index 000000000000..accbe29d357c Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Model.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelDeploymentMonitoringJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelDeploymentMonitoringJob.php new file mode 100644 index 000000000000..1a99dfdcb071 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelDeploymentMonitoringJob.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelEvaluation.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelEvaluation.php new file mode 100644 index 000000000000..8c595847da40 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelEvaluation.php @@ -0,0 +1,49 @@ +internalAddGeneratedFile( + ' + +1google/cloud/aiplatform/v1/model_evaluation.protogoogle.cloud.aiplatform.v1google/api/resource.proto,google/cloud/aiplatform/v1/explanation.protogoogle/protobuf/struct.protogoogle/protobuf/timestamp.proto" +ModelEvaluation +name ( BA + display_name + (  +metrics_schema_uri ( \' +metrics ( 2.google.protobuf.Value4 + create_time ( 2.google.protobuf.TimestampBA +slice_dimensions (  +data_item_schema_uri (  +annotation_schema_uri ( G +model_explanation ( 2,.google.cloud.aiplatform.v1.ModelExplanatione +explanation_specs ( 2J.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec( +metadata ( 2.google.protobuf.Value +ModelEvaluationExplanationSpec +explanation_type ( E +explanation_spec ( 2+.google.cloud.aiplatform.v1.ExplanationSpec:A| +)aiplatform.googleapis.com/ModelEvaluationOprojects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}B +com.google.cloud.aiplatform.v1BModelEvaluationProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelEvaluationSlice.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelEvaluationSlice.php new file mode 100644 index 000000000000..f3a1655b55be Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelEvaluationSlice.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelGardenService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelGardenService.php new file mode 100644 index 000000000000..edf99866ea0b Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelGardenService.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelMonitoring.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelMonitoring.php new file mode 100644 index 000000000000..ad96792e444f Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelMonitoring.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelService.php new file mode 100644 index 000000000000..2497a568b2a6 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ModelService.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/NasJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/NasJob.php new file mode 100644 index 000000000000..46be5f7bc39f Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/NasJob.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Operation.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Operation.php new file mode 100644 index 000000000000..21a3741fc0a1 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Operation.php @@ -0,0 +1,36 @@ +internalAddGeneratedFile( + ' + +*google/cloud/aiplatform/v1/operation.protogoogle.cloud.aiplatform.v1google/protobuf/timestamp.protogoogle/rpc/status.proto" +GenericOperationMetadata1 +partial_failures ( 2.google.rpc.StatusBA4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBA"i +DeleteOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadataB +com.google.cloud.aiplatform.v1BOperationProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineFailurePolicy.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineFailurePolicy.php new file mode 100644 index 000000000000..fff5823b50d2 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineFailurePolicy.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineJob.php new file mode 100644 index 000000000000..8612093647e7 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineJob.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineService.php new file mode 100644 index 000000000000..a3cb1cd89454 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineService.php @@ -0,0 +1,100 @@ +internalAddGeneratedFile( + ' +" +1google/cloud/aiplatform/v1/pipeline_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto*google/cloud/aiplatform/v1/operation.proto-google/cloud/aiplatform/v1/pipeline_job.proto2google/cloud/aiplatform/v1/training_pipeline.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" +CreateTrainingPipelineRequest9 +parent ( B)AA# +!locations.googleapis.com/LocationL +training_pipeline ( 2,.google.cloud.aiplatform.v1.TrainingPipelineBA"^ +GetTrainingPipelineRequest@ +name ( B2AA, +*aiplatform.googleapis.com/TrainingPipeline" +ListTrainingPipelinesRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter (  + page_size ( + +page_token ( - + read_mask ( 2.google.protobuf.FieldMask" +ListTrainingPipelinesResponseH +training_pipelines ( 2,.google.cloud.aiplatform.v1.TrainingPipeline +next_page_token ( "a +DeleteTrainingPipelineRequest@ +name ( B2AA, +*aiplatform.googleapis.com/TrainingPipeline"a +CancelTrainingPipelineRequest@ +name ( B2AA, +*aiplatform.googleapis.com/TrainingPipeline" +CreatePipelineJobRequest9 +parent ( B)AA# +!locations.googleapis.com/LocationB + pipeline_job ( 2\'.google.cloud.aiplatform.v1.PipelineJobBA +pipeline_job_id ( "T +GetPipelineJobRequest; +name ( B-AA\' +%aiplatform.googleapis.com/PipelineJob" +ListPipelineJobsRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter (  + page_size ( + +page_token (  +order_by ( - + read_mask ( 2.google.protobuf.FieldMask"s +ListPipelineJobsResponse> + pipeline_jobs ( 2\'.google.cloud.aiplatform.v1.PipelineJob +next_page_token ( "W +DeletePipelineJobRequest; +name ( B-AA\' +%aiplatform.googleapis.com/PipelineJob"W +CancelPipelineJobRequest; +name ( B-AA\' +%aiplatform.googleapis.com/PipelineJob2 +PipelineService +CreateTrainingPipeline9.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest,.google.cloud.aiplatform.v1.TrainingPipeline"kJ"5/v1/{parent=projects/*/locations/*}/trainingPipelines:training_pipelineAparent,training_pipeline +GetTrainingPipeline6.google.cloud.aiplatform.v1.GetTrainingPipelineRequest,.google.cloud.aiplatform.v1.TrainingPipeline"D75/v1/{name=projects/*/locations/*/trainingPipelines/*}Aname +ListTrainingPipelines8.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest9.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse"F75/v1/{parent=projects/*/locations/*}/trainingPipelinesAparent +DeleteTrainingPipeline9.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.google.longrunning.Operation"w7*5/v1/{name=projects/*/locations/*/trainingPipelines/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata +CancelTrainingPipeline9.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.google.protobuf.Empty"NA"cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineState.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineState.php new file mode 100644 index 000000000000..71674e10850e Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PipelineState.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PredictionService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PredictionService.php new file mode 100644 index 000000000000..e1047b52a254 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PredictionService.php @@ -0,0 +1,88 @@ +internalAddGeneratedFile( + ' + +3google/cloud/aiplatform/v1/prediction_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/httpbody.protogoogle/api/resource.proto,google/cloud/aiplatform/v1/explanation.proto&google/cloud/aiplatform/v1/types.protogoogle/protobuf/struct.proto" +PredictRequest< +endpoint ( B*AA$ +"aiplatform.googleapis.com/Endpoint. + instances ( 2.google.protobuf.ValueBA* + +parameters ( 2.google.protobuf.Value" +PredictResponse+ + predictions ( 2.google.protobuf.Value +deployed_model_id ( 6 +model ( B\'AA! +aiplatform.googleapis.com/Model +model_version_id ( BA +model_display_name ( BA- +metadata ( 2.google.protobuf.ValueBA"z +RawPredictRequest< +endpoint ( B*AA$ +"aiplatform.googleapis.com/Endpoint\' + http_body ( 2.google.api.HttpBody" +StreamingPredictRequest< +endpoint ( B*AA$ +"aiplatform.googleapis.com/Endpoint2 +inputs ( 2".google.cloud.aiplatform.v1.Tensor6 + +parameters ( 2".google.cloud.aiplatform.v1.Tensor" +StreamingPredictResponse3 +outputs ( 2".google.cloud.aiplatform.v1.Tensor6 + +parameters ( 2".google.cloud.aiplatform.v1.Tensor" +ExplainRequest< +endpoint ( B*AA$ +"aiplatform.googleapis.com/Endpoint. + instances ( 2.google.protobuf.ValueBA* + +parameters ( 2.google.protobuf.ValueV +explanation_spec_override ( 23.google.cloud.aiplatform.v1.ExplanationSpecOverride +deployed_model_id ( " +ExplainResponse= + explanations ( 2\'.google.cloud.aiplatform.v1.Explanation +deployed_model_id ( + + predictions ( 2.google.protobuf.Value" +CountTokensRequest< +endpoint ( B*AA$ +"aiplatform.googleapis.com/Endpoint. + instances ( 2.google.protobuf.ValueBA"N +CountTokensResponse + total_tokens (! +total_billable_characters (2 +PredictionService +Predict*.google.cloud.aiplatform.v1.PredictRequest+.google.cloud.aiplatform.v1.PredictResponse""9/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict:*ZH"C/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict:*Aendpoint,instances,parameters + +RawPredict-.google.cloud.aiplatform.v1.RawPredictRequest.google.api.HttpBody"""9/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain:*A/endpoint,instances,parameters,deployed_model_idMAaiplatform.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +com.google.cloud.aiplatform.v1BPredictionServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PublisherModel.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PublisherModel.php new file mode 100644 index 000000000000..1bd5040e8168 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/PublisherModel.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/SavedQuery.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/SavedQuery.php new file mode 100644 index 000000000000..ff6ba86c851c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/SavedQuery.php @@ -0,0 +1,45 @@ +internalAddGeneratedFile( + ' + +,google/cloud/aiplatform/v1/saved_query.protogoogle.cloud.aiplatform.v1google/api/resource.protogoogle/protobuf/struct.protogoogle/protobuf/timestamp.proto" + +SavedQuery +name ( BA + display_name ( BA( +metadata ( 2.google.protobuf.Value4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBA +annotation_filter ( BA + problem_type ( BA" +annotation_spec_count + (BA +etag ( $ +support_automl_training (BA:A} +$aiplatform.googleapis.com/SavedQueryUprojects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}B +com.google.cloud.aiplatform.v1BSavedQueryProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Schedule.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Schedule.php new file mode 100644 index 000000000000..ef0b155696ac Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Schedule.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ScheduleService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ScheduleService.php new file mode 100644 index 000000000000..62a684f7d3c9 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ScheduleService.php @@ -0,0 +1,77 @@ +internalAddGeneratedFile( + ' + +1google/cloud/aiplatform/v1/schedule_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto*google/cloud/aiplatform/v1/operation.proto)google/cloud/aiplatform/v1/schedule.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" +CreateScheduleRequest9 +parent ( B)AA# +!locations.googleapis.com/Location; +schedule ( 2$.google.cloud.aiplatform.v1.ScheduleBA"N +GetScheduleRequest8 +name ( B*AA$ +"aiplatform.googleapis.com/Schedule" +ListSchedulesRequest9 +parent ( B)AA# +!locations.googleapis.com/Location +filter (  + page_size ( + +page_token (  +order_by ( "i +ListSchedulesResponse7 + schedules ( 2$.google.cloud.aiplatform.v1.Schedule +next_page_token ( "Q +DeleteScheduleRequest8 +name ( B*AA$ +"aiplatform.googleapis.com/Schedule"P +PauseScheduleRequest8 +name ( B*AA$ +"aiplatform.googleapis.com/Schedule"h +ResumeScheduleRequest8 +name ( B*AA$ +"aiplatform.googleapis.com/Schedule +catch_up (BA" +UpdateScheduleRequest; +schedule ( 2$.google.cloud.aiplatform.v1.ScheduleBA4 + update_mask ( 2.google.protobuf.FieldMaskBA2 + +ScheduleService +CreateSchedule1.google.cloud.aiplatform.v1.CreateScheduleRequest$.google.cloud.aiplatform.v1.Schedule"Q9"-/v1/{parent=projects/*/locations/*}/schedules:scheduleAparent,schedule +DeleteSchedule1.google.cloud.aiplatform.v1.DeleteScheduleRequest.google.longrunning.Operation"o/*-/v1/{name=projects/*/locations/*/schedules/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata + GetSchedule..google.cloud.aiplatform.v1.GetScheduleRequest$.google.cloud.aiplatform.v1.Schedule"</-/v1/{name=projects/*/locations/*/schedules/*}Aname + ListSchedules0.google.cloud.aiplatform.v1.ListSchedulesRequest1.google.cloud.aiplatform.v1.ListSchedulesResponse">/-/v1/{parent=projects/*/locations/*}/schedulesAparent + PauseSchedule0.google.cloud.aiplatform.v1.PauseScheduleRequest.google.protobuf.Empty"E8"3/v1/{name=projects/*/locations/*/schedules/*}:pause:*Aname +ResumeSchedule1.google.cloud.aiplatform.v1.ResumeScheduleRequest.google.protobuf.Empty"V9"4/v1/{name=projects/*/locations/*/schedules/*}:resume:*AnameA name,catch_up +UpdateSchedule1.google.cloud.aiplatform.v1.UpdateScheduleRequest$.google.cloud.aiplatform.v1.Schedule"_B26/v1/{schedule.name=projects/*/locations/*/schedules/*}:scheduleAschedule,update_maskMAaiplatform.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +com.google.cloud.aiplatform.v1BScheduleServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ServiceNetworking.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ServiceNetworking.php new file mode 100644 index 000000000000..186de25df52d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/ServiceNetworking.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + ' + +3google/cloud/aiplatform/v1/service_networking.protogoogle.cloud.aiplatform.v1"e +PrivateServiceConnectConfig+ +enable_private_service_connect (BA +project_allowlist ( B +com.google.cloud.aiplatform.v1BServiceNetworkingProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/SpecialistPool.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/SpecialistPool.php new file mode 100644 index 000000000000..2ef44241a950 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/SpecialistPool.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + ' + +0google/cloud/aiplatform/v1/specialist_pool.protogoogle.cloud.aiplatform.v1google/api/resource.proto" +SpecialistPool +name ( BA + display_name ( BA& +specialist_managers_count (BA! +specialist_manager_emails ( \' +pending_data_labeling_jobs ( BA +specialist_worker_emails ( :xAu +(aiplatform.googleapis.com/SpecialistPoolIprojects/{project}/locations/{location}/specialistPools/{specialist_pool}B +com.google.cloud.aiplatform.v1BSpecialistPoolProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/SpecialistPoolService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/SpecialistPoolService.php new file mode 100644 index 000000000000..306313392395 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/SpecialistPoolService.php @@ -0,0 +1,76 @@ +internalAddGeneratedFile( + ' + +8google/cloud/aiplatform/v1/specialist_pool_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto*google/cloud/aiplatform/v1/operation.proto0google/cloud/aiplatform/v1/specialist_pool.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" +CreateSpecialistPoolRequest9 +parent ( B)AA# +!locations.googleapis.com/LocationH +specialist_pool ( 2*.google.cloud.aiplatform.v1.SpecialistPoolBA"w +%CreateSpecialistPoolOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"Z +GetSpecialistPoolRequest> +name ( B0AA* +(aiplatform.googleapis.com/SpecialistPool" +ListSpecialistPoolsRequest9 +parent ( B)AA# +!locations.googleapis.com/Location + page_size ( + +page_token ( - + read_mask ( 2.google.protobuf.FieldMask"| +ListSpecialistPoolsResponseD +specialist_pools ( 2*.google.cloud.aiplatform.v1.SpecialistPool +next_page_token ( "l +DeleteSpecialistPoolRequest> +name ( B0AA* +(aiplatform.googleapis.com/SpecialistPool +force (" +UpdateSpecialistPoolRequestH +specialist_pool ( 2*.google.cloud.aiplatform.v1.SpecialistPoolBA4 + update_mask ( 2.google.protobuf.FieldMaskBA" +%UpdateSpecialistPoolOperationMetadataI +specialist_pool ( B0AA* +(aiplatform.googleapis.com/SpecialistPoolN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata2 + +SpecialistPoolService +CreateSpecialistPool7.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest.google.longrunning.Operation"F"3/v1/{parent=projects/*/locations/*}/specialistPools:specialist_poolAparent,specialist_poolA7 +SpecialistPool%CreateSpecialistPoolOperationMetadata +GetSpecialistPool4.google.cloud.aiplatform.v1.GetSpecialistPoolRequest*.google.cloud.aiplatform.v1.SpecialistPool"B53/v1/{name=projects/*/locations/*/specialistPools/*}Aname +ListSpecialistPools6.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest7.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse"D53/v1/{parent=projects/*/locations/*}/specialistPoolsAparent +DeleteSpecialistPool7.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest.google.longrunning.Operation"u5*3/v1/{name=projects/*/locations/*/specialistPools/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata +UpdateSpecialistPool7.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest.google.longrunning.Operation"V2C/v1/{specialist_pool.name=projects/*/locations/*/specialistPools/*}:specialist_poolAspecialist_pool,update_maskA7 +SpecialistPool%UpdateSpecialistPoolOperationMetadataMAaiplatform.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +com.google.cloud.aiplatform.v1BSpecialistPoolServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Study.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Study.php new file mode 100644 index 000000000000..3ae80bd2bebb Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Study.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Tensorboard.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Tensorboard.php new file mode 100644 index 000000000000..0aa6cc82baff --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Tensorboard.php @@ -0,0 +1,49 @@ +internalAddGeneratedFile( + ' + +,google/cloud/aiplatform/v1/tensorboard.protogoogle.cloud.aiplatform.v1google/api/resource.proto0google/cloud/aiplatform/v1/encryption_spec.protogoogle/protobuf/timestamp.proto" + Tensorboard +name ( BA + display_name ( BA + description ( C +encryption_spec ( 2*.google.cloud.aiplatform.v1.EncryptionSpec% +blob_storage_path_prefix + ( BA + run_count (BA4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBAC +labels ( 23.google.cloud.aiplatform.v1.Tensorboard.LabelsEntry +etag (  + +is_default (- + LabelsEntry +key (  +value ( :8:nAk +%aiplatform.googleapis.com/TensorboardBprojects/{project}/locations/{location}/tensorboards/{tensorboard}B +com.google.cloud.aiplatform.v1BTensorboardProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardData.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardData.php new file mode 100644 index 000000000000..660cb8ac2003 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardData.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardExperiment.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardExperiment.php new file mode 100644 index 000000000000..cd680a6fb1a6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardExperiment.php @@ -0,0 +1,43 @@ +internalAddGeneratedFile( + ' + +7google/cloud/aiplatform/v1/tensorboard_experiment.protogoogle.cloud.aiplatform.v1google/api/resource.protogoogle/protobuf/timestamp.proto" +TensorboardExperiment +name ( BA + display_name (  + description ( 4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBAM +labels ( 2=.google.cloud.aiplatform.v1.TensorboardExperiment.LabelsEntry +etag (  +source ( BA- + LabelsEntry +key (  +value ( :8:A +/aiplatform.googleapis.com/TensorboardExperiment[projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}B +com.google.cloud.aiplatform.v1BTensorboardExperimentProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardRun.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardRun.php new file mode 100644 index 000000000000..e440dc1ca866 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardRun.php @@ -0,0 +1,42 @@ +internalAddGeneratedFile( + ' + +0google/cloud/aiplatform/v1/tensorboard_run.protogoogle.cloud.aiplatform.v1google/api/resource.protogoogle/protobuf/timestamp.proto" +TensorboardRun +name ( BA + display_name ( BA + description ( 4 + create_time ( 2.google.protobuf.TimestampBA4 + update_time ( 2.google.protobuf.TimestampBAF +labels ( 26.google.cloud.aiplatform.v1.TensorboardRun.LabelsEntry +etag ( - + LabelsEntry +key (  +value ( :8:A +(aiplatform.googleapis.com/TensorboardRunfprojects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}B +com.google.cloud.aiplatform.v1BTensorboardRunProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardService.php new file mode 100644 index 000000000000..77e578fe0793 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardService.php @@ -0,0 +1,252 @@ +internalAddGeneratedFile( + ' +{ +4google/cloud/aiplatform/v1/tensorboard_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto*google/cloud/aiplatform/v1/operation.proto,google/cloud/aiplatform/v1/tensorboard.proto1google/cloud/aiplatform/v1/tensorboard_data.proto7google/cloud/aiplatform/v1/tensorboard_experiment.proto0google/cloud/aiplatform/v1/tensorboard_run.proto8google/cloud/aiplatform/v1/tensorboard_time_series.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" +CreateTensorboardRequest= +parent ( B-AA\' +%aiplatform.googleapis.com/TensorboardA + tensorboard ( 2\'.google.cloud.aiplatform.v1.TensorboardBA"T +GetTensorboardRequest; +name ( B-AA\' +%aiplatform.googleapis.com/Tensorboard" +ListTensorboardsRequest= +parent ( B-AA\'%aiplatform.googleapis.com/Tensorboard +filter (  + page_size ( + +page_token (  +order_by ( - + read_mask ( 2.google.protobuf.FieldMask"r +ListTensorboardsResponse= + tensorboards ( 2\'.google.cloud.aiplatform.v1.Tensorboard +next_page_token ( " +UpdateTensorboardRequest4 + update_mask ( 2.google.protobuf.FieldMaskBAA + tensorboard ( 2\'.google.cloud.aiplatform.v1.TensorboardBA"W +DeleteTensorboardRequest; +name ( B-AA\' +%aiplatform.googleapis.com/Tensorboard"a +ReadTensorboardUsageRequestB + tensorboard ( B-AA\' +%aiplatform.googleapis.com/Tensorboard" +ReadTensorboardUsageResponsej +monthly_usage_data ( 2N.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.MonthlyUsageDataEntry8 +PerUserUsageData +username (  + +view_count (w +PerMonthUsageDatab +user_usage_data ( 2I.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData +MonthlyUsageDataEntry +key ( Y +value ( 2J.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData:8"` +ReadTensorboardSizeRequestB + tensorboard ( B-AA\' +%aiplatform.googleapis.com/Tensorboard"8 +ReadTensorboardSizeResponse +storage_size_byte (" +"CreateTensorboardExperimentRequestG +parent ( B7AA1 +/aiplatform.googleapis.com/TensorboardExperimentQ +tensorboard_experiment ( 21.google.cloud.aiplatform.v1.TensorboardExperiment& +tensorboard_experiment_id ( BA"h +GetTensorboardExperimentRequestE +name ( B7AA1 +/aiplatform.googleapis.com/TensorboardExperiment" +!ListTensorboardExperimentsRequestG +parent ( B7AA1/aiplatform.googleapis.com/TensorboardExperiment +filter (  + page_size ( + +page_token (  +order_by ( - + read_mask ( 2.google.protobuf.FieldMask" +"ListTensorboardExperimentsResponseR +tensorboard_experiments ( 21.google.cloud.aiplatform.v1.TensorboardExperiment +next_page_token ( " +"UpdateTensorboardExperimentRequest4 + update_mask ( 2.google.protobuf.FieldMaskBAV +tensorboard_experiment ( 21.google.cloud.aiplatform.v1.TensorboardExperimentBA"k +"DeleteTensorboardExperimentRequestE +name ( B7AA1 +/aiplatform.googleapis.com/TensorboardExperiment" +!BatchCreateTensorboardRunsRequestG +parent ( B7AA1 +/aiplatform.googleapis.com/TensorboardExperimentN +requests ( 27.google.cloud.aiplatform.v1.CreateTensorboardRunRequestBA"j +"BatchCreateTensorboardRunsResponseD +tensorboard_runs ( 2*.google.cloud.aiplatform.v1.TensorboardRun" +CreateTensorboardRunRequest@ +parent ( B0AA* +(aiplatform.googleapis.com/TensorboardRunH +tensorboard_run ( 2*.google.cloud.aiplatform.v1.TensorboardRunBA +tensorboard_run_id ( BA"Z +GetTensorboardRunRequest> +name ( B0AA* +(aiplatform.googleapis.com/TensorboardRun" +ReadTensorboardBlobDataRequestL + time_series ( B7AA1 +/aiplatform.googleapis.com/TensorboardTimeSeries +blob_ids ( "] +ReadTensorboardBlobDataResponse: +blobs ( 2+.google.cloud.aiplatform.v1.TensorboardBlob" +ListTensorboardRunsRequest@ +parent ( B0AA*(aiplatform.googleapis.com/TensorboardRun +filter (  + page_size ( + +page_token (  +order_by ( - + read_mask ( 2.google.protobuf.FieldMask"| +ListTensorboardRunsResponseD +tensorboard_runs ( 2*.google.cloud.aiplatform.v1.TensorboardRun +next_page_token ( " +UpdateTensorboardRunRequest4 + update_mask ( 2.google.protobuf.FieldMaskBAH +tensorboard_run ( 2*.google.cloud.aiplatform.v1.TensorboardRunBA"] +DeleteTensorboardRunRequest> +name ( B0AA* +(aiplatform.googleapis.com/TensorboardRun" +\'BatchCreateTensorboardTimeSeriesRequestG +parent ( B7AA1 +/aiplatform.googleapis.com/TensorboardExperimentU +requests ( 2>.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequestBA"~ +(BatchCreateTensorboardTimeSeriesResponseR +tensorboard_time_series ( 21.google.cloud.aiplatform.v1.TensorboardTimeSeries" +"CreateTensorboardTimeSeriesRequestG +parent ( B7AA1 +/aiplatform.googleapis.com/TensorboardTimeSeries\' +tensorboard_time_series_id ( BAW +tensorboard_time_series ( 21.google.cloud.aiplatform.v1.TensorboardTimeSeriesBA"h +GetTensorboardTimeSeriesRequestE +name ( B7AA1 +/aiplatform.googleapis.com/TensorboardTimeSeries" + ListTensorboardTimeSeriesRequestG +parent ( B7AA1/aiplatform.googleapis.com/TensorboardTimeSeries +filter (  + page_size ( + +page_token (  +order_by ( - + read_mask ( 2.google.protobuf.FieldMask" +!ListTensorboardTimeSeriesResponseR +tensorboard_time_series ( 21.google.cloud.aiplatform.v1.TensorboardTimeSeries +next_page_token ( " +"UpdateTensorboardTimeSeriesRequest4 + update_mask ( 2.google.protobuf.FieldMaskBAW +tensorboard_time_series ( 21.google.cloud.aiplatform.v1.TensorboardTimeSeriesBA"k +"DeleteTensorboardTimeSeriesRequestE +name ( B7AA1 +/aiplatform.googleapis.com/TensorboardTimeSeries" +)BatchReadTensorboardTimeSeriesDataRequestB + tensorboard ( B-AA\' +%aiplatform.googleapis.com/TensorboardL + time_series ( B7AA1 +/aiplatform.googleapis.com/TensorboardTimeSeries"r +*BatchReadTensorboardTimeSeriesDataResponseD +time_series_data ( 2*.google.cloud.aiplatform.v1.TimeSeriesData" +$ReadTensorboardTimeSeriesDataRequestX +tensorboard_time_series ( B7AA1 +/aiplatform.googleapis.com/TensorboardTimeSeries +max_data_points ( +filter ( "m +%ReadTensorboardTimeSeriesDataResponseD +time_series_data ( 2*.google.cloud.aiplatform.v1.TimeSeriesData" +%WriteTensorboardExperimentDataRequestW +tensorboard_experiment ( B7AA1 +/aiplatform.googleapis.com/TensorboardExperiment` +write_run_data_requests ( 2:.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequestBA"( +&WriteTensorboardExperimentDataResponse" +WriteTensorboardRunDataRequestI +tensorboard_run ( B0AA* +(aiplatform.googleapis.com/TensorboardRunI +time_series_data ( 2*.google.cloud.aiplatform.v1.TimeSeriesDataBA"! +WriteTensorboardRunDataResponse" +&ExportTensorboardTimeSeriesDataRequestX +tensorboard_time_series ( B7AA1 +/aiplatform.googleapis.com/TensorboardTimeSeries +filter (  + page_size ( + +page_token (  +order_by ( " +\'ExportTensorboardTimeSeriesDataResponseP +time_series_data_points ( 2/.google.cloud.aiplatform.v1.TimeSeriesDataPoint +next_page_token ( "t +"CreateTensorboardOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata"t +"UpdateTensorboardOperationMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata2? +TensorboardService +CreateTensorboard4.google.cloud.aiplatform.v1.CreateTensorboardRequest.google.longrunning.Operation"?"0/v1/{parent=projects/*/locations/*}/tensorboards: tensorboardAparent,tensorboardA1 + Tensorboard"CreateTensorboardOperationMetadata +GetTensorboard1.google.cloud.aiplatform.v1.GetTensorboardRequest\'.google.cloud.aiplatform.v1.Tensorboard"?20/v1/{name=projects/*/locations/*/tensorboards/*}Aname +UpdateTensorboard4.google.cloud.aiplatform.v1.UpdateTensorboardRequest.google.longrunning.Operation"K2.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest1.google.cloud.aiplatform.v1.TensorboardExperiment"X">/v1/{parent=projects/*/locations/*/tensorboards/*}/experiments:tensorboard_experimentA7parent,tensorboard_experiment,tensorboard_experiment_id +GetTensorboardExperiment;.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest1.google.cloud.aiplatform.v1.TensorboardExperiment"M@>/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}Aname +UpdateTensorboardExperiment>.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest1.google.cloud.aiplatform.v1.TensorboardExperiment"o2U/v1/{tensorboard_experiment.name=projects/*/locations/*/tensorboards/*/experiments/*}:tensorboard_experimentA"tensorboard_experiment,update_mask +ListTensorboardExperiments=.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest>.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse"O@>/v1/{parent=projects/*/locations/*/tensorboards/*}/experimentsAparent +DeleteTensorboardExperiment>.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest.google.longrunning.Operation"@*>/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata +CreateTensorboardRun7.google.cloud.aiplatform.v1.CreateTensorboardRunRequest*.google.cloud.aiplatform.v1.TensorboardRun"X"E/v1/{parent=projects/*/locations/*/tensorboards/*/experiments/*}/runs:tensorboard_runA)parent,tensorboard_run,tensorboard_run_id +BatchCreateTensorboardRuns=.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest>.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse"nV"Q/v1/{parent=projects/*/locations/*/tensorboards/*/experiments/*}/runs:batchCreate:*Aparent,requests +GetTensorboardRun4.google.cloud.aiplatform.v1.GetTensorboardRunRequest*.google.cloud.aiplatform.v1.TensorboardRun"TGE/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}Aname +UpdateTensorboardRun7.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest*.google.cloud.aiplatform.v1.TensorboardRun"h2U/v1/{tensorboard_run.name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}:tensorboard_runAtensorboard_run,update_mask +ListTensorboardRuns6.google.cloud.aiplatform.v1.ListTensorboardRunsRequest7.google.cloud.aiplatform.v1.ListTensorboardRunsResponse"VGE/v1/{parent=projects/*/locations/*/tensorboards/*/experiments/*}/runsAparent +DeleteTensorboardRun7.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest.google.longrunning.Operation"G*E/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata + BatchCreateTensorboardTimeSeriesC.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequestD.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse"{c"^/v1/{parent=projects/*/locations/*/tensorboards/*/experiments/*}/runs/*/timeSeries:batchCreate:*Aparent,requests +CreateTensorboardTimeSeries>.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest1.google.cloud.aiplatform.v1.TensorboardTimeSeries"m"R/v1/{parent=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/timeSeries:tensorboard_time_seriesAparent,tensorboard_time_series +GetTensorboardTimeSeries;.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest1.google.cloud.aiplatform.v1.TensorboardTimeSeries"aTR/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}Aname +UpdateTensorboardTimeSeries>.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest1.google.cloud.aiplatform.v1.TensorboardTimeSeries"2j/v1/{tensorboard_time_series.name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}:tensorboard_time_seriesA#tensorboard_time_series,update_mask +ListTensorboardTimeSeries<.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest=.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse"cTR/v1/{parent=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/timeSeriesAparent +DeleteTensorboardTimeSeries>.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest.google.longrunning.Operation"T*R/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}AnameA0 +google.protobuf.EmptyDeleteOperationMetadata +"BatchReadTensorboardTimeSeriesDataE.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequestF.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse"wca/v1/{tensorboard=projects/*/locations/*/tensorboards/*}/experiments/*/runs/*/timeSeries:batchReadA tensorboard +ReadTensorboardTimeSeriesData@.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequestA.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse"lj/v1/{tensorboard_time_series=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}:readAtensorboard_time_series +ReadTensorboardBlobData:.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest;.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse"|hf/v1/{time_series=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}:readBlobDataA time_series0 +WriteTensorboardExperimentDataA.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequestB.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse"["V/v1/{tensorboard_experiment=projects/*/locations/*/tensorboards/*/experiments/*}:write:*A.tensorboard_experiment,write_run_data_requests +WriteTensorboardRunData:.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest;.google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse"["V/v1/{tensorboard_run=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}:write:*A tensorboard_run,time_series_data +ExportTensorboardTimeSeriesDataB.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequestC.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse""/v1/{tensorboard_time_series=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}:exportTensorboardTimeSeries:*Atensorboard_time_seriesAaiplatform.googleapis.comAghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB +com.google.cloud.aiplatform.v1BTensorboardServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardTimeSeries.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardTimeSeries.php new file mode 100644 index 000000000000..79a7231e6591 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TensorboardTimeSeries.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TrainingPipeline.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TrainingPipeline.php new file mode 100644 index 000000000000..0f3a5aaa4822 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/TrainingPipeline.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Types.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Types.php new file mode 100644 index 000000000000..23df6c6b7835 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Types.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/UnmanagedContainerModel.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/UnmanagedContainerModel.php new file mode 100644 index 000000000000..1832b9fe36ae --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/UnmanagedContainerModel.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' + +:google/cloud/aiplatform/v1/unmanaged_container_model.protogoogle.cloud.aiplatform.v1&google/cloud/aiplatform/v1/model.proto" +UnmanagedContainerModel + artifact_uri ( E +predict_schemata ( 2+.google.cloud.aiplatform.v1.PredictSchemataK +container_spec ( 2..google.cloud.aiplatform.v1.ModelContainerSpecBAB +com.google.cloud.aiplatform.v1BUnmanagedContainerModelProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/UserActionReference.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/UserActionReference.php new file mode 100644 index 000000000000..ece2093742f7 Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/UserActionReference.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Value.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Value.php new file mode 100644 index 000000000000..5f6b4b13eb8e Binary files /dev/null and b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/Value.php differ diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/VizierService.php b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/VizierService.php new file mode 100644 index 000000000000..8653d8a655ad --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/GPBMetadata/Google/Cloud/Aiplatform/V1/VizierService.php @@ -0,0 +1,141 @@ +internalAddGeneratedFile( + ' +/ +/google/cloud/aiplatform/v1/vizier_service.protogoogle.cloud.aiplatform.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto*google/cloud/aiplatform/v1/operation.proto&google/cloud/aiplatform/v1/study.proto#google/longrunning/operations.protogoogle/protobuf/empty.protogoogle/protobuf/timestamp.proto"H +GetStudyRequest5 +name ( B\'AA! +aiplatform.googleapis.com/Study" +CreateStudyRequest9 +parent ( B)AA# +!locations.googleapis.com/Location5 +study ( 2!.google.cloud.aiplatform.v1.StudyBA" +ListStudiesRequest9 +parent ( B)AA# +!locations.googleapis.com/Location + +page_token ( BA + page_size (BA"b +ListStudiesResponse2 +studies ( 2!.google.cloud.aiplatform.v1.Study +next_page_token ( "K +DeleteStudyRequest5 +name ( B\'AA! +aiplatform.googleapis.com/Study"j +LookupStudyRequest9 +parent ( B)AA# +!locations.googleapis.com/Location + display_name ( BA" +SuggestTrialsRequest7 +parent ( B\'AA! +aiplatform.googleapis.com/Study +suggestion_count (BA + client_id ( BA? +contexts ( 2(.google.cloud.aiplatform.v1.TrialContextBA" +SuggestTrialsResponse1 +trials ( 2!.google.cloud.aiplatform.v1.Trial< + study_state (2\'.google.cloud.aiplatform.v1.Study.State. + +start_time ( 2.google.protobuf.Timestamp, +end_time ( 2.google.protobuf.Timestamp"z +SuggestTrialsMetadataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata + client_id ( " +CreateTrialRequest7 +parent ( B\'AA! +aiplatform.googleapis.com/Study5 +trial ( 2!.google.cloud.aiplatform.v1.TrialBA"H +GetTrialRequest5 +name ( B\'AA! +aiplatform.googleapis.com/Trial"} +ListTrialsRequest7 +parent ( B\'AA! +aiplatform.googleapis.com/Study + +page_token ( BA + page_size (BA"` +ListTrialsResponse1 +trials ( 2!.google.cloud.aiplatform.v1.Trial +next_page_token ( " +AddTrialMeasurementRequest; + +trial_name ( B\'AA! +aiplatform.googleapis.com/TrialA + measurement ( 2\'.google.cloud.aiplatform.v1.MeasurementBA" +CompleteTrialRequest5 +name ( B\'AA! +aiplatform.googleapis.com/TrialG +final_measurement ( 2\'.google.cloud.aiplatform.v1.MeasurementBA +trial_infeasible (BA +infeasible_reason ( BA"K +DeleteTrialRequest5 +name ( B\'AA! +aiplatform.googleapis.com/Trial"b +#CheckTrialEarlyStoppingStateRequest; + +trial_name ( B\'AA! +aiplatform.googleapis.com/Trial"; +$CheckTrialEarlyStoppingStateResponse + should_stop (" +%CheckTrialEarlyStoppingStateMetatdataN +generic_metadata ( 24.google.cloud.aiplatform.v1.GenericOperationMetadata +study (  +trial ( "I +StopTrialRequest5 +name ( B\'AA! +aiplatform.googleapis.com/Trial"S +ListOptimalTrialsRequest7 +parent ( B\'AA! +aiplatform.googleapis.com/Study"V +ListOptimalTrialsResponse9 +optimal_trials ( 2!.google.cloud.aiplatform.v1.Trial2 + VizierService + CreateStudy..google.cloud.aiplatform.v1.CreateStudyRequest!.google.cloud.aiplatform.v1.Study"I4"+/v1/{parent=projects/*/locations/*}/studies:studyA parent,study +GetStudy+.google.cloud.aiplatform.v1.GetStudyRequest!.google.cloud.aiplatform.v1.Study":-+/v1/{name=projects/*/locations/*/studies/*}Aname + ListStudies..google.cloud.aiplatform.v1.ListStudiesRequest/.google.cloud.aiplatform.v1.ListStudiesResponse"<-+/v1/{parent=projects/*/locations/*}/studiesAparent + DeleteStudy..google.cloud.aiplatform.v1.DeleteStudyRequest.google.protobuf.Empty":-*+/v1/{name=projects/*/locations/*/studies/*}Aname + LookupStudy..google.cloud.aiplatform.v1.LookupStudyRequest!.google.cloud.aiplatform.v1.Study"F7"2/v1/{parent=projects/*/locations/*}/studies:lookup:*Aparent + SuggestTrials0.google.cloud.aiplatform.v1.SuggestTrialsRequest.google.longrunning.Operation"xA""9/v1/{name=projects/*/locations/*/studies/*/trials/*}:stop:* +ListOptimalTrials4.google.cloud.aiplatform.v1.ListOptimalTrialsRequest5.google.cloud.aiplatform.v1.ListOptimalTrialsResponse"ZK"F/v1/{parent=projects/*/locations/*/studies/*}/trials:listOptimalTrials:*AparentMAaiplatform.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +com.google.cloud.aiplatform.v1BVizierServiceProtoPZ>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpbGoogle.Cloud.AIPlatform.V1Google\\Cloud\\AIPlatform\\V1Google::Cloud::AIPlatform::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AcceleratorType.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AcceleratorType.php new file mode 100644 index 000000000000..700acbe2ace3 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AcceleratorType.php @@ -0,0 +1,124 @@ +google.cloud.aiplatform.v1.AcceleratorType + */ +class AcceleratorType +{ + /** + * Unspecified accelerator type, which means no accelerator. + * + * Generated from protobuf enum ACCELERATOR_TYPE_UNSPECIFIED = 0; + */ + const ACCELERATOR_TYPE_UNSPECIFIED = 0; + /** + * Nvidia Tesla K80 GPU. + * + * Generated from protobuf enum NVIDIA_TESLA_K80 = 1; + */ + const NVIDIA_TESLA_K80 = 1; + /** + * Nvidia Tesla P100 GPU. + * + * Generated from protobuf enum NVIDIA_TESLA_P100 = 2; + */ + const NVIDIA_TESLA_P100 = 2; + /** + * Nvidia Tesla V100 GPU. + * + * Generated from protobuf enum NVIDIA_TESLA_V100 = 3; + */ + const NVIDIA_TESLA_V100 = 3; + /** + * Nvidia Tesla P4 GPU. + * + * Generated from protobuf enum NVIDIA_TESLA_P4 = 4; + */ + const NVIDIA_TESLA_P4 = 4; + /** + * Nvidia Tesla T4 GPU. + * + * Generated from protobuf enum NVIDIA_TESLA_T4 = 5; + */ + const NVIDIA_TESLA_T4 = 5; + /** + * Nvidia Tesla A100 GPU. + * + * Generated from protobuf enum NVIDIA_TESLA_A100 = 8; + */ + const NVIDIA_TESLA_A100 = 8; + /** + * Nvidia A100 80GB GPU. + * + * Generated from protobuf enum NVIDIA_A100_80GB = 9; + */ + const NVIDIA_A100_80GB = 9; + /** + * Nvidia L4 GPU. + * + * Generated from protobuf enum NVIDIA_L4 = 11; + */ + const NVIDIA_L4 = 11; + /** + * TPU v2. + * + * Generated from protobuf enum TPU_V2 = 6; + */ + const TPU_V2 = 6; + /** + * TPU v3. + * + * Generated from protobuf enum TPU_V3 = 7; + */ + const TPU_V3 = 7; + /** + * TPU v4. + * + * Generated from protobuf enum TPU_V4_POD = 10; + */ + const TPU_V4_POD = 10; + + private static $valueToName = [ + self::ACCELERATOR_TYPE_UNSPECIFIED => 'ACCELERATOR_TYPE_UNSPECIFIED', + self::NVIDIA_TESLA_K80 => 'NVIDIA_TESLA_K80', + self::NVIDIA_TESLA_P100 => 'NVIDIA_TESLA_P100', + self::NVIDIA_TESLA_V100 => 'NVIDIA_TESLA_V100', + self::NVIDIA_TESLA_P4 => 'NVIDIA_TESLA_P4', + self::NVIDIA_TESLA_T4 => 'NVIDIA_TESLA_T4', + self::NVIDIA_TESLA_A100 => 'NVIDIA_TESLA_A100', + self::NVIDIA_A100_80GB => 'NVIDIA_A100_80GB', + self::NVIDIA_L4 => 'NVIDIA_L4', + self::TPU_V2 => 'TPU_V2', + self::TPU_V3 => 'TPU_V3', + self::TPU_V4_POD => 'TPU_V4_POD', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ActiveLearningConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ActiveLearningConfig.php new file mode 100644 index 000000000000..f9887ff8d0c8 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ActiveLearningConfig.php @@ -0,0 +1,210 @@ +google.cloud.aiplatform.v1.ActiveLearningConfig + */ +class ActiveLearningConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Active learning data sampling config. For every active learning labeling + * iteration, it will select a batch of data based on the sampling strategy. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.SampleConfig sample_config = 3; + */ + protected $sample_config = null; + /** + * CMLE training config. For every active learning labeling iteration, system + * will train a machine learning model on CMLE. The trained model will be used + * by data sampling algorithm to select DataItems. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TrainingConfig training_config = 4; + */ + protected $training_config = null; + protected $human_labeling_budget; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $max_data_item_count + * Max number of human labeled DataItems. + * @type int $max_data_item_percentage + * Max percent of total DataItems for human labeling. + * @type \Google\Cloud\AIPlatform\V1\SampleConfig $sample_config + * Active learning data sampling config. For every active learning labeling + * iteration, it will select a batch of data based on the sampling strategy. + * @type \Google\Cloud\AIPlatform\V1\TrainingConfig $training_config + * CMLE training config. For every active learning labeling iteration, system + * will train a machine learning model on CMLE. The trained model will be used + * by data sampling algorithm to select DataItems. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DataLabelingJob::initOnce(); + parent::__construct($data); + } + + /** + * Max number of human labeled DataItems. + * + * Generated from protobuf field int64 max_data_item_count = 1; + * @return int|string + */ + public function getMaxDataItemCount() + { + return $this->readOneof(1); + } + + public function hasMaxDataItemCount() + { + return $this->hasOneof(1); + } + + /** + * Max number of human labeled DataItems. + * + * Generated from protobuf field int64 max_data_item_count = 1; + * @param int|string $var + * @return $this + */ + public function setMaxDataItemCount($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Max percent of total DataItems for human labeling. + * + * Generated from protobuf field int32 max_data_item_percentage = 2; + * @return int + */ + public function getMaxDataItemPercentage() + { + return $this->readOneof(2); + } + + public function hasMaxDataItemPercentage() + { + return $this->hasOneof(2); + } + + /** + * Max percent of total DataItems for human labeling. + * + * Generated from protobuf field int32 max_data_item_percentage = 2; + * @param int $var + * @return $this + */ + public function setMaxDataItemPercentage($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Active learning data sampling config. For every active learning labeling + * iteration, it will select a batch of data based on the sampling strategy. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.SampleConfig sample_config = 3; + * @return \Google\Cloud\AIPlatform\V1\SampleConfig|null + */ + public function getSampleConfig() + { + return $this->sample_config; + } + + public function hasSampleConfig() + { + return isset($this->sample_config); + } + + public function clearSampleConfig() + { + unset($this->sample_config); + } + + /** + * Active learning data sampling config. For every active learning labeling + * iteration, it will select a batch of data based on the sampling strategy. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.SampleConfig sample_config = 3; + * @param \Google\Cloud\AIPlatform\V1\SampleConfig $var + * @return $this + */ + public function setSampleConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\SampleConfig::class); + $this->sample_config = $var; + + return $this; + } + + /** + * CMLE training config. For every active learning labeling iteration, system + * will train a machine learning model on CMLE. The trained model will be used + * by data sampling algorithm to select DataItems. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TrainingConfig training_config = 4; + * @return \Google\Cloud\AIPlatform\V1\TrainingConfig|null + */ + public function getTrainingConfig() + { + return $this->training_config; + } + + public function hasTrainingConfig() + { + return isset($this->training_config); + } + + public function clearTrainingConfig() + { + unset($this->training_config); + } + + /** + * CMLE training config. For every active learning labeling iteration, system + * will train a machine learning model on CMLE. The trained model will be used + * by data sampling algorithm to select DataItems. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TrainingConfig training_config = 4; + * @param \Google\Cloud\AIPlatform\V1\TrainingConfig $var + * @return $this + */ + public function setTrainingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\TrainingConfig::class); + $this->training_config = $var; + + return $this; + } + + /** + * @return string + */ + public function getHumanLabelingBudget() + { + return $this->whichOneof("human_labeling_budget"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextArtifactsAndExecutionsRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextArtifactsAndExecutionsRequest.php new file mode 100644 index 000000000000..f48abf80c3d5 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextArtifactsAndExecutionsRequest.php @@ -0,0 +1,191 @@ +google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + */ +class AddContextArtifactsAndExecutionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Context that the Artifacts and + * Executions belong to. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $context = ''; + /** + * The resource names of the Artifacts to attribute to the Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * + * Generated from protobuf field repeated string artifacts = 2 [(.google.api.resource_reference) = { + */ + private $artifacts; + /** + * The resource names of the Executions to associate with the + * Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field repeated string executions = 3 [(.google.api.resource_reference) = { + */ + private $executions; + + /** + * @param string $context Required. The resource name of the Context that the Artifacts and + * Executions belong to. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Please see {@see MetadataServiceClient::contextName()} for help formatting this field. + * @param string[] $artifacts The resource names of the Artifacts to attribute to the Context. + * + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * @param string[] $executions The resource names of the Executions to associate with the + * Context. + * + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * @return \Google\Cloud\AIPlatform\V1\AddContextArtifactsAndExecutionsRequest + * + * @experimental + */ + public static function build(string $context, array $artifacts, array $executions): self + { + return (new self()) + ->setContext($context) + ->setArtifacts($artifacts) + ->setExecutions($executions); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $context + * Required. The resource name of the Context that the Artifacts and + * Executions belong to. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * @type array|\Google\Protobuf\Internal\RepeatedField $artifacts + * The resource names of the Artifacts to attribute to the Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * @type array|\Google\Protobuf\Internal\RepeatedField $executions + * The resource names of the Executions to associate with the + * Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Context that the Artifacts and + * Executions belong to. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getContext() + { + return $this->context; + } + + /** + * Required. The resource name of the Context that the Artifacts and + * Executions belong to. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkString($var, True); + $this->context = $var; + + return $this; + } + + /** + * The resource names of the Artifacts to attribute to the Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * + * Generated from protobuf field repeated string artifacts = 2 [(.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getArtifacts() + { + return $this->artifacts; + } + + /** + * The resource names of the Artifacts to attribute to the Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * + * Generated from protobuf field repeated string artifacts = 2 [(.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setArtifacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->artifacts = $arr; + + return $this; + } + + /** + * The resource names of the Executions to associate with the + * Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field repeated string executions = 3 [(.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExecutions() + { + return $this->executions; + } + + /** + * The resource names of the Executions to associate with the + * Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field repeated string executions = 3 [(.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExecutions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->executions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextArtifactsAndExecutionsResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextArtifactsAndExecutionsResponse.php new file mode 100644 index 000000000000..d4517733526f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextArtifactsAndExecutionsResponse.php @@ -0,0 +1,34 @@ +google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + */ +class AddContextArtifactsAndExecutionsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextChildrenRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextChildrenRequest.php new file mode 100644 index 000000000000..ced1c8790978 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextChildrenRequest.php @@ -0,0 +1,129 @@ +google.cloud.aiplatform.v1.AddContextChildrenRequest + */ +class AddContextChildrenRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $context = ''; + /** + * The resource names of the child Contexts. + * + * Generated from protobuf field repeated string child_contexts = 2 [(.google.api.resource_reference) = { + */ + private $child_contexts; + + /** + * @param string $context Required. The resource name of the parent Context. + * + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Please see {@see MetadataServiceClient::contextName()} for help formatting this field. + * @param string[] $childContexts The resource names of the child Contexts. + * + * @return \Google\Cloud\AIPlatform\V1\AddContextChildrenRequest + * + * @experimental + */ + public static function build(string $context, array $childContexts): self + { + return (new self()) + ->setContext($context) + ->setChildContexts($childContexts); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $context + * Required. The resource name of the parent Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * @type array|\Google\Protobuf\Internal\RepeatedField $child_contexts + * The resource names of the child Contexts. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getContext() + { + return $this->context; + } + + /** + * Required. The resource name of the parent Context. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkString($var, True); + $this->context = $var; + + return $this; + } + + /** + * The resource names of the child Contexts. + * + * Generated from protobuf field repeated string child_contexts = 2 [(.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChildContexts() + { + return $this->child_contexts; + } + + /** + * The resource names of the child Contexts. + * + * Generated from protobuf field repeated string child_contexts = 2 [(.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChildContexts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->child_contexts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextChildrenResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextChildrenResponse.php new file mode 100644 index 000000000000..b684c3645241 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddContextChildrenResponse.php @@ -0,0 +1,34 @@ +google.cloud.aiplatform.v1.AddContextChildrenResponse + */ +class AddContextChildrenResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddExecutionEventsRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddExecutionEventsRequest.php new file mode 100644 index 000000000000..91504a57c913 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddExecutionEventsRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.AddExecutionEventsRequest + */ +class AddExecutionEventsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Execution that the Events connect + * Artifacts with. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $execution = ''; + /** + * The Events to create and add. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Event events = 2; + */ + private $events; + + /** + * @param string $execution Required. The resource name of the Execution that the Events connect + * Artifacts with. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * Please see {@see MetadataServiceClient::executionName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Event[] $events The Events to create and add. + * + * @return \Google\Cloud\AIPlatform\V1\AddExecutionEventsRequest + * + * @experimental + */ + public static function build(string $execution, array $events): self + { + return (new self()) + ->setExecution($execution) + ->setEvents($events); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $execution + * Required. The resource name of the Execution that the Events connect + * Artifacts with. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * @type array<\Google\Cloud\AIPlatform\V1\Event>|\Google\Protobuf\Internal\RepeatedField $events + * The Events to create and add. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Execution that the Events connect + * Artifacts with. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getExecution() + { + return $this->execution; + } + + /** + * Required. The resource name of the Execution that the Events connect + * Artifacts with. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field string execution = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setExecution($var) + { + GPBUtil::checkString($var, True); + $this->execution = $var; + + return $this; + } + + /** + * The Events to create and add. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Event events = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEvents() + { + return $this->events; + } + + /** + * The Events to create and add. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Event events = 2; + * @param array<\Google\Cloud\AIPlatform\V1\Event>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEvents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\Event::class); + $this->events = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddExecutionEventsResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddExecutionEventsResponse.php new file mode 100644 index 000000000000..d89b931a0efc --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddExecutionEventsResponse.php @@ -0,0 +1,34 @@ +google.cloud.aiplatform.v1.AddExecutionEventsResponse + */ +class AddExecutionEventsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddTrialMeasurementRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddTrialMeasurementRequest.php new file mode 100644 index 000000000000..f2655af971ed --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AddTrialMeasurementRequest.php @@ -0,0 +1,120 @@ +google.cloud.aiplatform.v1.AddTrialMeasurementRequest + */ +class AddTrialMeasurementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the trial to add measurement. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $trial_name = ''; + /** + * Required. The measurement to be added to a Trial. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $measurement = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $trial_name + * Required. The name of the trial to add measurement. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @type \Google\Cloud\AIPlatform\V1\Measurement $measurement + * Required. The measurement to be added to a Trial. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the trial to add measurement. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTrialName() + { + return $this->trial_name; + } + + /** + * Required. The name of the trial to add measurement. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTrialName($var) + { + GPBUtil::checkString($var, True); + $this->trial_name = $var; + + return $this; + } + + /** + * Required. The measurement to be added to a Trial. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Measurement|null + */ + public function getMeasurement() + { + return $this->measurement; + } + + public function hasMeasurement() + { + return isset($this->measurement); + } + + public function clearMeasurement() + { + unset($this->measurement); + } + + /** + * Required. The measurement to be added to a Trial. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Measurement $var + * @return $this + */ + public function setMeasurement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Measurement::class); + $this->measurement = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Annotation.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Annotation.php new file mode 100644 index 000000000000..e571d303444a --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Annotation.php @@ -0,0 +1,446 @@ +google.cloud.aiplatform.v1.Annotation + */ +class Annotation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the Annotation. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Google Cloud Storage URI points to a YAML file describing + * [payload][google.cloud.aiplatform.v1.Annotation.payload]. The schema is + * defined as an [OpenAPI 3.0.2 Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * The schema files that can be used here are found in + * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the + * chosen schema must be consistent with the parent Dataset's + * [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri]. + * + * Generated from protobuf field string payload_schema_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $payload_schema_uri = ''; + /** + * Required. The schema of the payload can be found in + * [payload_schema][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value payload = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $payload = null; + /** + * Output only. Timestamp when this Annotation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this Annotation was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Output only. The source of the Annotation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.UserActionReference annotation_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $annotation_source = null; + /** + * Optional. The labels with user-defined metadata to organize your + * Annotations. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Annotation(System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each Annotation: + * * "aiplatform.googleapis.com/annotation_set_name": + * optional, name of the UI's annotation set this Annotation belongs to. + * If not set, the Annotation is not visible in the UI. + * * "aiplatform.googleapis.com/payload_schema": + * output only, its value is the + * [payload_schema's][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + * title. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the Annotation. + * @type string $payload_schema_uri + * Required. Google Cloud Storage URI points to a YAML file describing + * [payload][google.cloud.aiplatform.v1.Annotation.payload]. The schema is + * defined as an [OpenAPI 3.0.2 Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * The schema files that can be used here are found in + * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the + * chosen schema must be consistent with the parent Dataset's + * [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri]. + * @type \Google\Protobuf\Value $payload + * Required. The schema of the payload can be found in + * [payload_schema][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this Annotation was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this Annotation was last updated. + * @type string $etag + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * @type \Google\Cloud\AIPlatform\V1\UserActionReference $annotation_source + * Output only. The source of the Annotation. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The labels with user-defined metadata to organize your + * Annotations. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Annotation(System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each Annotation: + * * "aiplatform.googleapis.com/annotation_set_name": + * optional, name of the UI's annotation set this Annotation belongs to. + * If not set, the Annotation is not visible in the UI. + * * "aiplatform.googleapis.com/payload_schema": + * output only, its value is the + * [payload_schema's][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + * title. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Annotation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the Annotation. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of the Annotation. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Google Cloud Storage URI points to a YAML file describing + * [payload][google.cloud.aiplatform.v1.Annotation.payload]. The schema is + * defined as an [OpenAPI 3.0.2 Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * The schema files that can be used here are found in + * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the + * chosen schema must be consistent with the parent Dataset's + * [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri]. + * + * Generated from protobuf field string payload_schema_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPayloadSchemaUri() + { + return $this->payload_schema_uri; + } + + /** + * Required. Google Cloud Storage URI points to a YAML file describing + * [payload][google.cloud.aiplatform.v1.Annotation.payload]. The schema is + * defined as an [OpenAPI 3.0.2 Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * The schema files that can be used here are found in + * gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the + * chosen schema must be consistent with the parent Dataset's + * [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri]. + * + * Generated from protobuf field string payload_schema_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPayloadSchemaUri($var) + { + GPBUtil::checkString($var, True); + $this->payload_schema_uri = $var; + + return $this; + } + + /** + * Required. The schema of the payload can be found in + * [payload_schema][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value payload = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Value|null + */ + public function getPayload() + { + return $this->payload; + } + + public function hasPayload() + { + return isset($this->payload); + } + + public function clearPayload() + { + unset($this->payload); + } + + /** + * Required. The schema of the payload can be found in + * [payload_schema][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value payload = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setPayload($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->payload = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Annotation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this Annotation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Annotation was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this Annotation was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. The source of the Annotation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.UserActionReference annotation_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\AIPlatform\V1\UserActionReference|null + */ + public function getAnnotationSource() + { + return $this->annotation_source; + } + + public function hasAnnotationSource() + { + return isset($this->annotation_source); + } + + public function clearAnnotationSource() + { + unset($this->annotation_source); + } + + /** + * Output only. The source of the Annotation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.UserActionReference annotation_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\AIPlatform\V1\UserActionReference $var + * @return $this + */ + public function setAnnotationSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\UserActionReference::class); + $this->annotation_source = $var; + + return $this; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * Annotations. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Annotation(System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each Annotation: + * * "aiplatform.googleapis.com/annotation_set_name": + * optional, name of the UI's annotation set this Annotation belongs to. + * If not set, the Annotation is not visible in the UI. + * * "aiplatform.googleapis.com/payload_schema": + * output only, its value is the + * [payload_schema's][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + * title. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * Annotations. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Annotation(System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each Annotation: + * * "aiplatform.googleapis.com/annotation_set_name": + * optional, name of the UI's annotation set this Annotation belongs to. + * If not set, the Annotation is not visible in the UI. + * * "aiplatform.googleapis.com/payload_schema": + * output only, its value is the + * [payload_schema's][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + * title. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AnnotationSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AnnotationSpec.php new file mode 100644 index 000000000000..07c36621fab8 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AnnotationSpec.php @@ -0,0 +1,235 @@ +google.cloud.aiplatform.v1.AnnotationSpec + */ +class AnnotationSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the AnnotationSpec. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The user-defined name of the AnnotationSpec. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. Timestamp when this AnnotationSpec was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when AnnotationSpec was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the AnnotationSpec. + * @type string $display_name + * Required. The user-defined name of the AnnotationSpec. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this AnnotationSpec was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when AnnotationSpec was last updated. + * @type string $etag + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\AnnotationSpec::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the AnnotationSpec. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of the AnnotationSpec. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The user-defined name of the AnnotationSpec. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The user-defined name of the AnnotationSpec. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Timestamp when this AnnotationSpec was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this AnnotationSpec was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when AnnotationSpec was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when AnnotationSpec was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Artifact.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Artifact.php new file mode 100644 index 000000000000..726926e474ca --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Artifact.php @@ -0,0 +1,547 @@ +google.cloud.aiplatform.v1.Artifact + */ +class Artifact extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the Artifact. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * User provided display name of the Artifact. + * May be up to 128 Unicode characters. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * The uniform resource identifier of the artifact file. + * May be empty if there is no actual artifact file. + * + * Generated from protobuf field string uri = 6; + */ + protected $uri = ''; + /** + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 9; + */ + protected $etag = ''; + /** + * The labels with user-defined metadata to organize your Artifacts. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Artifact (System + * labels are excluded). + * + * Generated from protobuf field map labels = 10; + */ + private $labels; + /** + * Output only. Timestamp when this Artifact was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this Artifact was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * The state of this Artifact. This is a property of the Artifact, and does + * not imply or capture any ongoing process. This property is managed by + * clients (such as Vertex AI Pipelines), and the system does not prescribe + * or check the validity of state transitions. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Artifact.State state = 13; + */ + protected $state = 0; + /** + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_title = 14; + */ + protected $schema_title = ''; + /** + * The version of the schema in schema_name to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_version = 15; + */ + protected $schema_version = ''; + /** + * Properties of the Artifact. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * + * Generated from protobuf field .google.protobuf.Struct metadata = 16; + */ + protected $metadata = null; + /** + * Description of the Artifact + * + * Generated from protobuf field string description = 17; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the Artifact. + * @type string $display_name + * User provided display name of the Artifact. + * May be up to 128 Unicode characters. + * @type string $uri + * The uniform resource identifier of the artifact file. + * May be empty if there is no actual artifact file. + * @type string $etag + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize your Artifacts. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Artifact (System + * labels are excluded). + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this Artifact was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this Artifact was last updated. + * @type int $state + * The state of this Artifact. This is a property of the Artifact, and does + * not imply or capture any ongoing process. This property is managed by + * clients (such as Vertex AI Pipelines), and the system does not prescribe + * or check the validity of state transitions. + * @type string $schema_title + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * @type string $schema_version + * The version of the schema in schema_name to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * @type \Google\Protobuf\Struct $metadata + * Properties of the Artifact. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * @type string $description + * Description of the Artifact + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Artifact::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the Artifact. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of the Artifact. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * User provided display name of the Artifact. + * May be up to 128 Unicode characters. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * User provided display name of the Artifact. + * May be up to 128 Unicode characters. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The uniform resource identifier of the artifact file. + * May be empty if there is no actual artifact file. + * + * Generated from protobuf field string uri = 6; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * The uniform resource identifier of the artifact file. + * May be empty if there is no actual artifact file. + * + * Generated from protobuf field string uri = 6; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 9; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 9; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize your Artifacts. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Artifact (System + * labels are excluded). + * + * Generated from protobuf field map labels = 10; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize your Artifacts. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Artifact (System + * labels are excluded). + * + * Generated from protobuf field map labels = 10; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Timestamp when this Artifact was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this Artifact was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Artifact was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this Artifact was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * The state of this Artifact. This is a property of the Artifact, and does + * not imply or capture any ongoing process. This property is managed by + * clients (such as Vertex AI Pipelines), and the system does not prescribe + * or check the validity of state transitions. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Artifact.State state = 13; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The state of this Artifact. This is a property of the Artifact, and does + * not imply or capture any ongoing process. This property is managed by + * clients (such as Vertex AI Pipelines), and the system does not prescribe + * or check the validity of state transitions. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Artifact.State state = 13; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\Artifact\State::class); + $this->state = $var; + + return $this; + } + + /** + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_title = 14; + * @return string + */ + public function getSchemaTitle() + { + return $this->schema_title; + } + + /** + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_title = 14; + * @param string $var + * @return $this + */ + public function setSchemaTitle($var) + { + GPBUtil::checkString($var, True); + $this->schema_title = $var; + + return $this; + } + + /** + * The version of the schema in schema_name to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_version = 15; + * @return string + */ + public function getSchemaVersion() + { + return $this->schema_version; + } + + /** + * The version of the schema in schema_name to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_version = 15; + * @param string $var + * @return $this + */ + public function setSchemaVersion($var) + { + GPBUtil::checkString($var, True); + $this->schema_version = $var; + + return $this; + } + + /** + * Properties of the Artifact. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * + * Generated from protobuf field .google.protobuf.Struct metadata = 16; + * @return \Google\Protobuf\Struct|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Properties of the Artifact. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * + * Generated from protobuf field .google.protobuf.Struct metadata = 16; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->metadata = $var; + + return $this; + } + + /** + * Description of the Artifact + * + * Generated from protobuf field string description = 17; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the Artifact + * + * Generated from protobuf field string description = 17; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Artifact/State.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Artifact/State.php new file mode 100644 index 000000000000..63c2eea3f986 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Artifact/State.php @@ -0,0 +1,66 @@ +google.cloud.aiplatform.v1.Artifact.State + */ +class State +{ + /** + * Unspecified state for the Artifact. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * A state used by systems like Vertex AI Pipelines to indicate that the + * underlying data item represented by this Artifact is being created. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * A state indicating that the Artifact should exist, unless something + * external to the system deletes it. + * + * Generated from protobuf enum LIVE = 2; + */ + const LIVE = 2; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::LIVE => 'LIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\AIPlatform\V1\Artifact_State::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Attribution.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Attribution.php new file mode 100644 index 000000000000..457be211bfdd --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Attribution.php @@ -0,0 +1,565 @@ +google.cloud.aiplatform.v1.Attribution + */ +class Attribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Model predicted output if the input instance is constructed + * from the baselines of all the features defined in + * [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The field name of the output is determined by the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * If the Model's predicted output has multiple dimensions (rank > 1), this is + * the value in the output located by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * If there are multiple baselines, their output values are averaged. + * + * Generated from protobuf field double baseline_output_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $baseline_output_value = 0.0; + /** + * Output only. Model predicted output on the corresponding [explanation + * instance][ExplainRequest.instances]. The field name of the output is + * determined by the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * If the Model predicted output has multiple dimensions, this is the value in + * the output located by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * + * Generated from protobuf field double instance_output_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $instance_output_value = 0.0; + /** + * Output only. Attributions of each explained feature. Features are extracted + * from the [prediction + * instances][google.cloud.aiplatform.v1.ExplainRequest.instances] according + * to [explanation metadata for + * inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The value is a struct, whose keys are the name of the feature. The values + * are how much the feature in the + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances] contributed + * to the predicted result. + * The format of the value is determined by the feature's input format: + * * If the feature is a scalar value, the attribution value is a + * [floating number][google.protobuf.Value.number_value]. + * * If the feature is an array of scalar values, the attribution value is + * an [array][google.protobuf.Value.list_value]. + * * If the feature is a struct, the attribution value is a + * [struct][google.protobuf.Value.struct_value]. The keys in the + * attribution value struct are the same as the keys in the feature + * struct. The formats of the values in the attribution struct are + * determined by the formats of the values in the feature struct. + * The + * [ExplanationMetadata.feature_attributions_schema_uri][google.cloud.aiplatform.v1.ExplanationMetadata.feature_attributions_schema_uri] + * field, pointed to by the + * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] field of the + * [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] + * object, points to the schema file that describes the features and their + * attribution values (if it is populated). + * + * Generated from protobuf field .google.protobuf.Value feature_attributions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $feature_attributions = null; + /** + * Output only. The index that locates the explained prediction output. + * If the prediction output is a scalar value, output_index is not populated. + * If the prediction output has multiple dimensions, the length of the + * output_index list is the same as the number of dimensions of the output. + * The i-th element in output_index is the element index of the i-th dimension + * of the output vector. Indices start from 0. + * + * Generated from protobuf field repeated int32 output_index = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $output_index; + /** + * Output only. The display name of the output identified by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. For + * example, the predicted class name by a multi-classification Model. + * This field is only populated iff the Model predicts display names as a + * separate field along with the explained output. The predicted display name + * must has the same shape of the explained output, and can be located using + * output_index. + * + * Generated from protobuf field string output_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $output_display_name = ''; + /** + * Output only. Error of + * [feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + * caused by approximation used in the explanation method. Lower value means + * more precise attributions. + * * For Sampled Shapley + * [attribution][google.cloud.aiplatform.v1.ExplanationParameters.sampled_shapley_attribution], + * increasing + * [path_count][google.cloud.aiplatform.v1.SampledShapleyAttribution.path_count] + * might reduce the error. + * * For Integrated Gradients + * [attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], + * increasing + * [step_count][google.cloud.aiplatform.v1.IntegratedGradientsAttribution.step_count] + * might reduce the error. + * * For [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], + * increasing + * [step_count][google.cloud.aiplatform.v1.XraiAttribution.step_count] might + * reduce the error. + * See [this introduction](/vertex-ai/docs/explainable-ai/overview) + * for more information. + * + * Generated from protobuf field double approximation_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $approximation_error = 0.0; + /** + * Output only. Name of the explain output. Specified as the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * + * Generated from protobuf field string output_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $output_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $baseline_output_value + * Output only. Model predicted output if the input instance is constructed + * from the baselines of all the features defined in + * [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The field name of the output is determined by the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * If the Model's predicted output has multiple dimensions (rank > 1), this is + * the value in the output located by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * If there are multiple baselines, their output values are averaged. + * @type float $instance_output_value + * Output only. Model predicted output on the corresponding [explanation + * instance][ExplainRequest.instances]. The field name of the output is + * determined by the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * If the Model predicted output has multiple dimensions, this is the value in + * the output located by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * @type \Google\Protobuf\Value $feature_attributions + * Output only. Attributions of each explained feature. Features are extracted + * from the [prediction + * instances][google.cloud.aiplatform.v1.ExplainRequest.instances] according + * to [explanation metadata for + * inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The value is a struct, whose keys are the name of the feature. The values + * are how much the feature in the + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances] contributed + * to the predicted result. + * The format of the value is determined by the feature's input format: + * * If the feature is a scalar value, the attribution value is a + * [floating number][google.protobuf.Value.number_value]. + * * If the feature is an array of scalar values, the attribution value is + * an [array][google.protobuf.Value.list_value]. + * * If the feature is a struct, the attribution value is a + * [struct][google.protobuf.Value.struct_value]. The keys in the + * attribution value struct are the same as the keys in the feature + * struct. The formats of the values in the attribution struct are + * determined by the formats of the values in the feature struct. + * The + * [ExplanationMetadata.feature_attributions_schema_uri][google.cloud.aiplatform.v1.ExplanationMetadata.feature_attributions_schema_uri] + * field, pointed to by the + * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] field of the + * [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] + * object, points to the schema file that describes the features and their + * attribution values (if it is populated). + * @type array|\Google\Protobuf\Internal\RepeatedField $output_index + * Output only. The index that locates the explained prediction output. + * If the prediction output is a scalar value, output_index is not populated. + * If the prediction output has multiple dimensions, the length of the + * output_index list is the same as the number of dimensions of the output. + * The i-th element in output_index is the element index of the i-th dimension + * of the output vector. Indices start from 0. + * @type string $output_display_name + * Output only. The display name of the output identified by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. For + * example, the predicted class name by a multi-classification Model. + * This field is only populated iff the Model predicts display names as a + * separate field along with the explained output. The predicted display name + * must has the same shape of the explained output, and can be located using + * output_index. + * @type float $approximation_error + * Output only. Error of + * [feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + * caused by approximation used in the explanation method. Lower value means + * more precise attributions. + * * For Sampled Shapley + * [attribution][google.cloud.aiplatform.v1.ExplanationParameters.sampled_shapley_attribution], + * increasing + * [path_count][google.cloud.aiplatform.v1.SampledShapleyAttribution.path_count] + * might reduce the error. + * * For Integrated Gradients + * [attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], + * increasing + * [step_count][google.cloud.aiplatform.v1.IntegratedGradientsAttribution.step_count] + * might reduce the error. + * * For [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], + * increasing + * [step_count][google.cloud.aiplatform.v1.XraiAttribution.step_count] might + * reduce the error. + * See [this introduction](/vertex-ai/docs/explainable-ai/overview) + * for more information. + * @type string $output_name + * Output only. Name of the explain output. Specified as the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Model predicted output if the input instance is constructed + * from the baselines of all the features defined in + * [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The field name of the output is determined by the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * If the Model's predicted output has multiple dimensions (rank > 1), this is + * the value in the output located by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * If there are multiple baselines, their output values are averaged. + * + * Generated from protobuf field double baseline_output_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getBaselineOutputValue() + { + return $this->baseline_output_value; + } + + /** + * Output only. Model predicted output if the input instance is constructed + * from the baselines of all the features defined in + * [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The field name of the output is determined by the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * If the Model's predicted output has multiple dimensions (rank > 1), this is + * the value in the output located by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * If there are multiple baselines, their output values are averaged. + * + * Generated from protobuf field double baseline_output_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setBaselineOutputValue($var) + { + GPBUtil::checkDouble($var); + $this->baseline_output_value = $var; + + return $this; + } + + /** + * Output only. Model predicted output on the corresponding [explanation + * instance][ExplainRequest.instances]. The field name of the output is + * determined by the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * If the Model predicted output has multiple dimensions, this is the value in + * the output located by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * + * Generated from protobuf field double instance_output_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getInstanceOutputValue() + { + return $this->instance_output_value; + } + + /** + * Output only. Model predicted output on the corresponding [explanation + * instance][ExplainRequest.instances]. The field name of the output is + * determined by the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * If the Model predicted output has multiple dimensions, this is the value in + * the output located by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * + * Generated from protobuf field double instance_output_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setInstanceOutputValue($var) + { + GPBUtil::checkDouble($var); + $this->instance_output_value = $var; + + return $this; + } + + /** + * Output only. Attributions of each explained feature. Features are extracted + * from the [prediction + * instances][google.cloud.aiplatform.v1.ExplainRequest.instances] according + * to [explanation metadata for + * inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The value is a struct, whose keys are the name of the feature. The values + * are how much the feature in the + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances] contributed + * to the predicted result. + * The format of the value is determined by the feature's input format: + * * If the feature is a scalar value, the attribution value is a + * [floating number][google.protobuf.Value.number_value]. + * * If the feature is an array of scalar values, the attribution value is + * an [array][google.protobuf.Value.list_value]. + * * If the feature is a struct, the attribution value is a + * [struct][google.protobuf.Value.struct_value]. The keys in the + * attribution value struct are the same as the keys in the feature + * struct. The formats of the values in the attribution struct are + * determined by the formats of the values in the feature struct. + * The + * [ExplanationMetadata.feature_attributions_schema_uri][google.cloud.aiplatform.v1.ExplanationMetadata.feature_attributions_schema_uri] + * field, pointed to by the + * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] field of the + * [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] + * object, points to the schema file that describes the features and their + * attribution values (if it is populated). + * + * Generated from protobuf field .google.protobuf.Value feature_attributions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Value|null + */ + public function getFeatureAttributions() + { + return $this->feature_attributions; + } + + public function hasFeatureAttributions() + { + return isset($this->feature_attributions); + } + + public function clearFeatureAttributions() + { + unset($this->feature_attributions); + } + + /** + * Output only. Attributions of each explained feature. Features are extracted + * from the [prediction + * instances][google.cloud.aiplatform.v1.ExplainRequest.instances] according + * to [explanation metadata for + * inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The value is a struct, whose keys are the name of the feature. The values + * are how much the feature in the + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances] contributed + * to the predicted result. + * The format of the value is determined by the feature's input format: + * * If the feature is a scalar value, the attribution value is a + * [floating number][google.protobuf.Value.number_value]. + * * If the feature is an array of scalar values, the attribution value is + * an [array][google.protobuf.Value.list_value]. + * * If the feature is a struct, the attribution value is a + * [struct][google.protobuf.Value.struct_value]. The keys in the + * attribution value struct are the same as the keys in the feature + * struct. The formats of the values in the attribution struct are + * determined by the formats of the values in the feature struct. + * The + * [ExplanationMetadata.feature_attributions_schema_uri][google.cloud.aiplatform.v1.ExplanationMetadata.feature_attributions_schema_uri] + * field, pointed to by the + * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] field of the + * [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] + * object, points to the schema file that describes the features and their + * attribution values (if it is populated). + * + * Generated from protobuf field .google.protobuf.Value feature_attributions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setFeatureAttributions($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->feature_attributions = $var; + + return $this; + } + + /** + * Output only. The index that locates the explained prediction output. + * If the prediction output is a scalar value, output_index is not populated. + * If the prediction output has multiple dimensions, the length of the + * output_index list is the same as the number of dimensions of the output. + * The i-th element in output_index is the element index of the i-th dimension + * of the output vector. Indices start from 0. + * + * Generated from protobuf field repeated int32 output_index = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOutputIndex() + { + return $this->output_index; + } + + /** + * Output only. The index that locates the explained prediction output. + * If the prediction output is a scalar value, output_index is not populated. + * If the prediction output has multiple dimensions, the length of the + * output_index list is the same as the number of dimensions of the output. + * The i-th element in output_index is the element index of the i-th dimension + * of the output vector. Indices start from 0. + * + * Generated from protobuf field repeated int32 output_index = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOutputIndex($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->output_index = $arr; + + return $this; + } + + /** + * Output only. The display name of the output identified by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. For + * example, the predicted class name by a multi-classification Model. + * This field is only populated iff the Model predicts display names as a + * separate field along with the explained output. The predicted display name + * must has the same shape of the explained output, and can be located using + * output_index. + * + * Generated from protobuf field string output_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOutputDisplayName() + { + return $this->output_display_name; + } + + /** + * Output only. The display name of the output identified by + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. For + * example, the predicted class name by a multi-classification Model. + * This field is only populated iff the Model predicts display names as a + * separate field along with the explained output. The predicted display name + * must has the same shape of the explained output, and can be located using + * output_index. + * + * Generated from protobuf field string output_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOutputDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->output_display_name = $var; + + return $this; + } + + /** + * Output only. Error of + * [feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + * caused by approximation used in the explanation method. Lower value means + * more precise attributions. + * * For Sampled Shapley + * [attribution][google.cloud.aiplatform.v1.ExplanationParameters.sampled_shapley_attribution], + * increasing + * [path_count][google.cloud.aiplatform.v1.SampledShapleyAttribution.path_count] + * might reduce the error. + * * For Integrated Gradients + * [attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], + * increasing + * [step_count][google.cloud.aiplatform.v1.IntegratedGradientsAttribution.step_count] + * might reduce the error. + * * For [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], + * increasing + * [step_count][google.cloud.aiplatform.v1.XraiAttribution.step_count] might + * reduce the error. + * See [this introduction](/vertex-ai/docs/explainable-ai/overview) + * for more information. + * + * Generated from protobuf field double approximation_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getApproximationError() + { + return $this->approximation_error; + } + + /** + * Output only. Error of + * [feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + * caused by approximation used in the explanation method. Lower value means + * more precise attributions. + * * For Sampled Shapley + * [attribution][google.cloud.aiplatform.v1.ExplanationParameters.sampled_shapley_attribution], + * increasing + * [path_count][google.cloud.aiplatform.v1.SampledShapleyAttribution.path_count] + * might reduce the error. + * * For Integrated Gradients + * [attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], + * increasing + * [step_count][google.cloud.aiplatform.v1.IntegratedGradientsAttribution.step_count] + * might reduce the error. + * * For [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], + * increasing + * [step_count][google.cloud.aiplatform.v1.XraiAttribution.step_count] might + * reduce the error. + * See [this introduction](/vertex-ai/docs/explainable-ai/overview) + * for more information. + * + * Generated from protobuf field double approximation_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setApproximationError($var) + { + GPBUtil::checkDouble($var); + $this->approximation_error = $var; + + return $this; + } + + /** + * Output only. Name of the explain output. Specified as the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * + * Generated from protobuf field string output_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOutputName() + { + return $this->output_name; + } + + /** + * Output only. Name of the explain output. Specified as the key in + * [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + * + * Generated from protobuf field string output_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOutputName($var) + { + GPBUtil::checkString($var, True); + $this->output_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AutomaticResources.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AutomaticResources.php new file mode 100644 index 000000000000..19a15f9d5eb8 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AutomaticResources.php @@ -0,0 +1,155 @@ +google.cloud.aiplatform.v1.AutomaticResources + */ +class AutomaticResources extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The minimum number of replicas this DeployedModel will be always + * deployed on. If traffic against it increases, it may dynamically be + * deployed onto more replicas up to + * [max_replica_count][google.cloud.aiplatform.v1.AutomaticResources.max_replica_count], + * and as traffic decreases, some of these extra replicas may be freed. If the + * requested value is too large, the deployment will error. + * + * Generated from protobuf field int32 min_replica_count = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $min_replica_count = 0; + /** + * Immutable. The maximum number of replicas this DeployedModel may be + * deployed on when the traffic against it increases. If the requested value + * is too large, the deployment will error, but if deployment succeeds then + * the ability to scale the model to that many replicas is guaranteed (barring + * service outages). If traffic against the DeployedModel increases beyond + * what its replicas at maximum may handle, a portion of the traffic will be + * dropped. If this value is not provided, a no upper bound for scaling under + * heavy traffic will be assume, though Vertex AI may be unable to scale + * beyond certain replica number. + * + * Generated from protobuf field int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $max_replica_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $min_replica_count + * Immutable. The minimum number of replicas this DeployedModel will be always + * deployed on. If traffic against it increases, it may dynamically be + * deployed onto more replicas up to + * [max_replica_count][google.cloud.aiplatform.v1.AutomaticResources.max_replica_count], + * and as traffic decreases, some of these extra replicas may be freed. If the + * requested value is too large, the deployment will error. + * @type int $max_replica_count + * Immutable. The maximum number of replicas this DeployedModel may be + * deployed on when the traffic against it increases. If the requested value + * is too large, the deployment will error, but if deployment succeeds then + * the ability to scale the model to that many replicas is guaranteed (barring + * service outages). If traffic against the DeployedModel increases beyond + * what its replicas at maximum may handle, a portion of the traffic will be + * dropped. If this value is not provided, a no upper bound for scaling under + * heavy traffic will be assume, though Vertex AI may be unable to scale + * beyond certain replica number. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MachineResources::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The minimum number of replicas this DeployedModel will be always + * deployed on. If traffic against it increases, it may dynamically be + * deployed onto more replicas up to + * [max_replica_count][google.cloud.aiplatform.v1.AutomaticResources.max_replica_count], + * and as traffic decreases, some of these extra replicas may be freed. If the + * requested value is too large, the deployment will error. + * + * Generated from protobuf field int32 min_replica_count = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getMinReplicaCount() + { + return $this->min_replica_count; + } + + /** + * Immutable. The minimum number of replicas this DeployedModel will be always + * deployed on. If traffic against it increases, it may dynamically be + * deployed onto more replicas up to + * [max_replica_count][google.cloud.aiplatform.v1.AutomaticResources.max_replica_count], + * and as traffic decreases, some of these extra replicas may be freed. If the + * requested value is too large, the deployment will error. + * + * Generated from protobuf field int32 min_replica_count = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setMinReplicaCount($var) + { + GPBUtil::checkInt32($var); + $this->min_replica_count = $var; + + return $this; + } + + /** + * Immutable. The maximum number of replicas this DeployedModel may be + * deployed on when the traffic against it increases. If the requested value + * is too large, the deployment will error, but if deployment succeeds then + * the ability to scale the model to that many replicas is guaranteed (barring + * service outages). If traffic against the DeployedModel increases beyond + * what its replicas at maximum may handle, a portion of the traffic will be + * dropped. If this value is not provided, a no upper bound for scaling under + * heavy traffic will be assume, though Vertex AI may be unable to scale + * beyond certain replica number. + * + * Generated from protobuf field int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getMaxReplicaCount() + { + return $this->max_replica_count; + } + + /** + * Immutable. The maximum number of replicas this DeployedModel may be + * deployed on when the traffic against it increases. If the requested value + * is too large, the deployment will error, but if deployment succeeds then + * the ability to scale the model to that many replicas is guaranteed (barring + * service outages). If traffic against the DeployedModel increases beyond + * what its replicas at maximum may handle, a portion of the traffic will be + * dropped. If this value is not provided, a no upper bound for scaling under + * heavy traffic will be assume, though Vertex AI may be unable to scale + * beyond certain replica number. + * + * Generated from protobuf field int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setMaxReplicaCount($var) + { + GPBUtil::checkInt32($var); + $this->max_replica_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AutoscalingMetricSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AutoscalingMetricSpec.php new file mode 100644 index 000000000000..68f5244c7a41 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AutoscalingMetricSpec.php @@ -0,0 +1,131 @@ +google.cloud.aiplatform.v1.AutoscalingMetricSpec + */ +class AutoscalingMetricSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource metric name. + * Supported metrics: + * * For Online Prediction: + * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` + * * `aiplatform.googleapis.com/prediction/online/cpu/utilization` + * + * Generated from protobuf field string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metric_name = ''; + /** + * The target resource utilization in percentage (1% - 100%) for the given + * metric; once the real usage deviates from the target by a certain + * percentage, the machine replicas change. The default value is 60 + * (representing 60%) if not provided. + * + * Generated from protobuf field int32 target = 2; + */ + protected $target = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric_name + * Required. The resource metric name. + * Supported metrics: + * * For Online Prediction: + * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` + * * `aiplatform.googleapis.com/prediction/online/cpu/utilization` + * @type int $target + * The target resource utilization in percentage (1% - 100%) for the given + * metric; once the real usage deviates from the target by a certain + * percentage, the machine replicas change. The default value is 60 + * (representing 60%) if not provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MachineResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource metric name. + * Supported metrics: + * * For Online Prediction: + * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` + * * `aiplatform.googleapis.com/prediction/online/cpu/utilization` + * + * Generated from protobuf field string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMetricName() + { + return $this->metric_name; + } + + /** + * Required. The resource metric name. + * Supported metrics: + * * For Online Prediction: + * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` + * * `aiplatform.googleapis.com/prediction/online/cpu/utilization` + * + * Generated from protobuf field string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMetricName($var) + { + GPBUtil::checkString($var, True); + $this->metric_name = $var; + + return $this; + } + + /** + * The target resource utilization in percentage (1% - 100%) for the given + * metric; once the real usage deviates from the target by a certain + * percentage, the machine replicas change. The default value is 60 + * (representing 60%) if not provided. + * + * Generated from protobuf field int32 target = 2; + * @return int + */ + public function getTarget() + { + return $this->target; + } + + /** + * The target resource utilization in percentage (1% - 100%) for the given + * metric; once the real usage deviates from the target by a certain + * percentage, the machine replicas change. The default value is 60 + * (representing 60%) if not provided. + * + * Generated from protobuf field int32 target = 2; + * @param int $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkInt32($var); + $this->target = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AvroSource.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AvroSource.php new file mode 100644 index 000000000000..b0558cc5b603 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/AvroSource.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.AvroSource + */ +class AvroSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Google Cloud Storage location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $gcs_source = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GcsSource $gcs_source + * Required. Google Cloud Storage location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce(); + parent::__construct($data); + } + + /** + * Required. Google Cloud Storage location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\GcsSource|null + */ + public function getGcsSource() + { + return $this->gcs_source; + } + + public function hasGcsSource() + { + return isset($this->gcs_source); + } + + public function clearGcsSource() + { + unset($this->gcs_source); + } + + /** + * Required. Google Cloud Storage location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\GcsSource $var + * @return $this + */ + public function setGcsSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GcsSource::class); + $this->gcs_source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateFeaturesOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateFeaturesOperationMetadata.php new file mode 100644 index 000000000000..6dabff519c11 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateFeaturesOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + */ +class BatchCreateFeaturesOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for Feature. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for Feature. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for Feature. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for Feature. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateFeaturesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateFeaturesRequest.php new file mode 100644 index 000000000000..f2115669730b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateFeaturesRequest.php @@ -0,0 +1,148 @@ +google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + */ +class BatchCreateFeaturesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntityType to create the batch of + * Features under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The request message specifying the Features to create. All + * Features must be created under the same parent EntityType. The `parent` + * field in each child request message can be omitted. If `parent` is set in a + * child request, then the value must match the `parent` value in this request + * message. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource name of the EntityType to create the batch of + * Features under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Please see {@see FeaturestoreServiceClient::entityTypeName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\CreateFeatureRequest[] $requests Required. The request message specifying the Features to create. All + * Features must be created under the same parent EntityType. The `parent` + * field in each child request message can be omitted. If `parent` is set in a + * child request, then the value must match the `parent` value in this request + * message. + * + * @return \Google\Cloud\AIPlatform\V1\BatchCreateFeaturesRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the EntityType to create the batch of + * Features under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @type array<\Google\Cloud\AIPlatform\V1\CreateFeatureRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The request message specifying the Features to create. All + * Features must be created under the same parent EntityType. The `parent` + * field in each child request message can be omitted. If `parent` is set in a + * child request, then the value must match the `parent` value in this request + * message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the EntityType to create the batch of + * Features under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the EntityType to create the batch of + * Features under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The request message specifying the Features to create. All + * Features must be created under the same parent EntityType. The `parent` + * field in each child request message can be omitted. If `parent` is set in a + * child request, then the value must match the `parent` value in this request + * message. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The request message specifying the Features to create. All + * Features must be created under the same parent EntityType. The `parent` + * field in each child request message can be omitted. If `parent` is set in a + * child request, then the value must match the `parent` value in this request + * message. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.CreateFeatureRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\CreateFeatureRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\CreateFeatureRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateFeaturesResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateFeaturesResponse.php new file mode 100644 index 000000000000..40b52284eaaa --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateFeaturesResponse.php @@ -0,0 +1,68 @@ +google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + */ +class BatchCreateFeaturesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The Features created. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Feature features = 1; + */ + private $features; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\Feature>|\Google\Protobuf\Internal\RepeatedField $features + * The Features created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * The Features created. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Feature features = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFeatures() + { + return $this->features; + } + + /** + * The Features created. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Feature features = 1; + * @param array<\Google\Cloud\AIPlatform\V1\Feature>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFeatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\Feature::class); + $this->features = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardRunsRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardRunsRequest.php new file mode 100644 index 000000000000..ea8f9e456276 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardRunsRequest.php @@ -0,0 +1,143 @@ +google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest + */ +class BatchCreateTensorboardRunsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardRuns in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * The parent field in the CreateTensorboardRunRequest messages must match + * this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The request message specifying the TensorboardRuns to create. + * A maximum of 1000 TensorboardRuns can be created in a batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.CreateTensorboardRunRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource name of the TensorboardExperiment to create the + * TensorboardRuns in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * The parent field in the CreateTensorboardRunRequest messages must match + * this field. Please see + * {@see TensorboardServiceClient::tensorboardExperimentName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\CreateTensorboardRunRequest[] $requests Required. The request message specifying the TensorboardRuns to create. + * A maximum of 1000 TensorboardRuns can be created in a batch. + * + * @return \Google\Cloud\AIPlatform\V1\BatchCreateTensorboardRunsRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardRuns in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * The parent field in the CreateTensorboardRunRequest messages must match + * this field. + * @type array<\Google\Cloud\AIPlatform\V1\CreateTensorboardRunRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The request message specifying the TensorboardRuns to create. + * A maximum of 1000 TensorboardRuns can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardRuns in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * The parent field in the CreateTensorboardRunRequest messages must match + * this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardRuns in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * The parent field in the CreateTensorboardRunRequest messages must match + * this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The request message specifying the TensorboardRuns to create. + * A maximum of 1000 TensorboardRuns can be created in a batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.CreateTensorboardRunRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The request message specifying the TensorboardRuns to create. + * A maximum of 1000 TensorboardRuns can be created in a batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.CreateTensorboardRunRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\CreateTensorboardRunRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\CreateTensorboardRunRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardRunsResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardRunsResponse.php new file mode 100644 index 000000000000..e64e2efcc831 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardRunsResponse.php @@ -0,0 +1,68 @@ +google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse + */ +class BatchCreateTensorboardRunsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The created TensorboardRuns. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TensorboardRun tensorboard_runs = 1; + */ + private $tensorboard_runs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\TensorboardRun>|\Google\Protobuf\Internal\RepeatedField $tensorboard_runs + * The created TensorboardRuns. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * The created TensorboardRuns. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TensorboardRun tensorboard_runs = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTensorboardRuns() + { + return $this->tensorboard_runs; + } + + /** + * The created TensorboardRuns. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TensorboardRun tensorboard_runs = 1; + * @param array<\Google\Cloud\AIPlatform\V1\TensorboardRun>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTensorboardRuns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\TensorboardRun::class); + $this->tensorboard_runs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardTimeSeriesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardTimeSeriesRequest.php new file mode 100644 index 000000000000..4a4baef7fbe0 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardTimeSeriesRequest.php @@ -0,0 +1,153 @@ +google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest + */ +class BatchCreateTensorboardTimeSeriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardTimeSeries in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * The TensorboardRuns referenced by the parent fields in the + * CreateTensorboardTimeSeriesRequest messages must be sub resources of this + * TensorboardExperiment. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The request message specifying the TensorboardTimeSeries to + * create. A maximum of 1000 TensorboardTimeSeries can be created in a batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The resource name of the TensorboardExperiment to create the + * TensorboardTimeSeries in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * The TensorboardRuns referenced by the parent fields in the + * CreateTensorboardTimeSeriesRequest messages must be sub resources of this + * TensorboardExperiment. Please see + * {@see TensorboardServiceClient::tensorboardExperimentName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\CreateTensorboardTimeSeriesRequest[] $requests Required. The request message specifying the TensorboardTimeSeries to + * create. A maximum of 1000 TensorboardTimeSeries can be created in a batch. + * + * @return \Google\Cloud\AIPlatform\V1\BatchCreateTensorboardTimeSeriesRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardTimeSeries in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * The TensorboardRuns referenced by the parent fields in the + * CreateTensorboardTimeSeriesRequest messages must be sub resources of this + * TensorboardExperiment. + * @type array<\Google\Cloud\AIPlatform\V1\CreateTensorboardTimeSeriesRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The request message specifying the TensorboardTimeSeries to + * create. A maximum of 1000 TensorboardTimeSeries can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardTimeSeries in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * The TensorboardRuns referenced by the parent fields in the + * CreateTensorboardTimeSeriesRequest messages must be sub resources of this + * TensorboardExperiment. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardTimeSeries in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * The TensorboardRuns referenced by the parent fields in the + * CreateTensorboardTimeSeriesRequest messages must be sub resources of this + * TensorboardExperiment. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The request message specifying the TensorboardTimeSeries to + * create. A maximum of 1000 TensorboardTimeSeries can be created in a batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The request message specifying the TensorboardTimeSeries to + * create. A maximum of 1000 TensorboardTimeSeries can be created in a batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\CreateTensorboardTimeSeriesRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\CreateTensorboardTimeSeriesRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardTimeSeriesResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardTimeSeriesResponse.php new file mode 100644 index 000000000000..d2a57f05f843 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchCreateTensorboardTimeSeriesResponse.php @@ -0,0 +1,68 @@ +google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse + */ +class BatchCreateTensorboardTimeSeriesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The created TensorboardTimeSeries. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TensorboardTimeSeries tensorboard_time_series = 1; + */ + private $tensorboard_time_series; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\TensorboardTimeSeries>|\Google\Protobuf\Internal\RepeatedField $tensorboard_time_series + * The created TensorboardTimeSeries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * The created TensorboardTimeSeries. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TensorboardTimeSeries tensorboard_time_series = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTensorboardTimeSeries() + { + return $this->tensorboard_time_series; + } + + /** + * The created TensorboardTimeSeries. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TensorboardTimeSeries tensorboard_time_series = 1; + * @param array<\Google\Cloud\AIPlatform\V1\TensorboardTimeSeries>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTensorboardTimeSeries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\TensorboardTimeSeries::class); + $this->tensorboard_time_series = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchDedicatedResources.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchDedicatedResources.php new file mode 100644 index 000000000000..ba3d80f6f880 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchDedicatedResources.php @@ -0,0 +1,158 @@ +google.cloud.aiplatform.v1.BatchDedicatedResources + */ +class BatchDedicatedResources extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. The specification of a single machine. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $machine_spec = null; + /** + * Immutable. The number of machine replicas used at the start of the batch + * operation. If not set, Vertex AI decides starting number, not greater than + * [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count] + * + * Generated from protobuf field int32 starting_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $starting_replica_count = 0; + /** + * Immutable. The maximum number of machine replicas the batch operation may + * be scaled to. The default value is 10. + * + * Generated from protobuf field int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $max_replica_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\MachineSpec $machine_spec + * Required. Immutable. The specification of a single machine. + * @type int $starting_replica_count + * Immutable. The number of machine replicas used at the start of the batch + * operation. If not set, Vertex AI decides starting number, not greater than + * [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count] + * @type int $max_replica_count + * Immutable. The maximum number of machine replicas the batch operation may + * be scaled to. The default value is 10. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MachineResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. The specification of a single machine. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\AIPlatform\V1\MachineSpec|null + */ + public function getMachineSpec() + { + return $this->machine_spec; + } + + public function hasMachineSpec() + { + return isset($this->machine_spec); + } + + public function clearMachineSpec() + { + unset($this->machine_spec); + } + + /** + * Required. Immutable. The specification of a single machine. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\AIPlatform\V1\MachineSpec $var + * @return $this + */ + public function setMachineSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\MachineSpec::class); + $this->machine_spec = $var; + + return $this; + } + + /** + * Immutable. The number of machine replicas used at the start of the batch + * operation. If not set, Vertex AI decides starting number, not greater than + * [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count] + * + * Generated from protobuf field int32 starting_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getStartingReplicaCount() + { + return $this->starting_replica_count; + } + + /** + * Immutable. The number of machine replicas used at the start of the batch + * operation. If not set, Vertex AI decides starting number, not greater than + * [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count] + * + * Generated from protobuf field int32 starting_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setStartingReplicaCount($var) + { + GPBUtil::checkInt32($var); + $this->starting_replica_count = $var; + + return $this; + } + + /** + * Immutable. The maximum number of machine replicas the batch operation may + * be scaled to. The default value is 10. + * + * Generated from protobuf field int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getMaxReplicaCount() + { + return $this->max_replica_count; + } + + /** + * Immutable. The maximum number of machine replicas the batch operation may + * be scaled to. The default value is 10. + * + * Generated from protobuf field int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setMaxReplicaCount($var) + { + GPBUtil::checkInt32($var); + $this->max_replica_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportEvaluatedAnnotationsRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportEvaluatedAnnotationsRequest.php new file mode 100644 index 000000000000..e300b7710e16 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportEvaluatedAnnotationsRequest.php @@ -0,0 +1,128 @@ +google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest + */ +class BatchImportEvaluatedAnnotationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parent ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Evaluated annotations resource to be imported. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.EvaluatedAnnotation evaluated_annotations = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $evaluated_annotations; + + /** + * @param string $parent Required. The name of the parent ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * Please see {@see ModelServiceClient::modelEvaluationSliceName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\EvaluatedAnnotation[] $evaluatedAnnotations Required. Evaluated annotations resource to be imported. + * + * @return \Google\Cloud\AIPlatform\V1\BatchImportEvaluatedAnnotationsRequest + * + * @experimental + */ + public static function build(string $parent, array $evaluatedAnnotations): self + { + return (new self()) + ->setParent($parent) + ->setEvaluatedAnnotations($evaluatedAnnotations); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the parent ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * @type array<\Google\Cloud\AIPlatform\V1\EvaluatedAnnotation>|\Google\Protobuf\Internal\RepeatedField $evaluated_annotations + * Required. Evaluated annotations resource to be imported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parent ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the parent ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Evaluated annotations resource to be imported. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.EvaluatedAnnotation evaluated_annotations = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEvaluatedAnnotations() + { + return $this->evaluated_annotations; + } + + /** + * Required. Evaluated annotations resource to be imported. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.EvaluatedAnnotation evaluated_annotations = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\EvaluatedAnnotation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEvaluatedAnnotations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\EvaluatedAnnotation::class); + $this->evaluated_annotations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportEvaluatedAnnotationsResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportEvaluatedAnnotationsResponse.php new file mode 100644 index 000000000000..b38ba54de607 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportEvaluatedAnnotationsResponse.php @@ -0,0 +1,68 @@ +google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse + */ +class BatchImportEvaluatedAnnotationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Number of EvaluatedAnnotations imported. + * + * Generated from protobuf field int32 imported_evaluated_annotations_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $imported_evaluated_annotations_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $imported_evaluated_annotations_count + * Output only. Number of EvaluatedAnnotations imported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Number of EvaluatedAnnotations imported. + * + * Generated from protobuf field int32 imported_evaluated_annotations_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getImportedEvaluatedAnnotationsCount() + { + return $this->imported_evaluated_annotations_count; + } + + /** + * Output only. Number of EvaluatedAnnotations imported. + * + * Generated from protobuf field int32 imported_evaluated_annotations_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setImportedEvaluatedAnnotationsCount($var) + { + GPBUtil::checkInt32($var); + $this->imported_evaluated_annotations_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportModelEvaluationSlicesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportModelEvaluationSlicesRequest.php new file mode 100644 index 000000000000..a9498d04017e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportModelEvaluationSlicesRequest.php @@ -0,0 +1,128 @@ +google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + */ +class BatchImportModelEvaluationSlicesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parent ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Model evaluation slice resource to be imported. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ModelEvaluationSlice model_evaluation_slices = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $model_evaluation_slices; + + /** + * @param string $parent Required. The name of the parent ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * Please see {@see ModelServiceClient::modelEvaluationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\ModelEvaluationSlice[] $modelEvaluationSlices Required. Model evaluation slice resource to be imported. + * + * @return \Google\Cloud\AIPlatform\V1\BatchImportModelEvaluationSlicesRequest + * + * @experimental + */ + public static function build(string $parent, array $modelEvaluationSlices): self + { + return (new self()) + ->setParent($parent) + ->setModelEvaluationSlices($modelEvaluationSlices); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the parent ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @type array<\Google\Cloud\AIPlatform\V1\ModelEvaluationSlice>|\Google\Protobuf\Internal\RepeatedField $model_evaluation_slices + * Required. Model evaluation slice resource to be imported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parent ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the parent ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Model evaluation slice resource to be imported. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ModelEvaluationSlice model_evaluation_slices = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getModelEvaluationSlices() + { + return $this->model_evaluation_slices; + } + + /** + * Required. Model evaluation slice resource to be imported. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ModelEvaluationSlice model_evaluation_slices = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\ModelEvaluationSlice>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setModelEvaluationSlices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ModelEvaluationSlice::class); + $this->model_evaluation_slices = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportModelEvaluationSlicesResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportModelEvaluationSlicesResponse.php new file mode 100644 index 000000000000..89b2bd171381 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchImportModelEvaluationSlicesResponse.php @@ -0,0 +1,72 @@ +google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + */ +class BatchImportModelEvaluationSlicesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. List of imported + * [ModelEvaluationSlice.name][google.cloud.aiplatform.v1.ModelEvaluationSlice.name]. + * + * Generated from protobuf field repeated string imported_model_evaluation_slices = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $imported_model_evaluation_slices; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $imported_model_evaluation_slices + * Output only. List of imported + * [ModelEvaluationSlice.name][google.cloud.aiplatform.v1.ModelEvaluationSlice.name]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. List of imported + * [ModelEvaluationSlice.name][google.cloud.aiplatform.v1.ModelEvaluationSlice.name]. + * + * Generated from protobuf field repeated string imported_model_evaluation_slices = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getImportedModelEvaluationSlices() + { + return $this->imported_model_evaluation_slices; + } + + /** + * Output only. List of imported + * [ModelEvaluationSlice.name][google.cloud.aiplatform.v1.ModelEvaluationSlice.name]. + * + * Generated from protobuf field repeated string imported_model_evaluation_slices = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setImportedModelEvaluationSlices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->imported_model_evaluation_slices = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesOperationMetadata.php new file mode 100644 index 000000000000..c0566f257330 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesOperationMetadata.php @@ -0,0 +1,112 @@ +google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + */ +class BatchMigrateResourcesOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + /** + * Partial results that reflect the latest migration operation progress. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult partial_results = 2; + */ + private $partial_results; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The common part of the operation metadata. + * @type array<\Google\Cloud\AIPlatform\V1\BatchMigrateResourcesOperationMetadata\PartialResult>|\Google\Protobuf\Internal\RepeatedField $partial_results + * Partial results that reflect the latest migration operation progress. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + + /** + * Partial results that reflect the latest migration operation progress. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult partial_results = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartialResults() + { + return $this->partial_results; + } + + /** + * Partial results that reflect the latest migration operation progress. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult partial_results = 2; + * @param array<\Google\Cloud\AIPlatform\V1\BatchMigrateResourcesOperationMetadata\PartialResult>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartialResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\BatchMigrateResourcesOperationMetadata\PartialResult::class); + $this->partial_results = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesOperationMetadata/PartialResult.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesOperationMetadata/PartialResult.php new file mode 100644 index 000000000000..8d97896ba5d2 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesOperationMetadata/PartialResult.php @@ -0,0 +1,193 @@ +google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + */ +class PartialResult extends \Google\Protobuf\Internal\Message +{ + /** + * It's the same as the value in + * [MigrateResourceRequest.migrate_resource_requests][]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MigrateResourceRequest request = 1; + */ + protected $request = null; + protected $result; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\Status $error + * The error result of the migration request in case of failure. + * @type string $model + * Migrated model resource name. + * @type string $dataset + * Migrated dataset resource name. + * @type \Google\Cloud\AIPlatform\V1\MigrateResourceRequest $request + * It's the same as the value in + * [MigrateResourceRequest.migrate_resource_requests][]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * The error result of the migration request in case of failure. + * + * Generated from protobuf field .google.rpc.Status error = 2; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->readOneof(2); + } + + public function hasError() + { + return $this->hasOneof(2); + } + + /** + * The error result of the migration request in case of failure. + * + * Generated from protobuf field .google.rpc.Status error = 2; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Migrated model resource name. + * + * Generated from protobuf field string model = 3 [(.google.api.resource_reference) = { + * @return string + */ + public function getModel() + { + return $this->readOneof(3); + } + + public function hasModel() + { + return $this->hasOneof(3); + } + + /** + * Migrated model resource name. + * + * Generated from protobuf field string model = 3 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Migrated dataset resource name. + * + * Generated from protobuf field string dataset = 4 [(.google.api.resource_reference) = { + * @return string + */ + public function getDataset() + { + return $this->readOneof(4); + } + + public function hasDataset() + { + return $this->hasOneof(4); + } + + /** + * Migrated dataset resource name. + * + * Generated from protobuf field string dataset = 4 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDataset($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * It's the same as the value in + * [MigrateResourceRequest.migrate_resource_requests][]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MigrateResourceRequest request = 1; + * @return \Google\Cloud\AIPlatform\V1\MigrateResourceRequest|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * It's the same as the value in + * [MigrateResourceRequest.migrate_resource_requests][]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MigrateResourceRequest request = 1; + * @param \Google\Cloud\AIPlatform\V1\MigrateResourceRequest $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\MigrateResourceRequest::class); + $this->request = $var; + + return $this; + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PartialResult::class, \Google\Cloud\AIPlatform\V1\BatchMigrateResourcesOperationMetadata_PartialResult::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesRequest.php new file mode 100644 index 000000000000..c58534bdd59d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + */ +class BatchMigrateResourcesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location of the migrated resource will live in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The request messages specifying the resources to migrate. + * They must be in the same location as the destination. + * Up to 50 resources can be migrated in one batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $migrate_resource_requests; + + /** + * @param string $parent Required. The location of the migrated resource will live in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see MigrationServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\MigrateResourceRequest[] $migrateResourceRequests Required. The request messages specifying the resources to migrate. + * They must be in the same location as the destination. + * Up to 50 resources can be migrated in one batch. + * + * @return \Google\Cloud\AIPlatform\V1\BatchMigrateResourcesRequest + * + * @experimental + */ + public static function build(string $parent, array $migrateResourceRequests): self + { + return (new self()) + ->setParent($parent) + ->setMigrateResourceRequests($migrateResourceRequests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The location of the migrated resource will live in. + * Format: `projects/{project}/locations/{location}` + * @type array<\Google\Cloud\AIPlatform\V1\MigrateResourceRequest>|\Google\Protobuf\Internal\RepeatedField $migrate_resource_requests + * Required. The request messages specifying the resources to migrate. + * They must be in the same location as the destination. + * Up to 50 resources can be migrated in one batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location of the migrated resource will live in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The location of the migrated resource will live in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The request messages specifying the resources to migrate. + * They must be in the same location as the destination. + * Up to 50 resources can be migrated in one batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMigrateResourceRequests() + { + return $this->migrate_resource_requests; + } + + /** + * Required. The request messages specifying the resources to migrate. + * They must be in the same location as the destination. + * Up to 50 resources can be migrated in one batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.MigrateResourceRequest migrate_resource_requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\MigrateResourceRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMigrateResourceRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\MigrateResourceRequest::class); + $this->migrate_resource_requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesResponse.php new file mode 100644 index 000000000000..ec0fd4640b53 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchMigrateResourcesResponse.php @@ -0,0 +1,68 @@ +google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + */ +class BatchMigrateResourcesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Successfully migrated resources. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.MigrateResourceResponse migrate_resource_responses = 1; + */ + private $migrate_resource_responses; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\MigrateResourceResponse>|\Google\Protobuf\Internal\RepeatedField $migrate_resource_responses + * Successfully migrated resources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * Successfully migrated resources. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.MigrateResourceResponse migrate_resource_responses = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMigrateResourceResponses() + { + return $this->migrate_resource_responses; + } + + /** + * Successfully migrated resources. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.MigrateResourceResponse migrate_resource_responses = 1; + * @param array<\Google\Cloud\AIPlatform\V1\MigrateResourceResponse>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMigrateResourceResponses($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\MigrateResourceResponse::class); + $this->migrate_resource_responses = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob.php new file mode 100644 index 000000000000..3c43ceb23356 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob.php @@ -0,0 +1,1510 @@ +google.cloud.aiplatform.v1.BatchPredictionJob + */ +class BatchPredictionJob extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the BatchPredictionJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The user-defined name of this BatchPredictionJob. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * The name of the Model resource that produces the predictions via this job, + * must share the same ancestor Location. + * Starting this job has no impact on any existing deployments of the Model + * and their resources. + * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * if no version is specified, the default version will be deployed. + * The model resource could also be a publisher model. + * Example: `publishers/{publisher}/models/{model}` + * or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * + * Generated from protobuf field string model = 3 [(.google.api.resource_reference) = { + */ + protected $model = ''; + /** + * Output only. The version ID of the Model that produces the predictions via + * this job. + * + * Generated from protobuf field string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $model_version_id = ''; + /** + * Contains model information necessary to perform batch prediction without + * requiring uploading to model registry. + * Exactly one of model and unmanaged_container_model must be set. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.UnmanagedContainerModel unmanaged_container_model = 28; + */ + protected $unmanaged_container_model = null; + /** + * Required. Input configuration of the instances on which predictions are + * performed. The schema of any single instance may be specified via the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $input_config = null; + /** + * Configuration for how to convert batch prediction input instances to the + * prediction instances that are sent to the Model. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig instance_config = 27; + */ + protected $instance_config = null; + /** + * The parameters that govern the predictions. The schema of the parameters + * may be specified via the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value model_parameters = 5; + */ + protected $model_parameters = null; + /** + * Required. The Configuration specifying where output predictions should + * be written. + * The schema of any single prediction may be specified as a concatenation + * of [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + * and + * [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $output_config = null; + /** + * The config of resources used by the Model during the batch prediction. If + * the Model + * [supports][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types] + * DEDICATED_RESOURCES this config may be provided (and the job will use these + * resources), if the Model doesn't support AUTOMATIC_RESOURCES, this config + * must be provided. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchDedicatedResources dedicated_resources = 7; + */ + protected $dedicated_resources = null; + /** + * The service account that the DeployedModel's container runs as. If not + * specified, a system generated one will be used, which + * has minimal permissions and the custom container, if used, may not have + * enough permission to access other Google Cloud resources. + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * + * Generated from protobuf field string service_account = 29; + */ + protected $service_account = ''; + /** + * Immutable. Parameters configuring the batch behavior. Currently only + * applicable when + * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] + * are used (in other cases Vertex AI does the tuning itself). + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ManualBatchTuningParameters manual_batch_tuning_parameters = 8 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $manual_batch_tuning_parameters = null; + /** + * Generate explanation with the batch prediction results. + * When set to `true`, the batch prediction output changes based on the + * `predictions_format` field of the + * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config] + * object: + * * `bigquery`: output includes a column named `explanation`. The value + * is a struct that conforms to the + * [Explanation][google.cloud.aiplatform.v1.Explanation] object. + * * `jsonl`: The JSON objects on each line include an additional entry + * keyed `explanation`. The value of the entry is a JSON object that + * conforms to the [Explanation][google.cloud.aiplatform.v1.Explanation] + * object. + * * `csv`: Generating explanations for CSV format is not supported. + * If this field is set to true, either the + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * or + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * must be populated. + * + * Generated from protobuf field bool generate_explanation = 23; + */ + protected $generate_explanation = false; + /** + * Explanation configuration for this BatchPredictionJob. Can be + * specified only if + * [generate_explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation] + * is set to `true`. + * This value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * are optional in the request. If a field of the + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * object is not populated, the corresponding field of the + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * object is inherited. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 25; + */ + protected $explanation_spec = null; + /** + * Output only. Information further describing the output of this job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo output_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $output_info = null; + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Only populated when the job's state is JOB_STATE_FAILED or + * JOB_STATE_CANCELLED. + * + * Generated from protobuf field .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error = null; + /** + * Output only. Partial failures encountered. + * For example, single files that can't be read. + * This field never exceeds 20 entries. + * Status details fields contain standard Google Cloud error details. + * + * Generated from protobuf field repeated .google.rpc.Status partial_failures = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $partial_failures; + /** + * Output only. Information about resources that had been consumed by this + * job. Provided in real time at best effort basis, as well as a final value + * once the job completes. + * Note: This field currently may be not populated for batch predictions that + * use AutoML Models. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ResourcesConsumed resources_consumed = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resources_consumed = null; + /** + * Output only. Statistics on completed and failed prediction instances. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CompletionStats completion_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $completion_stats = null; + /** + * Output only. Time when the BatchPredictionJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when the BatchPredictionJob for the first time entered + * the `JOB_STATE_RUNNING` state. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. Time when the BatchPredictionJob entered any of the following + * states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Time when the BatchPredictionJob was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * The labels with user-defined metadata to organize BatchPredictionJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 19; + */ + private $labels; + /** + * Customer-managed encryption key options for a BatchPredictionJob. If this + * is set, then all resources created by the BatchPredictionJob will be + * encrypted with the provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 24; + */ + protected $encryption_spec = null; + /** + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * User can disable container logging by setting this flag to true. + * + * Generated from protobuf field bool disable_container_logging = 34; + */ + protected $disable_container_logging = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the BatchPredictionJob. + * @type string $display_name + * Required. The user-defined name of this BatchPredictionJob. + * @type string $model + * The name of the Model resource that produces the predictions via this job, + * must share the same ancestor Location. + * Starting this job has no impact on any existing deployments of the Model + * and their resources. + * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * if no version is specified, the default version will be deployed. + * The model resource could also be a publisher model. + * Example: `publishers/{publisher}/models/{model}` + * or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @type string $model_version_id + * Output only. The version ID of the Model that produces the predictions via + * this job. + * @type \Google\Cloud\AIPlatform\V1\UnmanagedContainerModel $unmanaged_container_model + * Contains model information necessary to perform batch prediction without + * requiring uploading to model registry. + * Exactly one of model and unmanaged_container_model must be set. + * @type \Google\Cloud\AIPlatform\V1\BatchPredictionJob\InputConfig $input_config + * Required. Input configuration of the instances on which predictions are + * performed. The schema of any single instance may be specified via the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * @type \Google\Cloud\AIPlatform\V1\BatchPredictionJob\InstanceConfig $instance_config + * Configuration for how to convert batch prediction input instances to the + * prediction instances that are sent to the Model. + * @type \Google\Protobuf\Value $model_parameters + * The parameters that govern the predictions. The schema of the parameters + * may be specified via the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + * @type \Google\Cloud\AIPlatform\V1\BatchPredictionJob\OutputConfig $output_config + * Required. The Configuration specifying where output predictions should + * be written. + * The schema of any single prediction may be specified as a concatenation + * of [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + * and + * [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri]. + * @type \Google\Cloud\AIPlatform\V1\BatchDedicatedResources $dedicated_resources + * The config of resources used by the Model during the batch prediction. If + * the Model + * [supports][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types] + * DEDICATED_RESOURCES this config may be provided (and the job will use these + * resources), if the Model doesn't support AUTOMATIC_RESOURCES, this config + * must be provided. + * @type string $service_account + * The service account that the DeployedModel's container runs as. If not + * specified, a system generated one will be used, which + * has minimal permissions and the custom container, if used, may not have + * enough permission to access other Google Cloud resources. + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * @type \Google\Cloud\AIPlatform\V1\ManualBatchTuningParameters $manual_batch_tuning_parameters + * Immutable. Parameters configuring the batch behavior. Currently only + * applicable when + * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] + * are used (in other cases Vertex AI does the tuning itself). + * @type bool $generate_explanation + * Generate explanation with the batch prediction results. + * When set to `true`, the batch prediction output changes based on the + * `predictions_format` field of the + * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config] + * object: + * * `bigquery`: output includes a column named `explanation`. The value + * is a struct that conforms to the + * [Explanation][google.cloud.aiplatform.v1.Explanation] object. + * * `jsonl`: The JSON objects on each line include an additional entry + * keyed `explanation`. The value of the entry is a JSON object that + * conforms to the [Explanation][google.cloud.aiplatform.v1.Explanation] + * object. + * * `csv`: Generating explanations for CSV format is not supported. + * If this field is set to true, either the + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * or + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * must be populated. + * @type \Google\Cloud\AIPlatform\V1\ExplanationSpec $explanation_spec + * Explanation configuration for this BatchPredictionJob. Can be + * specified only if + * [generate_explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation] + * is set to `true`. + * This value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * are optional in the request. If a field of the + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * object is not populated, the corresponding field of the + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * object is inherited. + * @type \Google\Cloud\AIPlatform\V1\BatchPredictionJob\OutputInfo $output_info + * Output only. Information further describing the output of this job. + * @type int $state + * Output only. The detailed state of the job. + * @type \Google\Rpc\Status $error + * Output only. Only populated when the job's state is JOB_STATE_FAILED or + * JOB_STATE_CANCELLED. + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_failures + * Output only. Partial failures encountered. + * For example, single files that can't be read. + * This field never exceeds 20 entries. + * Status details fields contain standard Google Cloud error details. + * @type \Google\Cloud\AIPlatform\V1\ResourcesConsumed $resources_consumed + * Output only. Information about resources that had been consumed by this + * job. Provided in real time at best effort basis, as well as a final value + * once the job completes. + * Note: This field currently may be not populated for batch predictions that + * use AutoML Models. + * @type \Google\Cloud\AIPlatform\V1\CompletionStats $completion_stats + * Output only. Statistics on completed and failed prediction instances. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the BatchPredictionJob was created. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. Time when the BatchPredictionJob for the first time entered + * the `JOB_STATE_RUNNING` state. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. Time when the BatchPredictionJob entered any of the following + * states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when the BatchPredictionJob was most recently updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize BatchPredictionJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec + * Customer-managed encryption key options for a BatchPredictionJob. If this + * is set, then all resources created by the BatchPredictionJob will be + * encrypted with the provided encryption key. + * @type bool $disable_container_logging + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * User can disable container logging by setting this flag to true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\BatchPredictionJob::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the BatchPredictionJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of the BatchPredictionJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The user-defined name of this BatchPredictionJob. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The user-defined name of this BatchPredictionJob. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The name of the Model resource that produces the predictions via this job, + * must share the same ancestor Location. + * Starting this job has no impact on any existing deployments of the Model + * and their resources. + * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * if no version is specified, the default version will be deployed. + * The model resource could also be a publisher model. + * Example: `publishers/{publisher}/models/{model}` + * or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * + * Generated from protobuf field string model = 3 [(.google.api.resource_reference) = { + * @return string + */ + public function getModel() + { + return $this->model; + } + + /** + * The name of the Model resource that produces the predictions via this job, + * must share the same ancestor Location. + * Starting this job has no impact on any existing deployments of the Model + * and their resources. + * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * if no version is specified, the default version will be deployed. + * The model resource could also be a publisher model. + * Example: `publishers/{publisher}/models/{model}` + * or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * + * Generated from protobuf field string model = 3 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkString($var, True); + $this->model = $var; + + return $this; + } + + /** + * Output only. The version ID of the Model that produces the predictions via + * this job. + * + * Generated from protobuf field string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getModelVersionId() + { + return $this->model_version_id; + } + + /** + * Output only. The version ID of the Model that produces the predictions via + * this job. + * + * Generated from protobuf field string model_version_id = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setModelVersionId($var) + { + GPBUtil::checkString($var, True); + $this->model_version_id = $var; + + return $this; + } + + /** + * Contains model information necessary to perform batch prediction without + * requiring uploading to model registry. + * Exactly one of model and unmanaged_container_model must be set. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.UnmanagedContainerModel unmanaged_container_model = 28; + * @return \Google\Cloud\AIPlatform\V1\UnmanagedContainerModel|null + */ + public function getUnmanagedContainerModel() + { + return $this->unmanaged_container_model; + } + + public function hasUnmanagedContainerModel() + { + return isset($this->unmanaged_container_model); + } + + public function clearUnmanagedContainerModel() + { + unset($this->unmanaged_container_model); + } + + /** + * Contains model information necessary to perform batch prediction without + * requiring uploading to model registry. + * Exactly one of model and unmanaged_container_model must be set. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.UnmanagedContainerModel unmanaged_container_model = 28; + * @param \Google\Cloud\AIPlatform\V1\UnmanagedContainerModel $var + * @return $this + */ + public function setUnmanagedContainerModel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\UnmanagedContainerModel::class); + $this->unmanaged_container_model = $var; + + return $this; + } + + /** + * Required. Input configuration of the instances on which predictions are + * performed. The schema of any single instance may be specified via the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\BatchPredictionJob\InputConfig|null + */ + public function getInputConfig() + { + return $this->input_config; + } + + public function hasInputConfig() + { + return isset($this->input_config); + } + + public function clearInputConfig() + { + unset($this->input_config); + } + + /** + * Required. Input configuration of the instances on which predictions are + * performed. The schema of any single instance may be specified via the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig input_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\BatchPredictionJob\InputConfig $var + * @return $this + */ + public function setInputConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BatchPredictionJob\InputConfig::class); + $this->input_config = $var; + + return $this; + } + + /** + * Configuration for how to convert batch prediction input instances to the + * prediction instances that are sent to the Model. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig instance_config = 27; + * @return \Google\Cloud\AIPlatform\V1\BatchPredictionJob\InstanceConfig|null + */ + public function getInstanceConfig() + { + return $this->instance_config; + } + + public function hasInstanceConfig() + { + return isset($this->instance_config); + } + + public function clearInstanceConfig() + { + unset($this->instance_config); + } + + /** + * Configuration for how to convert batch prediction input instances to the + * prediction instances that are sent to the Model. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig instance_config = 27; + * @param \Google\Cloud\AIPlatform\V1\BatchPredictionJob\InstanceConfig $var + * @return $this + */ + public function setInstanceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BatchPredictionJob\InstanceConfig::class); + $this->instance_config = $var; + + return $this; + } + + /** + * The parameters that govern the predictions. The schema of the parameters + * may be specified via the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value model_parameters = 5; + * @return \Google\Protobuf\Value|null + */ + public function getModelParameters() + { + return $this->model_parameters; + } + + public function hasModelParameters() + { + return isset($this->model_parameters); + } + + public function clearModelParameters() + { + unset($this->model_parameters); + } + + /** + * The parameters that govern the predictions. The schema of the parameters + * may be specified via the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value model_parameters = 5; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setModelParameters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->model_parameters = $var; + + return $this; + } + + /** + * Required. The Configuration specifying where output predictions should + * be written. + * The schema of any single prediction may be specified as a concatenation + * of [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + * and + * [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\BatchPredictionJob\OutputConfig|null + */ + public function getOutputConfig() + { + return $this->output_config; + } + + public function hasOutputConfig() + { + return isset($this->output_config); + } + + public function clearOutputConfig() + { + unset($this->output_config); + } + + /** + * Required. The Configuration specifying where output predictions should + * be written. + * The schema of any single prediction may be specified as a concatenation + * of [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + * and + * [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\BatchPredictionJob\OutputConfig $var + * @return $this + */ + public function setOutputConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BatchPredictionJob\OutputConfig::class); + $this->output_config = $var; + + return $this; + } + + /** + * The config of resources used by the Model during the batch prediction. If + * the Model + * [supports][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types] + * DEDICATED_RESOURCES this config may be provided (and the job will use these + * resources), if the Model doesn't support AUTOMATIC_RESOURCES, this config + * must be provided. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchDedicatedResources dedicated_resources = 7; + * @return \Google\Cloud\AIPlatform\V1\BatchDedicatedResources|null + */ + public function getDedicatedResources() + { + return $this->dedicated_resources; + } + + public function hasDedicatedResources() + { + return isset($this->dedicated_resources); + } + + public function clearDedicatedResources() + { + unset($this->dedicated_resources); + } + + /** + * The config of resources used by the Model during the batch prediction. If + * the Model + * [supports][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types] + * DEDICATED_RESOURCES this config may be provided (and the job will use these + * resources), if the Model doesn't support AUTOMATIC_RESOURCES, this config + * must be provided. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchDedicatedResources dedicated_resources = 7; + * @param \Google\Cloud\AIPlatform\V1\BatchDedicatedResources $var + * @return $this + */ + public function setDedicatedResources($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BatchDedicatedResources::class); + $this->dedicated_resources = $var; + + return $this; + } + + /** + * The service account that the DeployedModel's container runs as. If not + * specified, a system generated one will be used, which + * has minimal permissions and the custom container, if used, may not have + * enough permission to access other Google Cloud resources. + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * + * Generated from protobuf field string service_account = 29; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * The service account that the DeployedModel's container runs as. If not + * specified, a system generated one will be used, which + * has minimal permissions and the custom container, if used, may not have + * enough permission to access other Google Cloud resources. + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * + * Generated from protobuf field string service_account = 29; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Immutable. Parameters configuring the batch behavior. Currently only + * applicable when + * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] + * are used (in other cases Vertex AI does the tuning itself). + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ManualBatchTuningParameters manual_batch_tuning_parameters = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\AIPlatform\V1\ManualBatchTuningParameters|null + */ + public function getManualBatchTuningParameters() + { + return $this->manual_batch_tuning_parameters; + } + + public function hasManualBatchTuningParameters() + { + return isset($this->manual_batch_tuning_parameters); + } + + public function clearManualBatchTuningParameters() + { + unset($this->manual_batch_tuning_parameters); + } + + /** + * Immutable. Parameters configuring the batch behavior. Currently only + * applicable when + * [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] + * are used (in other cases Vertex AI does the tuning itself). + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ManualBatchTuningParameters manual_batch_tuning_parameters = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\AIPlatform\V1\ManualBatchTuningParameters $var + * @return $this + */ + public function setManualBatchTuningParameters($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ManualBatchTuningParameters::class); + $this->manual_batch_tuning_parameters = $var; + + return $this; + } + + /** + * Generate explanation with the batch prediction results. + * When set to `true`, the batch prediction output changes based on the + * `predictions_format` field of the + * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config] + * object: + * * `bigquery`: output includes a column named `explanation`. The value + * is a struct that conforms to the + * [Explanation][google.cloud.aiplatform.v1.Explanation] object. + * * `jsonl`: The JSON objects on each line include an additional entry + * keyed `explanation`. The value of the entry is a JSON object that + * conforms to the [Explanation][google.cloud.aiplatform.v1.Explanation] + * object. + * * `csv`: Generating explanations for CSV format is not supported. + * If this field is set to true, either the + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * or + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * must be populated. + * + * Generated from protobuf field bool generate_explanation = 23; + * @return bool + */ + public function getGenerateExplanation() + { + return $this->generate_explanation; + } + + /** + * Generate explanation with the batch prediction results. + * When set to `true`, the batch prediction output changes based on the + * `predictions_format` field of the + * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config] + * object: + * * `bigquery`: output includes a column named `explanation`. The value + * is a struct that conforms to the + * [Explanation][google.cloud.aiplatform.v1.Explanation] object. + * * `jsonl`: The JSON objects on each line include an additional entry + * keyed `explanation`. The value of the entry is a JSON object that + * conforms to the [Explanation][google.cloud.aiplatform.v1.Explanation] + * object. + * * `csv`: Generating explanations for CSV format is not supported. + * If this field is set to true, either the + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * or + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * must be populated. + * + * Generated from protobuf field bool generate_explanation = 23; + * @param bool $var + * @return $this + */ + public function setGenerateExplanation($var) + { + GPBUtil::checkBool($var); + $this->generate_explanation = $var; + + return $this; + } + + /** + * Explanation configuration for this BatchPredictionJob. Can be + * specified only if + * [generate_explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation] + * is set to `true`. + * This value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * are optional in the request. If a field of the + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * object is not populated, the corresponding field of the + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * object is inherited. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 25; + * @return \Google\Cloud\AIPlatform\V1\ExplanationSpec|null + */ + public function getExplanationSpec() + { + return $this->explanation_spec; + } + + public function hasExplanationSpec() + { + return isset($this->explanation_spec); + } + + public function clearExplanationSpec() + { + unset($this->explanation_spec); + } + + /** + * Explanation configuration for this BatchPredictionJob. Can be + * specified only if + * [generate_explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation] + * is set to `true`. + * This value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * are optional in the request. If a field of the + * [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + * object is not populated, the corresponding field of the + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * object is inherited. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 25; + * @param \Google\Cloud\AIPlatform\V1\ExplanationSpec $var + * @return $this + */ + public function setExplanationSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExplanationSpec::class); + $this->explanation_spec = $var; + + return $this; + } + + /** + * Output only. Information further describing the output of this job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo output_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\AIPlatform\V1\BatchPredictionJob\OutputInfo|null + */ + public function getOutputInfo() + { + return $this->output_info; + } + + public function hasOutputInfo() + { + return isset($this->output_info); + } + + public function clearOutputInfo() + { + unset($this->output_info); + } + + /** + * Output only. Information further describing the output of this job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo output_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\AIPlatform\V1\BatchPredictionJob\OutputInfo $var + * @return $this + */ + public function setOutputInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BatchPredictionJob\OutputInfo::class); + $this->output_info = $var; + + return $this; + } + + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\JobState::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Only populated when the job's state is JOB_STATE_FAILED or + * JOB_STATE_CANCELLED. + * + * Generated from protobuf field .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Output only. Only populated when the job's state is JOB_STATE_FAILED or + * JOB_STATE_CANCELLED. + * + * Generated from protobuf field .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->error = $var; + + return $this; + } + + /** + * Output only. Partial failures encountered. + * For example, single files that can't be read. + * This field never exceeds 20 entries. + * Status details fields contain standard Google Cloud error details. + * + * Generated from protobuf field repeated .google.rpc.Status partial_failures = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartialFailures() + { + return $this->partial_failures; + } + + /** + * Output only. Partial failures encountered. + * For example, single files that can't be read. + * This field never exceeds 20 entries. + * Status details fields contain standard Google Cloud error details. + * + * Generated from protobuf field repeated .google.rpc.Status partial_failures = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartialFailures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->partial_failures = $arr; + + return $this; + } + + /** + * Output only. Information about resources that had been consumed by this + * job. Provided in real time at best effort basis, as well as a final value + * once the job completes. + * Note: This field currently may be not populated for batch predictions that + * use AutoML Models. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ResourcesConsumed resources_consumed = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\AIPlatform\V1\ResourcesConsumed|null + */ + public function getResourcesConsumed() + { + return $this->resources_consumed; + } + + public function hasResourcesConsumed() + { + return isset($this->resources_consumed); + } + + public function clearResourcesConsumed() + { + unset($this->resources_consumed); + } + + /** + * Output only. Information about resources that had been consumed by this + * job. Provided in real time at best effort basis, as well as a final value + * once the job completes. + * Note: This field currently may be not populated for batch predictions that + * use AutoML Models. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ResourcesConsumed resources_consumed = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\AIPlatform\V1\ResourcesConsumed $var + * @return $this + */ + public function setResourcesConsumed($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ResourcesConsumed::class); + $this->resources_consumed = $var; + + return $this; + } + + /** + * Output only. Statistics on completed and failed prediction instances. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CompletionStats completion_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\AIPlatform\V1\CompletionStats|null + */ + public function getCompletionStats() + { + return $this->completion_stats; + } + + public function hasCompletionStats() + { + return isset($this->completion_stats); + } + + public function clearCompletionStats() + { + unset($this->completion_stats); + } + + /** + * Output only. Statistics on completed and failed prediction instances. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CompletionStats completion_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\AIPlatform\V1\CompletionStats $var + * @return $this + */ + public function setCompletionStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CompletionStats::class); + $this->completion_stats = $var; + + return $this; + } + + /** + * Output only. Time when the BatchPredictionJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when the BatchPredictionJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when the BatchPredictionJob for the first time entered + * the `JOB_STATE_RUNNING` state. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Output only. Time when the BatchPredictionJob for the first time entered + * the `JOB_STATE_RUNNING` state. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. Time when the BatchPredictionJob entered any of the following + * states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. Time when the BatchPredictionJob entered any of the following + * states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Time when the BatchPredictionJob was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when the BatchPredictionJob was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize BatchPredictionJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 19; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize BatchPredictionJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 19; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Customer-managed encryption key options for a BatchPredictionJob. If this + * is set, then all resources created by the BatchPredictionJob will be + * encrypted with the provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 24; + * @return \Google\Cloud\AIPlatform\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Customer-managed encryption key options for a BatchPredictionJob. If this + * is set, then all resources created by the BatchPredictionJob will be + * encrypted with the provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 24; + * @param \Google\Cloud\AIPlatform\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + + /** + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * User can disable container logging by setting this flag to true. + * + * Generated from protobuf field bool disable_container_logging = 34; + * @return bool + */ + public function getDisableContainerLogging() + { + return $this->disable_container_logging; + } + + /** + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * User can disable container logging by setting this flag to true. + * + * Generated from protobuf field bool disable_container_logging = 34; + * @param bool $var + * @return $this + */ + public function setDisableContainerLogging($var) + { + GPBUtil::checkBool($var); + $this->disable_container_logging = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/InputConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/InputConfig.php new file mode 100644 index 000000000000..9a5547973e1f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/InputConfig.php @@ -0,0 +1,169 @@ +google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig + */ +class InputConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The format in which instances are given, must be one of the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats]. + * + * Generated from protobuf field string instances_format = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instances_format = ''; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GcsSource $gcs_source + * The Cloud Storage location for the input instances. + * @type \Google\Cloud\AIPlatform\V1\BigQuerySource $bigquery_source + * The BigQuery location of the input table. + * The schema of the table should be in the format described by the given + * context OpenAPI Schema, if one is provided. The table may contain + * additional columns that are not described by the schema, and they will + * be ignored. + * @type string $instances_format + * Required. The format in which instances are given, must be one of the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\BatchPredictionJob::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud Storage location for the input instances. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + * @return \Google\Cloud\AIPlatform\V1\GcsSource|null + */ + public function getGcsSource() + { + return $this->readOneof(2); + } + + public function hasGcsSource() + { + return $this->hasOneof(2); + } + + /** + * The Cloud Storage location for the input instances. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + * @param \Google\Cloud\AIPlatform\V1\GcsSource $var + * @return $this + */ + public function setGcsSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GcsSource::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The BigQuery location of the input table. + * The schema of the table should be in the format described by the given + * context OpenAPI Schema, if one is provided. The table may contain + * additional columns that are not described by the schema, and they will + * be ignored. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3; + * @return \Google\Cloud\AIPlatform\V1\BigQuerySource|null + */ + public function getBigquerySource() + { + return $this->readOneof(3); + } + + public function hasBigquerySource() + { + return $this->hasOneof(3); + } + + /** + * The BigQuery location of the input table. + * The schema of the table should be in the format described by the given + * context OpenAPI Schema, if one is provided. The table may contain + * additional columns that are not described by the schema, and they will + * be ignored. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3; + * @param \Google\Cloud\AIPlatform\V1\BigQuerySource $var + * @return $this + */ + public function setBigquerySource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BigQuerySource::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The format in which instances are given, must be one of the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats]. + * + * Generated from protobuf field string instances_format = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInstancesFormat() + { + return $this->instances_format; + } + + /** + * Required. The format in which instances are given, must be one of the + * [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats]. + * + * Generated from protobuf field string instances_format = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setInstancesFormat($var) + { + GPBUtil::checkString($var, True); + $this->instances_format = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InputConfig::class, \Google\Cloud\AIPlatform\V1\BatchPredictionJob_InputConfig::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/InstanceConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/InstanceConfig.php new file mode 100644 index 000000000000..8a6169ea2385 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/InstanceConfig.php @@ -0,0 +1,445 @@ +google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig + */ +class InstanceConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The format of the instance that the Model accepts. Vertex AI will + * convert compatible + * [batch prediction input instance + * formats][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.instances_format] + * to the specified format. + * Supported values are: + * * `object`: Each input is converted to JSON object format. + * * For `bigquery`, each row is converted to an object. + * * For `jsonl`, each line of the JSONL input must be an object. + * * Does not apply to `csv`, `file-list`, `tf-record`, or + * `tf-record-gzip`. + * * `array`: Each input is converted to JSON array format. + * * For `bigquery`, each row is converted to an array. The order + * of columns is determined by the BigQuery column order, unless + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * is populated. + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be populated for specifying field orders. + * * For `jsonl`, if each line of the JSONL input is an object, + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be populated for specifying field orders. + * * Does not apply to `csv`, `file-list`, `tf-record`, or + * `tf-record-gzip`. + * If not specified, Vertex AI converts the batch prediction input as + * follows: + * * For `bigquery` and `csv`, the behavior is the same as `array`. The + * order of columns is the same as defined in the file or table, unless + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * is populated. + * * For `jsonl`, the prediction instance format is determined by + * each line of the input. + * * For `tf-record`/`tf-record-gzip`, each record will be converted to + * an object in the format of `{"b64": }`, where `` is + * the Base64-encoded string of the content of the record. + * * For `file-list`, each file in the list will be converted to an + * object in the format of `{"b64": }`, where `` is + * the Base64-encoded string of the content of the file. + * + * Generated from protobuf field string instance_type = 1; + */ + protected $instance_type = ''; + /** + * The name of the field that is considered as a key. + * The values identified by the key field is not included in the transformed + * instances that is sent to the Model. This is similar to + * specifying this name of the field in + * [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields]. + * In addition, the batch prediction output will not include the instances. + * Instead the output will only include the value of the key field, in a + * field named `key` in the output: + * * For `jsonl` output format, the output will have a `key` field + * instead of the `instance` field. + * * For `csv`/`bigquery` output format, the output will have have a `key` + * column instead of the instance feature columns. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * + * Generated from protobuf field string key_field = 2; + */ + protected $key_field = ''; + /** + * Fields that will be included in the prediction instance that is + * sent to the Model. + * If + * [instance_type][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.instance_type] + * is `array`, the order of field names in included_fields also determines + * the order of the values in the array. + * When included_fields is populated, + * [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields] + * must be empty. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * + * Generated from protobuf field repeated string included_fields = 3; + */ + private $included_fields; + /** + * Fields that will be excluded in the prediction instance that is + * sent to the Model. + * Excluded will be attached to the batch prediction output if + * [key_field][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.key_field] + * is not specified. + * When excluded_fields is populated, + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be empty. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * + * Generated from protobuf field repeated string excluded_fields = 4; + */ + private $excluded_fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $instance_type + * The format of the instance that the Model accepts. Vertex AI will + * convert compatible + * [batch prediction input instance + * formats][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.instances_format] + * to the specified format. + * Supported values are: + * * `object`: Each input is converted to JSON object format. + * * For `bigquery`, each row is converted to an object. + * * For `jsonl`, each line of the JSONL input must be an object. + * * Does not apply to `csv`, `file-list`, `tf-record`, or + * `tf-record-gzip`. + * * `array`: Each input is converted to JSON array format. + * * For `bigquery`, each row is converted to an array. The order + * of columns is determined by the BigQuery column order, unless + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * is populated. + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be populated for specifying field orders. + * * For `jsonl`, if each line of the JSONL input is an object, + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be populated for specifying field orders. + * * Does not apply to `csv`, `file-list`, `tf-record`, or + * `tf-record-gzip`. + * If not specified, Vertex AI converts the batch prediction input as + * follows: + * * For `bigquery` and `csv`, the behavior is the same as `array`. The + * order of columns is the same as defined in the file or table, unless + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * is populated. + * * For `jsonl`, the prediction instance format is determined by + * each line of the input. + * * For `tf-record`/`tf-record-gzip`, each record will be converted to + * an object in the format of `{"b64": }`, where `` is + * the Base64-encoded string of the content of the record. + * * For `file-list`, each file in the list will be converted to an + * object in the format of `{"b64": }`, where `` is + * the Base64-encoded string of the content of the file. + * @type string $key_field + * The name of the field that is considered as a key. + * The values identified by the key field is not included in the transformed + * instances that is sent to the Model. This is similar to + * specifying this name of the field in + * [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields]. + * In addition, the batch prediction output will not include the instances. + * Instead the output will only include the value of the key field, in a + * field named `key` in the output: + * * For `jsonl` output format, the output will have a `key` field + * instead of the `instance` field. + * * For `csv`/`bigquery` output format, the output will have have a `key` + * column instead of the instance feature columns. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * @type array|\Google\Protobuf\Internal\RepeatedField $included_fields + * Fields that will be included in the prediction instance that is + * sent to the Model. + * If + * [instance_type][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.instance_type] + * is `array`, the order of field names in included_fields also determines + * the order of the values in the array. + * When included_fields is populated, + * [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields] + * must be empty. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_fields + * Fields that will be excluded in the prediction instance that is + * sent to the Model. + * Excluded will be attached to the batch prediction output if + * [key_field][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.key_field] + * is not specified. + * When excluded_fields is populated, + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be empty. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\BatchPredictionJob::initOnce(); + parent::__construct($data); + } + + /** + * The format of the instance that the Model accepts. Vertex AI will + * convert compatible + * [batch prediction input instance + * formats][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.instances_format] + * to the specified format. + * Supported values are: + * * `object`: Each input is converted to JSON object format. + * * For `bigquery`, each row is converted to an object. + * * For `jsonl`, each line of the JSONL input must be an object. + * * Does not apply to `csv`, `file-list`, `tf-record`, or + * `tf-record-gzip`. + * * `array`: Each input is converted to JSON array format. + * * For `bigquery`, each row is converted to an array. The order + * of columns is determined by the BigQuery column order, unless + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * is populated. + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be populated for specifying field orders. + * * For `jsonl`, if each line of the JSONL input is an object, + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be populated for specifying field orders. + * * Does not apply to `csv`, `file-list`, `tf-record`, or + * `tf-record-gzip`. + * If not specified, Vertex AI converts the batch prediction input as + * follows: + * * For `bigquery` and `csv`, the behavior is the same as `array`. The + * order of columns is the same as defined in the file or table, unless + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * is populated. + * * For `jsonl`, the prediction instance format is determined by + * each line of the input. + * * For `tf-record`/`tf-record-gzip`, each record will be converted to + * an object in the format of `{"b64": }`, where `` is + * the Base64-encoded string of the content of the record. + * * For `file-list`, each file in the list will be converted to an + * object in the format of `{"b64": }`, where `` is + * the Base64-encoded string of the content of the file. + * + * Generated from protobuf field string instance_type = 1; + * @return string + */ + public function getInstanceType() + { + return $this->instance_type; + } + + /** + * The format of the instance that the Model accepts. Vertex AI will + * convert compatible + * [batch prediction input instance + * formats][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.instances_format] + * to the specified format. + * Supported values are: + * * `object`: Each input is converted to JSON object format. + * * For `bigquery`, each row is converted to an object. + * * For `jsonl`, each line of the JSONL input must be an object. + * * Does not apply to `csv`, `file-list`, `tf-record`, or + * `tf-record-gzip`. + * * `array`: Each input is converted to JSON array format. + * * For `bigquery`, each row is converted to an array. The order + * of columns is determined by the BigQuery column order, unless + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * is populated. + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be populated for specifying field orders. + * * For `jsonl`, if each line of the JSONL input is an object, + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be populated for specifying field orders. + * * Does not apply to `csv`, `file-list`, `tf-record`, or + * `tf-record-gzip`. + * If not specified, Vertex AI converts the batch prediction input as + * follows: + * * For `bigquery` and `csv`, the behavior is the same as `array`. The + * order of columns is the same as defined in the file or table, unless + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * is populated. + * * For `jsonl`, the prediction instance format is determined by + * each line of the input. + * * For `tf-record`/`tf-record-gzip`, each record will be converted to + * an object in the format of `{"b64": }`, where `` is + * the Base64-encoded string of the content of the record. + * * For `file-list`, each file in the list will be converted to an + * object in the format of `{"b64": }`, where `` is + * the Base64-encoded string of the content of the file. + * + * Generated from protobuf field string instance_type = 1; + * @param string $var + * @return $this + */ + public function setInstanceType($var) + { + GPBUtil::checkString($var, True); + $this->instance_type = $var; + + return $this; + } + + /** + * The name of the field that is considered as a key. + * The values identified by the key field is not included in the transformed + * instances that is sent to the Model. This is similar to + * specifying this name of the field in + * [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields]. + * In addition, the batch prediction output will not include the instances. + * Instead the output will only include the value of the key field, in a + * field named `key` in the output: + * * For `jsonl` output format, the output will have a `key` field + * instead of the `instance` field. + * * For `csv`/`bigquery` output format, the output will have have a `key` + * column instead of the instance feature columns. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * + * Generated from protobuf field string key_field = 2; + * @return string + */ + public function getKeyField() + { + return $this->key_field; + } + + /** + * The name of the field that is considered as a key. + * The values identified by the key field is not included in the transformed + * instances that is sent to the Model. This is similar to + * specifying this name of the field in + * [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields]. + * In addition, the batch prediction output will not include the instances. + * Instead the output will only include the value of the key field, in a + * field named `key` in the output: + * * For `jsonl` output format, the output will have a `key` field + * instead of the `instance` field. + * * For `csv`/`bigquery` output format, the output will have have a `key` + * column instead of the instance feature columns. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * + * Generated from protobuf field string key_field = 2; + * @param string $var + * @return $this + */ + public function setKeyField($var) + { + GPBUtil::checkString($var, True); + $this->key_field = $var; + + return $this; + } + + /** + * Fields that will be included in the prediction instance that is + * sent to the Model. + * If + * [instance_type][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.instance_type] + * is `array`, the order of field names in included_fields also determines + * the order of the values in the array. + * When included_fields is populated, + * [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields] + * must be empty. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * + * Generated from protobuf field repeated string included_fields = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIncludedFields() + { + return $this->included_fields; + } + + /** + * Fields that will be included in the prediction instance that is + * sent to the Model. + * If + * [instance_type][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.instance_type] + * is `array`, the order of field names in included_fields also determines + * the order of the values in the array. + * When included_fields is populated, + * [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields] + * must be empty. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * + * Generated from protobuf field repeated string included_fields = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIncludedFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->included_fields = $arr; + + return $this; + } + + /** + * Fields that will be excluded in the prediction instance that is + * sent to the Model. + * Excluded will be attached to the batch prediction output if + * [key_field][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.key_field] + * is not specified. + * When excluded_fields is populated, + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be empty. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * + * Generated from protobuf field repeated string excluded_fields = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedFields() + { + return $this->excluded_fields; + } + + /** + * Fields that will be excluded in the prediction instance that is + * sent to the Model. + * Excluded will be attached to the batch prediction output if + * [key_field][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.key_field] + * is not specified. + * When excluded_fields is populated, + * [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + * must be empty. + * The input must be JSONL with objects at each line, CSV, BigQuery + * or TfRecord. + * + * Generated from protobuf field repeated string excluded_fields = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_fields = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstanceConfig::class, \Google\Cloud\AIPlatform\V1\BatchPredictionJob_InstanceConfig::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/OutputConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/OutputConfig.php new file mode 100644 index 000000000000..593442b63f9b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/OutputConfig.php @@ -0,0 +1,277 @@ +google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig + */ +class OutputConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The format in which Vertex AI gives the predictions, must be + * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats]. + * + * Generated from protobuf field string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $predictions_format = ''; + protected $destination; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GcsDestination $gcs_destination + * The Cloud Storage location of the directory where the output is + * to be written to. In the given directory a new directory is created. + * Its name is `prediction--`, + * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. + * Inside of it files `predictions_0001.`, + * `predictions_0002.`, ..., `predictions_N.` + * are created where `` depends on chosen + * [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format], + * and N may equal 0001 and depends on the total number of successfully + * predicted instances. If the Model has both + * [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + * and + * [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] + * schemata defined then each such file contains predictions as per the + * [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format]. + * If prediction for any instance failed (partially or completely), then + * an additional `errors_0001.`, `errors_0002.`,..., + * `errors_N.` files are created (N depends on total number + * of failed predictions). These files contain the failed instances, + * as per their schema, followed by an additional `error` field which as + * value has [google.rpc.Status][google.rpc.Status] + * containing only `code` and `message` fields. + * @type \Google\Cloud\AIPlatform\V1\BigQueryDestination $bigquery_destination + * The BigQuery project or dataset location where the output is to be + * written to. If project is provided, a new dataset is created with name + * `prediction__` + * where is made + * BigQuery-dataset-name compatible (for example, most special characters + * become underscores), and timestamp is in + * YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset + * two tables will be created, `predictions`, and `errors`. + * If the Model has both + * [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + * and + * [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] + * schemata defined then the tables have columns as follows: The + * `predictions` table contains instances for which the prediction + * succeeded, it has columns as per a concatenation of the Model's + * instance and prediction schemata. The `errors` table contains rows for + * which the prediction has failed, it has instance columns, as per the + * instance schema, followed by a single "errors" column, which as values + * has [google.rpc.Status][google.rpc.Status] + * represented as a STRUCT, and containing only `code` and `message`. + * @type string $predictions_format + * Required. The format in which Vertex AI gives the predictions, must be + * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\BatchPredictionJob::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud Storage location of the directory where the output is + * to be written to. In the given directory a new directory is created. + * Its name is `prediction--`, + * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. + * Inside of it files `predictions_0001.`, + * `predictions_0002.`, ..., `predictions_N.` + * are created where `` depends on chosen + * [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format], + * and N may equal 0001 and depends on the total number of successfully + * predicted instances. If the Model has both + * [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + * and + * [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] + * schemata defined then each such file contains predictions as per the + * [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format]. + * If prediction for any instance failed (partially or completely), then + * an additional `errors_0001.`, `errors_0002.`,..., + * `errors_N.` files are created (N depends on total number + * of failed predictions). These files contain the failed instances, + * as per their schema, followed by an additional `error` field which as + * value has [google.rpc.Status][google.rpc.Status] + * containing only `code` and `message` fields. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination gcs_destination = 2; + * @return \Google\Cloud\AIPlatform\V1\GcsDestination|null + */ + public function getGcsDestination() + { + return $this->readOneof(2); + } + + public function hasGcsDestination() + { + return $this->hasOneof(2); + } + + /** + * The Cloud Storage location of the directory where the output is + * to be written to. In the given directory a new directory is created. + * Its name is `prediction--`, + * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. + * Inside of it files `predictions_0001.`, + * `predictions_0002.`, ..., `predictions_N.` + * are created where `` depends on chosen + * [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format], + * and N may equal 0001 and depends on the total number of successfully + * predicted instances. If the Model has both + * [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + * and + * [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] + * schemata defined then each such file contains predictions as per the + * [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format]. + * If prediction for any instance failed (partially or completely), then + * an additional `errors_0001.`, `errors_0002.`,..., + * `errors_N.` files are created (N depends on total number + * of failed predictions). These files contain the failed instances, + * as per their schema, followed by an additional `error` field which as + * value has [google.rpc.Status][google.rpc.Status] + * containing only `code` and `message` fields. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination gcs_destination = 2; + * @param \Google\Cloud\AIPlatform\V1\GcsDestination $var + * @return $this + */ + public function setGcsDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GcsDestination::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The BigQuery project or dataset location where the output is to be + * written to. If project is provided, a new dataset is created with name + * `prediction__` + * where is made + * BigQuery-dataset-name compatible (for example, most special characters + * become underscores), and timestamp is in + * YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset + * two tables will be created, `predictions`, and `errors`. + * If the Model has both + * [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + * and + * [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] + * schemata defined then the tables have columns as follows: The + * `predictions` table contains instances for which the prediction + * succeeded, it has columns as per a concatenation of the Model's + * instance and prediction schemata. The `errors` table contains rows for + * which the prediction has failed, it has instance columns, as per the + * instance schema, followed by a single "errors" column, which as values + * has [google.rpc.Status][google.rpc.Status] + * represented as a STRUCT, and containing only `code` and `message`. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 3; + * @return \Google\Cloud\AIPlatform\V1\BigQueryDestination|null + */ + public function getBigqueryDestination() + { + return $this->readOneof(3); + } + + public function hasBigqueryDestination() + { + return $this->hasOneof(3); + } + + /** + * The BigQuery project or dataset location where the output is to be + * written to. If project is provided, a new dataset is created with name + * `prediction__` + * where is made + * BigQuery-dataset-name compatible (for example, most special characters + * become underscores), and timestamp is in + * YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset + * two tables will be created, `predictions`, and `errors`. + * If the Model has both + * [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + * and + * [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] + * schemata defined then the tables have columns as follows: The + * `predictions` table contains instances for which the prediction + * succeeded, it has columns as per a concatenation of the Model's + * instance and prediction schemata. The `errors` table contains rows for + * which the prediction has failed, it has instance columns, as per the + * instance schema, followed by a single "errors" column, which as values + * has [google.rpc.Status][google.rpc.Status] + * represented as a STRUCT, and containing only `code` and `message`. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 3; + * @param \Google\Cloud\AIPlatform\V1\BigQueryDestination $var + * @return $this + */ + public function setBigqueryDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BigQueryDestination::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The format in which Vertex AI gives the predictions, must be + * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats]. + * + * Generated from protobuf field string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPredictionsFormat() + { + return $this->predictions_format; + } + + /** + * Required. The format in which Vertex AI gives the predictions, must be + * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats]. + * + * Generated from protobuf field string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPredictionsFormat($var) + { + GPBUtil::checkString($var, True); + $this->predictions_format = $var; + + return $this; + } + + /** + * @return string + */ + public function getDestination() + { + return $this->whichOneof("destination"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OutputConfig::class, \Google\Cloud\AIPlatform\V1\BatchPredictionJob_OutputConfig::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/OutputInfo.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/OutputInfo.php new file mode 100644 index 000000000000..6ed62fa2e9e4 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchPredictionJob/OutputInfo.php @@ -0,0 +1,168 @@ +google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo + */ +class OutputInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the BigQuery table created, in + * `predictions_` + * format, into which the prediction output is written. + * Can be used by UI to generate the BigQuery output path, for example. + * + * Generated from protobuf field string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $bigquery_output_table = ''; + protected $output_location; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $gcs_output_directory + * Output only. The full path of the Cloud Storage directory created, into + * which the prediction output is written. + * @type string $bigquery_output_dataset + * Output only. The path of the BigQuery dataset created, in + * `bq://projectId.bqDatasetId` + * format, into which the prediction output is written. + * @type string $bigquery_output_table + * Output only. The name of the BigQuery table created, in + * `predictions_` + * format, into which the prediction output is written. + * Can be used by UI to generate the BigQuery output path, for example. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\BatchPredictionJob::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The full path of the Cloud Storage directory created, into + * which the prediction output is written. + * + * Generated from protobuf field string gcs_output_directory = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGcsOutputDirectory() + { + return $this->readOneof(1); + } + + public function hasGcsOutputDirectory() + { + return $this->hasOneof(1); + } + + /** + * Output only. The full path of the Cloud Storage directory created, into + * which the prediction output is written. + * + * Generated from protobuf field string gcs_output_directory = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGcsOutputDirectory($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Output only. The path of the BigQuery dataset created, in + * `bq://projectId.bqDatasetId` + * format, into which the prediction output is written. + * + * Generated from protobuf field string bigquery_output_dataset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getBigqueryOutputDataset() + { + return $this->readOneof(2); + } + + public function hasBigqueryOutputDataset() + { + return $this->hasOneof(2); + } + + /** + * Output only. The path of the BigQuery dataset created, in + * `bq://projectId.bqDatasetId` + * format, into which the prediction output is written. + * + * Generated from protobuf field string bigquery_output_dataset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setBigqueryOutputDataset($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Output only. The name of the BigQuery table created, in + * `predictions_` + * format, into which the prediction output is written. + * Can be used by UI to generate the BigQuery output path, for example. + * + * Generated from protobuf field string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getBigqueryOutputTable() + { + return $this->bigquery_output_table; + } + + /** + * Output only. The name of the BigQuery table created, in + * `predictions_` + * format, into which the prediction output is written. + * Can be used by UI to generate the BigQuery output path, for example. + * + * Generated from protobuf field string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setBigqueryOutputTable($var) + { + GPBUtil::checkString($var, True); + $this->bigquery_output_table = $var; + + return $this; + } + + /** + * @return string + */ + public function getOutputLocation() + { + return $this->whichOneof("output_location"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OutputInfo::class, \Google\Cloud\AIPlatform\V1\BatchPredictionJob_OutputInfo::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesOperationMetadata.php new file mode 100644 index 000000000000..1514117ac054 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + */ +class BatchReadFeatureValuesOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for Featurestore batch read Features values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for Featurestore batch read Features values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for Featurestore batch read Features values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for Featurestore batch read Features values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesRequest.php new file mode 100644 index 000000000000..ab375753fdc3 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesRequest.php @@ -0,0 +1,403 @@ +google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + */ +class BatchReadFeatureValuesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Featurestore from which to query Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $featurestore = ''; + /** + * Required. Specifies output location and format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $destination = null; + /** + * When not empty, the specified fields in the *_read_instances source will be + * joined as-is in the output, in addition to those fields from the + * Featurestore Entity. + * For BigQuery source, the type of the pass-through values will be + * automatically inferred. For CSV source, the pass-through values will be + * passed as opaque bytes. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + */ + private $pass_through_fields; + /** + * Required. Specifies EntityType grouping Features to read values of and + * settings. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + private $entity_type_specs; + /** + * Optional. Excludes Feature values with feature generation timestamp before + * this timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $start_time = null; + protected $read_option; + + /** + * @param string $featurestore Required. The resource name of the Featurestore from which to query Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * Please see {@see FeaturestoreServiceClient::featurestoreName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\BatchReadFeatureValuesRequest + * + * @experimental + */ + public static function build(string $featurestore): self + { + return (new self()) + ->setFeaturestore($featurestore); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\CsvSource $csv_read_instances + * Each read instance consists of exactly one read timestamp and one or more + * entity IDs identifying entities of the corresponding EntityTypes whose + * Features are requested. + * Each output instance contains Feature values of requested entities + * concatenated together as of the read time. + * An example read instance may be `foo_entity_id, bar_entity_id, + * 2020-01-01T10:00:00.123Z`. + * An example output instance may be `foo_entity_id, bar_entity_id, + * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value, + * bar_entity_feature2_value`. + * Timestamp in each read instance must be millisecond-aligned. + * `csv_read_instances` are read instances stored in a plain-text CSV file. + * The header should be: + * [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp + * The columns can be in any order. + * Values in the timestamp column must use the RFC 3339 format, e.g. + * `2012-07-30T10:43:17.123Z`. + * @type \Google\Cloud\AIPlatform\V1\BigQuerySource $bigquery_read_instances + * Similar to csv_read_instances, but from BigQuery source. + * @type string $featurestore + * Required. The resource name of the Featurestore from which to query Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @type \Google\Cloud\AIPlatform\V1\FeatureValueDestination $destination + * Required. Specifies output location and format. + * @type array<\Google\Cloud\AIPlatform\V1\BatchReadFeatureValuesRequest\PassThroughField>|\Google\Protobuf\Internal\RepeatedField $pass_through_fields + * When not empty, the specified fields in the *_read_instances source will be + * joined as-is in the output, in addition to those fields from the + * Featurestore Entity. + * For BigQuery source, the type of the pass-through values will be + * automatically inferred. For CSV source, the pass-through values will be + * passed as opaque bytes. + * @type array<\Google\Cloud\AIPlatform\V1\BatchReadFeatureValuesRequest\EntityTypeSpec>|\Google\Protobuf\Internal\RepeatedField $entity_type_specs + * Required. Specifies EntityType grouping Features to read values of and + * settings. + * @type \Google\Protobuf\Timestamp $start_time + * Optional. Excludes Feature values with feature generation timestamp before + * this timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Each read instance consists of exactly one read timestamp and one or more + * entity IDs identifying entities of the corresponding EntityTypes whose + * Features are requested. + * Each output instance contains Feature values of requested entities + * concatenated together as of the read time. + * An example read instance may be `foo_entity_id, bar_entity_id, + * 2020-01-01T10:00:00.123Z`. + * An example output instance may be `foo_entity_id, bar_entity_id, + * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value, + * bar_entity_feature2_value`. + * Timestamp in each read instance must be millisecond-aligned. + * `csv_read_instances` are read instances stored in a plain-text CSV file. + * The header should be: + * [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp + * The columns can be in any order. + * Values in the timestamp column must use the RFC 3339 format, e.g. + * `2012-07-30T10:43:17.123Z`. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CsvSource csv_read_instances = 3; + * @return \Google\Cloud\AIPlatform\V1\CsvSource|null + */ + public function getCsvReadInstances() + { + return $this->readOneof(3); + } + + public function hasCsvReadInstances() + { + return $this->hasOneof(3); + } + + /** + * Each read instance consists of exactly one read timestamp and one or more + * entity IDs identifying entities of the corresponding EntityTypes whose + * Features are requested. + * Each output instance contains Feature values of requested entities + * concatenated together as of the read time. + * An example read instance may be `foo_entity_id, bar_entity_id, + * 2020-01-01T10:00:00.123Z`. + * An example output instance may be `foo_entity_id, bar_entity_id, + * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value, + * bar_entity_feature2_value`. + * Timestamp in each read instance must be millisecond-aligned. + * `csv_read_instances` are read instances stored in a plain-text CSV file. + * The header should be: + * [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp + * The columns can be in any order. + * Values in the timestamp column must use the RFC 3339 format, e.g. + * `2012-07-30T10:43:17.123Z`. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CsvSource csv_read_instances = 3; + * @param \Google\Cloud\AIPlatform\V1\CsvSource $var + * @return $this + */ + public function setCsvReadInstances($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CsvSource::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Similar to csv_read_instances, but from BigQuery source. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQuerySource bigquery_read_instances = 5; + * @return \Google\Cloud\AIPlatform\V1\BigQuerySource|null + */ + public function getBigqueryReadInstances() + { + return $this->readOneof(5); + } + + public function hasBigqueryReadInstances() + { + return $this->hasOneof(5); + } + + /** + * Similar to csv_read_instances, but from BigQuery source. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQuerySource bigquery_read_instances = 5; + * @param \Google\Cloud\AIPlatform\V1\BigQuerySource $var + * @return $this + */ + public function setBigqueryReadInstances($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BigQuerySource::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Required. The resource name of the Featurestore from which to query Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getFeaturestore() + { + return $this->featurestore; + } + + /** + * Required. The resource name of the Featurestore from which to query Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setFeaturestore($var) + { + GPBUtil::checkString($var, True); + $this->featurestore = $var; + + return $this; + } + + /** + * Required. Specifies output location and format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\FeatureValueDestination|null + */ + public function getDestination() + { + return $this->destination; + } + + public function hasDestination() + { + return isset($this->destination); + } + + public function clearDestination() + { + unset($this->destination); + } + + /** + * Required. Specifies output location and format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\FeatureValueDestination $var + * @return $this + */ + public function setDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureValueDestination::class); + $this->destination = $var; + + return $this; + } + + /** + * When not empty, the specified fields in the *_read_instances source will be + * joined as-is in the output, in addition to those fields from the + * Featurestore Entity. + * For BigQuery source, the type of the pass-through values will be + * automatically inferred. For CSV source, the pass-through values will be + * passed as opaque bytes. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPassThroughFields() + { + return $this->pass_through_fields; + } + + /** + * When not empty, the specified fields in the *_read_instances source will be + * joined as-is in the output, in addition to those fields from the + * Featurestore Entity. + * For BigQuery source, the type of the pass-through values will be + * automatically inferred. For CSV source, the pass-through values will be + * passed as opaque bytes. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * @param array<\Google\Cloud\AIPlatform\V1\BatchReadFeatureValuesRequest\PassThroughField>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPassThroughFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\BatchReadFeatureValuesRequest\PassThroughField::class); + $this->pass_through_fields = $arr; + + return $this; + } + + /** + * Required. Specifies EntityType grouping Features to read values of and + * settings. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntityTypeSpecs() + { + return $this->entity_type_specs; + } + + /** + * Required. Specifies EntityType grouping Features to read values of and + * settings. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec entity_type_specs = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\BatchReadFeatureValuesRequest\EntityTypeSpec>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntityTypeSpecs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\BatchReadFeatureValuesRequest\EntityTypeSpec::class); + $this->entity_type_specs = $arr; + + return $this; + } + + /** + * Optional. Excludes Feature values with feature generation timestamp before + * this timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Optional. Excludes Feature values with feature generation timestamp before + * this timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getReadOption() + { + return $this->whichOneof("read_option"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesRequest/EntityTypeSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesRequest/EntityTypeSpec.php new file mode 100644 index 000000000000..21af7601cc07 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesRequest/EntityTypeSpec.php @@ -0,0 +1,165 @@ +google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + */ +class EntityTypeSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the EntityType to select Features. The EntityType id is + * the + * [entity_type_id][google.cloud.aiplatform.v1.CreateEntityTypeRequest.entity_type_id] + * specified during EntityType creation. + * + * Generated from protobuf field string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entity_type_id = ''; + /** + * Required. Selectors choosing which Feature values to read from the + * EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_selector = null; + /** + * Per-Feature settings for the batch read. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DestinationFeatureSetting settings = 3; + */ + private $settings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entity_type_id + * Required. ID of the EntityType to select Features. The EntityType id is + * the + * [entity_type_id][google.cloud.aiplatform.v1.CreateEntityTypeRequest.entity_type_id] + * specified during EntityType creation. + * @type \Google\Cloud\AIPlatform\V1\FeatureSelector $feature_selector + * Required. Selectors choosing which Feature values to read from the + * EntityType. + * @type array<\Google\Cloud\AIPlatform\V1\DestinationFeatureSetting>|\Google\Protobuf\Internal\RepeatedField $settings + * Per-Feature settings for the batch read. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. ID of the EntityType to select Features. The EntityType id is + * the + * [entity_type_id][google.cloud.aiplatform.v1.CreateEntityTypeRequest.entity_type_id] + * specified during EntityType creation. + * + * Generated from protobuf field string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEntityTypeId() + { + return $this->entity_type_id; + } + + /** + * Required. ID of the EntityType to select Features. The EntityType id is + * the + * [entity_type_id][google.cloud.aiplatform.v1.CreateEntityTypeRequest.entity_type_id] + * specified during EntityType creation. + * + * Generated from protobuf field string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEntityTypeId($var) + { + GPBUtil::checkString($var, True); + $this->entity_type_id = $var; + + return $this; + } + + /** + * Required. Selectors choosing which Feature values to read from the + * EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\FeatureSelector|null + */ + public function getFeatureSelector() + { + return $this->feature_selector; + } + + public function hasFeatureSelector() + { + return isset($this->feature_selector); + } + + public function clearFeatureSelector() + { + unset($this->feature_selector); + } + + /** + * Required. Selectors choosing which Feature values to read from the + * EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\FeatureSelector $var + * @return $this + */ + public function setFeatureSelector($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureSelector::class); + $this->feature_selector = $var; + + return $this; + } + + /** + * Per-Feature settings for the batch read. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DestinationFeatureSetting settings = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSettings() + { + return $this->settings; + } + + /** + * Per-Feature settings for the batch read. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DestinationFeatureSetting settings = 3; + * @param array<\Google\Cloud\AIPlatform\V1\DestinationFeatureSetting>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\DestinationFeatureSetting::class); + $this->settings = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EntityTypeSpec::class, \Google\Cloud\AIPlatform\V1\BatchReadFeatureValuesRequest_EntityTypeSpec::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesRequest/PassThroughField.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesRequest/PassThroughField.php new file mode 100644 index 000000000000..d46974bdde45 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesRequest/PassThroughField.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + */ +class PassThroughField extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the field in the CSV header or the name of the + * column in BigQuery table. The naming restriction is the same as + * [Feature.name][google.cloud.aiplatform.v1.Feature.name]. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field_name + * Required. The name of the field in the CSV header or the name of the + * column in BigQuery table. The naming restriction is the same as + * [Feature.name][google.cloud.aiplatform.v1.Feature.name]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the field in the CSV header or the name of the + * column in BigQuery table. The naming restriction is the same as + * [Feature.name][google.cloud.aiplatform.v1.Feature.name]. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * Required. The name of the field in the CSV header or the name of the + * column in BigQuery table. The naming restriction is the same as + * [Feature.name][google.cloud.aiplatform.v1.Feature.name]. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PassThroughField::class, \Google\Cloud\AIPlatform\V1\BatchReadFeatureValuesRequest_PassThroughField::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesResponse.php new file mode 100644 index 000000000000..f1c2c8929965 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadFeatureValuesResponse.php @@ -0,0 +1,34 @@ +google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + */ +class BatchReadFeatureValuesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadTensorboardTimeSeriesDataRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadTensorboardTimeSeriesDataRequest.php new file mode 100644 index 000000000000..e2d1d43e92d3 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadTensorboardTimeSeriesDataRequest.php @@ -0,0 +1,149 @@ +google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest + */ +class BatchReadTensorboardTimeSeriesDataRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Tensorboard containing + * TensorboardTimeSeries to read data from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. + * The TensorboardTimeSeries referenced by + * [time_series][google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.time_series] + * must be sub resources of this Tensorboard. + * + * Generated from protobuf field string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $tensorboard = ''; + /** + * Required. The resource names of the TensorboardTimeSeries to read data + * from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field repeated string time_series = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $time_series; + + /** + * @param string $tensorboard Required. The resource name of the Tensorboard containing + * TensorboardTimeSeries to read data from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. + * The TensorboardTimeSeries referenced by + * [time_series][google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.time_series] + * must be sub resources of this Tensorboard. Please see + * {@see TensorboardServiceClient::tensorboardName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\BatchReadTensorboardTimeSeriesDataRequest + * + * @experimental + */ + public static function build(string $tensorboard): self + { + return (new self()) + ->setTensorboard($tensorboard); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $tensorboard + * Required. The resource name of the Tensorboard containing + * TensorboardTimeSeries to read data from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. + * The TensorboardTimeSeries referenced by + * [time_series][google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.time_series] + * must be sub resources of this Tensorboard. + * @type array|\Google\Protobuf\Internal\RepeatedField $time_series + * Required. The resource names of the TensorboardTimeSeries to read data + * from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Tensorboard containing + * TensorboardTimeSeries to read data from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. + * The TensorboardTimeSeries referenced by + * [time_series][google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.time_series] + * must be sub resources of this Tensorboard. + * + * Generated from protobuf field string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTensorboard() + { + return $this->tensorboard; + } + + /** + * Required. The resource name of the Tensorboard containing + * TensorboardTimeSeries to read data from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. + * The TensorboardTimeSeries referenced by + * [time_series][google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.time_series] + * must be sub resources of this Tensorboard. + * + * Generated from protobuf field string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTensorboard($var) + { + GPBUtil::checkString($var, True); + $this->tensorboard = $var; + + return $this; + } + + /** + * Required. The resource names of the TensorboardTimeSeries to read data + * from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field repeated string time_series = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTimeSeries() + { + return $this->time_series; + } + + /** + * Required. The resource names of the TensorboardTimeSeries to read data + * from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field repeated string time_series = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTimeSeries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->time_series = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadTensorboardTimeSeriesDataResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadTensorboardTimeSeriesDataResponse.php new file mode 100644 index 000000000000..0dca16805076 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BatchReadTensorboardTimeSeriesDataResponse.php @@ -0,0 +1,68 @@ +google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse + */ +class BatchReadTensorboardTimeSeriesDataResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The returned time series data. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TimeSeriesData time_series_data = 1; + */ + private $time_series_data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\TimeSeriesData>|\Google\Protobuf\Internal\RepeatedField $time_series_data + * The returned time series data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * The returned time series data. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TimeSeriesData time_series_data = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTimeSeriesData() + { + return $this->time_series_data; + } + + /** + * The returned time series data. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TimeSeriesData time_series_data = 1; + * @param array<\Google\Cloud\AIPlatform\V1\TimeSeriesData>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTimeSeriesData($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\TimeSeriesData::class); + $this->time_series_data = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BigQueryDestination.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BigQueryDestination.php new file mode 100644 index 000000000000..54f26730bb7a --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BigQueryDestination.php @@ -0,0 +1,95 @@ +google.cloud.aiplatform.v1.BigQueryDestination + */ +class BigQueryDestination extends \Google\Protobuf\Internal\Message +{ + /** + * Required. BigQuery URI to a project or table, up to 2000 characters long. + * When only the project is specified, the Dataset and Table is created. + * When the full table reference is specified, the Dataset must exist and + * table must not exist. + * Accepted forms: + * * BigQuery path. For example: + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. + * + * Generated from protobuf field string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $output_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $output_uri + * Required. BigQuery URI to a project or table, up to 2000 characters long. + * When only the project is specified, the Dataset and Table is created. + * When the full table reference is specified, the Dataset must exist and + * table must not exist. + * Accepted forms: + * * BigQuery path. For example: + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce(); + parent::__construct($data); + } + + /** + * Required. BigQuery URI to a project or table, up to 2000 characters long. + * When only the project is specified, the Dataset and Table is created. + * When the full table reference is specified, the Dataset must exist and + * table must not exist. + * Accepted forms: + * * BigQuery path. For example: + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. + * + * Generated from protobuf field string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getOutputUri() + { + return $this->output_uri; + } + + /** + * Required. BigQuery URI to a project or table, up to 2000 characters long. + * When only the project is specified, the Dataset and Table is created. + * When the full table reference is specified, the Dataset must exist and + * table must not exist. + * Accepted forms: + * * BigQuery path. For example: + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. + * + * Generated from protobuf field string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setOutputUri($var) + { + GPBUtil::checkString($var, True); + $this->output_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BigQuerySource.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BigQuerySource.php new file mode 100644 index 000000000000..21cde2f1e7fc --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BigQuerySource.php @@ -0,0 +1,75 @@ +google.cloud.aiplatform.v1.BigQuerySource + */ +class BigQuerySource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. BigQuery URI to a table, up to 2000 characters long. + * Accepted forms: + * * BigQuery path. For example: `bq://projectId.bqDatasetId.bqTableId`. + * + * Generated from protobuf field string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $input_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $input_uri + * Required. BigQuery URI to a table, up to 2000 characters long. + * Accepted forms: + * * BigQuery path. For example: `bq://projectId.bqDatasetId.bqTableId`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce(); + parent::__construct($data); + } + + /** + * Required. BigQuery URI to a table, up to 2000 characters long. + * Accepted forms: + * * BigQuery path. For example: `bq://projectId.bqDatasetId.bqTableId`. + * + * Generated from protobuf field string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInputUri() + { + return $this->input_uri; + } + + /** + * Required. BigQuery URI to a table, up to 2000 characters long. + * Accepted forms: + * * BigQuery path. For example: `bq://projectId.bqDatasetId.bqTableId`. + * + * Generated from protobuf field string input_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setInputUri($var) + { + GPBUtil::checkString($var, True); + $this->input_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BlurBaselineConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BlurBaselineConfig.php new file mode 100644 index 000000000000..511227fc1dbd --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BlurBaselineConfig.php @@ -0,0 +1,83 @@ +google.cloud.aiplatform.v1.BlurBaselineConfig + */ +class BlurBaselineConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The standard deviation of the blur kernel for the blurred baseline. The + * same blurring parameter is used for both the height and the width + * dimension. If not set, the method defaults to the zero (i.e. black for + * images) baseline. + * + * Generated from protobuf field float max_blur_sigma = 1; + */ + protected $max_blur_sigma = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $max_blur_sigma + * The standard deviation of the blur kernel for the blurred baseline. The + * same blurring parameter is used for both the height and the width + * dimension. If not set, the method defaults to the zero (i.e. black for + * images) baseline. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * The standard deviation of the blur kernel for the blurred baseline. The + * same blurring parameter is used for both the height and the width + * dimension. If not set, the method defaults to the zero (i.e. black for + * images) baseline. + * + * Generated from protobuf field float max_blur_sigma = 1; + * @return float + */ + public function getMaxBlurSigma() + { + return $this->max_blur_sigma; + } + + /** + * The standard deviation of the blur kernel for the blurred baseline. The + * same blurring parameter is used for both the height and the width + * dimension. If not set, the method defaults to the zero (i.e. black for + * images) baseline. + * + * Generated from protobuf field float max_blur_sigma = 1; + * @param float $var + * @return $this + */ + public function setMaxBlurSigma($var) + { + GPBUtil::checkFloat($var); + $this->max_blur_sigma = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BoolArray.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BoolArray.php new file mode 100644 index 000000000000..597297556639 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/BoolArray.php @@ -0,0 +1,67 @@ +google.cloud.aiplatform.v1.BoolArray + */ +class BoolArray extends \Google\Protobuf\Internal\Message +{ + /** + * A list of bool values. + * + * Generated from protobuf field repeated bool values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * A list of bool values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Types::initOnce(); + parent::__construct($data); + } + + /** + * A list of bool values. + * + * Generated from protobuf field repeated bool values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * A list of bool values. + * + * Generated from protobuf field repeated bool values = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BOOL); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelBatchPredictionJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelBatchPredictionJobRequest.php new file mode 100644 index 000000000000..5b0d4263f1ee --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelBatchPredictionJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + */ +class CancelBatchPredictionJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the BatchPredictionJob to cancel. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the BatchPredictionJob to cancel. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * Please see {@see JobServiceClient::batchPredictionJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\CancelBatchPredictionJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the BatchPredictionJob to cancel. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the BatchPredictionJob to cancel. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the BatchPredictionJob to cancel. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelCustomJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelCustomJobRequest.php new file mode 100644 index 000000000000..25ee68df6bf6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelCustomJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.CancelCustomJobRequest + */ +class CancelCustomJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomJob to cancel. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the CustomJob to cancel. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * Please see {@see JobServiceClient::customJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\CancelCustomJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomJob to cancel. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomJob to cancel. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomJob to cancel. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelDataLabelingJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelDataLabelingJobRequest.php new file mode 100644 index 000000000000..e8c568532703 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelDataLabelingJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + */ +class CancelDataLabelingJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DataLabelingJob. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the DataLabelingJob. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Please see {@see JobServiceClient::dataLabelingJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\CancelDataLabelingJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DataLabelingJob. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DataLabelingJob. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DataLabelingJob. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelHyperparameterTuningJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelHyperparameterTuningJobRequest.php new file mode 100644 index 000000000000..4705d020add8 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelHyperparameterTuningJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest + */ +class CancelHyperparameterTuningJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the HyperparameterTuningJob to cancel. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the HyperparameterTuningJob to cancel. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Please see {@see JobServiceClient::hyperparameterTuningJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\CancelHyperparameterTuningJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the HyperparameterTuningJob to cancel. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the HyperparameterTuningJob to cancel. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the HyperparameterTuningJob to cancel. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelNasJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelNasJobRequest.php new file mode 100644 index 000000000000..f594cf23a0eb --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelNasJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.CancelNasJobRequest + */ +class CancelNasJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the NasJob to cancel. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the NasJob to cancel. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * Please see {@see JobServiceClient::nasJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\CancelNasJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the NasJob to cancel. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the NasJob to cancel. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the NasJob to cancel. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelPipelineJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelPipelineJobRequest.php new file mode 100644 index 000000000000..22cd0124a111 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelPipelineJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.CancelPipelineJobRequest + */ +class CancelPipelineJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the PipelineJob to cancel. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the PipelineJob to cancel. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * Please see {@see PipelineServiceClient::pipelineJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\CancelPipelineJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the PipelineJob to cancel. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PipelineService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the PipelineJob to cancel. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the PipelineJob to cancel. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelTrainingPipelineRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelTrainingPipelineRequest.php new file mode 100644 index 000000000000..2566bb7d2ba5 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CancelTrainingPipelineRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + */ +class CancelTrainingPipelineRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the TrainingPipeline to cancel. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the TrainingPipeline to cancel. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * Please see {@see PipelineServiceClient::trainingPipelineName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\CancelTrainingPipelineRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the TrainingPipeline to cancel. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PipelineService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the TrainingPipeline to cancel. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the TrainingPipeline to cancel. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CheckTrialEarlyStoppingStateMetatdata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CheckTrialEarlyStoppingStateMetatdata.php new file mode 100644 index 000000000000..9a84e406a556 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CheckTrialEarlyStoppingStateMetatdata.php @@ -0,0 +1,147 @@ +google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata + */ +class CheckTrialEarlyStoppingStateMetatdata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for suggesting Trials. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + /** + * The name of the Study that the Trial belongs to. + * + * Generated from protobuf field string study = 2; + */ + protected $study = ''; + /** + * The Trial name. + * + * Generated from protobuf field string trial = 3; + */ + protected $trial = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for suggesting Trials. + * @type string $study + * The name of the Study that the Trial belongs to. + * @type string $trial + * The Trial name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for suggesting Trials. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for suggesting Trials. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + + /** + * The name of the Study that the Trial belongs to. + * + * Generated from protobuf field string study = 2; + * @return string + */ + public function getStudy() + { + return $this->study; + } + + /** + * The name of the Study that the Trial belongs to. + * + * Generated from protobuf field string study = 2; + * @param string $var + * @return $this + */ + public function setStudy($var) + { + GPBUtil::checkString($var, True); + $this->study = $var; + + return $this; + } + + /** + * The Trial name. + * + * Generated from protobuf field string trial = 3; + * @return string + */ + public function getTrial() + { + return $this->trial; + } + + /** + * The Trial name. + * + * Generated from protobuf field string trial = 3; + * @param string $var + * @return $this + */ + public function setTrial($var) + { + GPBUtil::checkString($var, True); + $this->trial = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CheckTrialEarlyStoppingStateRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CheckTrialEarlyStoppingStateRequest.php new file mode 100644 index 000000000000..c27050cd570c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CheckTrialEarlyStoppingStateRequest.php @@ -0,0 +1,76 @@ +google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest + */ +class CheckTrialEarlyStoppingStateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $trial_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $trial_name + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTrialName() + { + return $this->trial_name; + } + + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTrialName($var) + { + GPBUtil::checkString($var, True); + $this->trial_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CheckTrialEarlyStoppingStateResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CheckTrialEarlyStoppingStateResponse.php new file mode 100644 index 000000000000..480a948c3d90 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CheckTrialEarlyStoppingStateResponse.php @@ -0,0 +1,68 @@ +google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse + */ +class CheckTrialEarlyStoppingStateResponse extends \Google\Protobuf\Internal\Message +{ + /** + * True if the Trial should stop. + * + * Generated from protobuf field bool should_stop = 1; + */ + protected $should_stop = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $should_stop + * True if the Trial should stop. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * True if the Trial should stop. + * + * Generated from protobuf field bool should_stop = 1; + * @return bool + */ + public function getShouldStop() + { + return $this->should_stop; + } + + /** + * True if the Trial should stop. + * + * Generated from protobuf field bool should_stop = 1; + * @param bool $var + * @return $this + */ + public function setShouldStop($var) + { + GPBUtil::checkBool($var); + $this->should_stop = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CompleteTrialRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CompleteTrialRequest.php new file mode 100644 index 000000000000..4690f368b311 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CompleteTrialRequest.php @@ -0,0 +1,204 @@ +google.cloud.aiplatform.v1.CompleteTrialRequest + */ +class CompleteTrialRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If provided, it will be used as the completed Trial's + * final_measurement; Otherwise, the service will auto-select a + * previously reported measurement as the final-measurement + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $final_measurement = null; + /** + * Optional. True if the Trial cannot be run with the given Parameter, and + * final_measurement will be ignored. + * + * Generated from protobuf field bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $trial_infeasible = false; + /** + * Optional. A human readable reason why the trial was infeasible. This should + * only be provided if `trial_infeasible` is true. + * + * Generated from protobuf field string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $infeasible_reason = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * @type \Google\Cloud\AIPlatform\V1\Measurement $final_measurement + * Optional. If provided, it will be used as the completed Trial's + * final_measurement; Otherwise, the service will auto-select a + * previously reported measurement as the final-measurement + * @type bool $trial_infeasible + * Optional. True if the Trial cannot be run with the given Parameter, and + * final_measurement will be ignored. + * @type string $infeasible_reason + * Optional. A human readable reason why the trial was infeasible. This should + * only be provided if `trial_infeasible` is true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. If provided, it will be used as the completed Trial's + * final_measurement; Otherwise, the service will auto-select a + * previously reported measurement as the final-measurement + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\Measurement|null + */ + public function getFinalMeasurement() + { + return $this->final_measurement; + } + + public function hasFinalMeasurement() + { + return isset($this->final_measurement); + } + + public function clearFinalMeasurement() + { + unset($this->final_measurement); + } + + /** + * Optional. If provided, it will be used as the completed Trial's + * final_measurement; Otherwise, the service will auto-select a + * previously reported measurement as the final-measurement + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\Measurement $var + * @return $this + */ + public function setFinalMeasurement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Measurement::class); + $this->final_measurement = $var; + + return $this; + } + + /** + * Optional. True if the Trial cannot be run with the given Parameter, and + * final_measurement will be ignored. + * + * Generated from protobuf field bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getTrialInfeasible() + { + return $this->trial_infeasible; + } + + /** + * Optional. True if the Trial cannot be run with the given Parameter, and + * final_measurement will be ignored. + * + * Generated from protobuf field bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setTrialInfeasible($var) + { + GPBUtil::checkBool($var); + $this->trial_infeasible = $var; + + return $this; + } + + /** + * Optional. A human readable reason why the trial was infeasible. This should + * only be provided if `trial_infeasible` is true. + * + * Generated from protobuf field string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getInfeasibleReason() + { + return $this->infeasible_reason; + } + + /** + * Optional. A human readable reason why the trial was infeasible. This should + * only be provided if `trial_infeasible` is true. + * + * Generated from protobuf field string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setInfeasibleReason($var) + { + GPBUtil::checkString($var, True); + $this->infeasible_reason = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CompletionStats.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CompletionStats.php new file mode 100644 index 000000000000..a48d0f14ba2b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CompletionStats.php @@ -0,0 +1,194 @@ +google.cloud.aiplatform.v1.CompletionStats + */ +class CompletionStats extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The number of entities that had been processed successfully. + * + * Generated from protobuf field int64 successful_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $successful_count = 0; + /** + * Output only. The number of entities for which any error was encountered. + * + * Generated from protobuf field int64 failed_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failed_count = 0; + /** + * Output only. In cases when enough errors are encountered a job, pipeline, + * or operation may be failed as a whole. Below is the number of entities for + * which the processing had not been finished (either in successful or failed + * state). Set to -1 if the number is unknown (for example, the operation + * failed before the total entity number could be collected). + * + * Generated from protobuf field int64 incomplete_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $incomplete_count = 0; + /** + * Output only. The number of the successful forecast points that are + * generated by the forecasting model. This is ONLY used by the forecasting + * batch prediction. + * + * Generated from protobuf field int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $successful_forecast_point_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $successful_count + * Output only. The number of entities that had been processed successfully. + * @type int|string $failed_count + * Output only. The number of entities for which any error was encountered. + * @type int|string $incomplete_count + * Output only. In cases when enough errors are encountered a job, pipeline, + * or operation may be failed as a whole. Below is the number of entities for + * which the processing had not been finished (either in successful or failed + * state). Set to -1 if the number is unknown (for example, the operation + * failed before the total entity number could be collected). + * @type int|string $successful_forecast_point_count + * Output only. The number of the successful forecast points that are + * generated by the forecasting model. This is ONLY used by the forecasting + * batch prediction. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\CompletionStats::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The number of entities that had been processed successfully. + * + * Generated from protobuf field int64 successful_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getSuccessfulCount() + { + return $this->successful_count; + } + + /** + * Output only. The number of entities that had been processed successfully. + * + * Generated from protobuf field int64 successful_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setSuccessfulCount($var) + { + GPBUtil::checkInt64($var); + $this->successful_count = $var; + + return $this; + } + + /** + * Output only. The number of entities for which any error was encountered. + * + * Generated from protobuf field int64 failed_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getFailedCount() + { + return $this->failed_count; + } + + /** + * Output only. The number of entities for which any error was encountered. + * + * Generated from protobuf field int64 failed_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setFailedCount($var) + { + GPBUtil::checkInt64($var); + $this->failed_count = $var; + + return $this; + } + + /** + * Output only. In cases when enough errors are encountered a job, pipeline, + * or operation may be failed as a whole. Below is the number of entities for + * which the processing had not been finished (either in successful or failed + * state). Set to -1 if the number is unknown (for example, the operation + * failed before the total entity number could be collected). + * + * Generated from protobuf field int64 incomplete_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getIncompleteCount() + { + return $this->incomplete_count; + } + + /** + * Output only. In cases when enough errors are encountered a job, pipeline, + * or operation may be failed as a whole. Below is the number of entities for + * which the processing had not been finished (either in successful or failed + * state). Set to -1 if the number is unknown (for example, the operation + * failed before the total entity number could be collected). + * + * Generated from protobuf field int64 incomplete_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setIncompleteCount($var) + { + GPBUtil::checkInt64($var); + $this->incomplete_count = $var; + + return $this; + } + + /** + * Output only. The number of the successful forecast points that are + * generated by the forecasting model. This is ONLY used by the forecasting + * batch prediction. + * + * Generated from protobuf field int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getSuccessfulForecastPointCount() + { + return $this->successful_forecast_point_count; + } + + /** + * Output only. The number of the successful forecast points that are + * generated by the forecasting model. This is ONLY used by the forecasting + * batch prediction. + * + * Generated from protobuf field int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setSuccessfulForecastPointCount($var) + { + GPBUtil::checkInt64($var); + $this->successful_forecast_point_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ComputeTokensRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ComputeTokensRequest.php new file mode 100644 index 000000000000..2c791dfaac28 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ComputeTokensRequest.php @@ -0,0 +1,132 @@ +google.cloud.aiplatform.v1.ComputeTokensRequest + */ +class ComputeTokensRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Endpoint requested to get lists of tokens and + * token ids. + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $endpoint = ''; + /** + * Required. The instances that are the input to token computing API call. + * Schema is identical to the prediction schema of the text model, even for + * the non-text models, like chat models, or Codey models. + * + * Generated from protobuf field repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $instances; + + /** + * @param string $endpoint Required. The name of the Endpoint requested to get lists of tokens and + * token ids. Please see + * {@see LlmUtilityServiceClient::endpointName()} for help formatting this field. + * @param \Google\Protobuf\Value[] $instances Required. The instances that are the input to token computing API call. + * Schema is identical to the prediction schema of the text model, even for + * the non-text models, like chat models, or Codey models. + * + * @return \Google\Cloud\AIPlatform\V1\ComputeTokensRequest + * + * @experimental + */ + public static function build(string $endpoint, array $instances): self + { + return (new self()) + ->setEndpoint($endpoint) + ->setInstances($instances); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $endpoint + * Required. The name of the Endpoint requested to get lists of tokens and + * token ids. + * @type array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $instances + * Required. The instances that are the input to token computing API call. + * Schema is identical to the prediction schema of the text model, even for + * the non-text models, like chat models, or Codey models. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\LlmUtilityService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Endpoint requested to get lists of tokens and + * token ids. + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * Required. The name of the Endpoint requested to get lists of tokens and + * token ids. + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * Required. The instances that are the input to token computing API call. + * Schema is identical to the prediction schema of the text model, even for + * the non-text models, like chat models, or Codey models. + * + * Generated from protobuf field repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInstances() + { + return $this->instances; + } + + /** + * Required. The instances that are the input to token computing API call. + * Schema is identical to the prediction schema of the text model, even for + * the non-text models, like chat models, or Codey models. + * + * Generated from protobuf field repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInstances($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); + $this->instances = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ComputeTokensResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ComputeTokensResponse.php new file mode 100644 index 000000000000..d62d19af34c2 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ComputeTokensResponse.php @@ -0,0 +1,75 @@ +google.cloud.aiplatform.v1.ComputeTokensResponse + */ +class ComputeTokensResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Lists of tokens info from the input. A ComputeTokensRequest could have + * multiple instances with a prompt in each instance. We also need to return + * lists of tokens info for the request with multiple instances. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; + */ + private $tokens_info; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\TokensInfo>|\Google\Protobuf\Internal\RepeatedField $tokens_info + * Lists of tokens info from the input. A ComputeTokensRequest could have + * multiple instances with a prompt in each instance. We also need to return + * lists of tokens info for the request with multiple instances. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\LlmUtilityService::initOnce(); + parent::__construct($data); + } + + /** + * Lists of tokens info from the input. A ComputeTokensRequest could have + * multiple instances with a prompt in each instance. We also need to return + * lists of tokens info for the request with multiple instances. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTokensInfo() + { + return $this->tokens_info; + } + + /** + * Lists of tokens info from the input. A ComputeTokensRequest could have + * multiple instances with a prompt in each instance. We also need to return + * lists of tokens info for the request with multiple instances. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TokensInfo tokens_info = 1; + * @param array<\Google\Cloud\AIPlatform\V1\TokensInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTokensInfo($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\TokensInfo::class); + $this->tokens_info = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ContainerRegistryDestination.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ContainerRegistryDestination.php new file mode 100644 index 000000000000..58fbb4c19983 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ContainerRegistryDestination.php @@ -0,0 +1,95 @@ +google.cloud.aiplatform.v1.ContainerRegistryDestination + */ +class ContainerRegistryDestination extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Container Registry URI of a container image. + * Only Google Container Registry and Artifact Registry are supported now. + * Accepted forms: + * * Google Container Registry path. For example: + * `gcr.io/projectId/imageName:tag`. + * * Artifact Registry path. For example: + * `us-central1-docker.pkg.dev/projectId/repoName/imageName:tag`. + * If a tag is not specified, "latest" will be used as the default tag. + * + * Generated from protobuf field string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $output_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $output_uri + * Required. Container Registry URI of a container image. + * Only Google Container Registry and Artifact Registry are supported now. + * Accepted forms: + * * Google Container Registry path. For example: + * `gcr.io/projectId/imageName:tag`. + * * Artifact Registry path. For example: + * `us-central1-docker.pkg.dev/projectId/repoName/imageName:tag`. + * If a tag is not specified, "latest" will be used as the default tag. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce(); + parent::__construct($data); + } + + /** + * Required. Container Registry URI of a container image. + * Only Google Container Registry and Artifact Registry are supported now. + * Accepted forms: + * * Google Container Registry path. For example: + * `gcr.io/projectId/imageName:tag`. + * * Artifact Registry path. For example: + * `us-central1-docker.pkg.dev/projectId/repoName/imageName:tag`. + * If a tag is not specified, "latest" will be used as the default tag. + * + * Generated from protobuf field string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getOutputUri() + { + return $this->output_uri; + } + + /** + * Required. Container Registry URI of a container image. + * Only Google Container Registry and Artifact Registry are supported now. + * Accepted forms: + * * Google Container Registry path. For example: + * `gcr.io/projectId/imageName:tag`. + * * Artifact Registry path. For example: + * `us-central1-docker.pkg.dev/projectId/repoName/imageName:tag`. + * If a tag is not specified, "latest" will be used as the default tag. + * + * Generated from protobuf field string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setOutputUri($var) + { + GPBUtil::checkString($var, True); + $this->output_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ContainerSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ContainerSpec.php new file mode 100644 index 000000000000..52f22956c176 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ContainerSpec.php @@ -0,0 +1,181 @@ +google.cloud.aiplatform.v1.ContainerSpec + */ +class ContainerSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The URI of a container image in the Container Registry that is to + * be run on each worker replica. + * + * Generated from protobuf field string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $image_uri = ''; + /** + * The command to be invoked when the container is started. + * It overrides the entrypoint instruction in Dockerfile when provided. + * + * Generated from protobuf field repeated string command = 2; + */ + private $command; + /** + * The arguments to be passed when starting the container. + * + * Generated from protobuf field repeated string args = 3; + */ + private $args; + /** + * Environment variables to be passed to the container. + * Maximum limit is 100. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.EnvVar env = 4; + */ + private $env; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $image_uri + * Required. The URI of a container image in the Container Registry that is to + * be run on each worker replica. + * @type array|\Google\Protobuf\Internal\RepeatedField $command + * The command to be invoked when the container is started. + * It overrides the entrypoint instruction in Dockerfile when provided. + * @type array|\Google\Protobuf\Internal\RepeatedField $args + * The arguments to be passed when starting the container. + * @type array<\Google\Cloud\AIPlatform\V1\EnvVar>|\Google\Protobuf\Internal\RepeatedField $env + * Environment variables to be passed to the container. + * Maximum limit is 100. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\CustomJob::initOnce(); + parent::__construct($data); + } + + /** + * Required. The URI of a container image in the Container Registry that is to + * be run on each worker replica. + * + * Generated from protobuf field string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getImageUri() + { + return $this->image_uri; + } + + /** + * Required. The URI of a container image in the Container Registry that is to + * be run on each worker replica. + * + * Generated from protobuf field string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setImageUri($var) + { + GPBUtil::checkString($var, True); + $this->image_uri = $var; + + return $this; + } + + /** + * The command to be invoked when the container is started. + * It overrides the entrypoint instruction in Dockerfile when provided. + * + * Generated from protobuf field repeated string command = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCommand() + { + return $this->command; + } + + /** + * The command to be invoked when the container is started. + * It overrides the entrypoint instruction in Dockerfile when provided. + * + * Generated from protobuf field repeated string command = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCommand($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->command = $arr; + + return $this; + } + + /** + * The arguments to be passed when starting the container. + * + * Generated from protobuf field repeated string args = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * The arguments to be passed when starting the container. + * + * Generated from protobuf field repeated string args = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->args = $arr; + + return $this; + } + + /** + * Environment variables to be passed to the container. + * Maximum limit is 100. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.EnvVar env = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEnv() + { + return $this->env; + } + + /** + * Environment variables to be passed to the container. + * Maximum limit is 100. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.EnvVar env = 4; + * @param array<\Google\Cloud\AIPlatform\V1\EnvVar>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEnv($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\EnvVar::class); + $this->env = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Context.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Context.php new file mode 100644 index 000000000000..5350832124f1 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Context.php @@ -0,0 +1,501 @@ +google.cloud.aiplatform.v1.Context + */ +class Context extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of the Context. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * User provided display name of the Context. + * May be up to 128 Unicode characters. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 8; + */ + protected $etag = ''; + /** + * The labels with user-defined metadata to organize your Contexts. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Context (System + * labels are excluded). + * + * Generated from protobuf field map labels = 9; + */ + private $labels; + /** + * Output only. Timestamp when this Context was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this Context was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. A list of resource names of Contexts that are parents of this + * Context. A Context may have at most 10 parent_contexts. + * + * Generated from protobuf field repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + private $parent_contexts; + /** + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_title = 13; + */ + protected $schema_title = ''; + /** + * The version of the schema in schema_name to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_version = 14; + */ + protected $schema_version = ''; + /** + * Properties of the Context. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * + * Generated from protobuf field .google.protobuf.Struct metadata = 15; + */ + protected $metadata = null; + /** + * Description of the Context + * + * Generated from protobuf field string description = 16; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of the Context. + * @type string $display_name + * User provided display name of the Context. + * May be up to 128 Unicode characters. + * @type string $etag + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize your Contexts. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Context (System + * labels are excluded). + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this Context was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this Context was last updated. + * @type array|\Google\Protobuf\Internal\RepeatedField $parent_contexts + * Output only. A list of resource names of Contexts that are parents of this + * Context. A Context may have at most 10 parent_contexts. + * @type string $schema_title + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * @type string $schema_version + * The version of the schema in schema_name to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * @type \Google\Protobuf\Struct $metadata + * Properties of the Context. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * @type string $description + * Description of the Context + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Context::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of the Context. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of the Context. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * User provided display name of the Context. + * May be up to 128 Unicode characters. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * User provided display name of the Context. + * May be up to 128 Unicode characters. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 8; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 8; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize your Contexts. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Context (System + * labels are excluded). + * + * Generated from protobuf field map labels = 9; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize your Contexts. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Context (System + * labels are excluded). + * + * Generated from protobuf field map labels = 9; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Timestamp when this Context was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this Context was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Context was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this Context was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. A list of resource names of Contexts that are parents of this + * Context. A Context may have at most 10 parent_contexts. + * + * Generated from protobuf field repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getParentContexts() + { + return $this->parent_contexts; + } + + /** + * Output only. A list of resource names of Contexts that are parents of this + * Context. A Context may have at most 10 parent_contexts. + * + * Generated from protobuf field repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setParentContexts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->parent_contexts = $arr; + + return $this; + } + + /** + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_title = 13; + * @return string + */ + public function getSchemaTitle() + { + return $this->schema_title; + } + + /** + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_title = 13; + * @param string $var + * @return $this + */ + public function setSchemaTitle($var) + { + GPBUtil::checkString($var, True); + $this->schema_title = $var; + + return $this; + } + + /** + * The version of the schema in schema_name to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_version = 14; + * @return string + */ + public function getSchemaVersion() + { + return $this->schema_version; + } + + /** + * The version of the schema in schema_name to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_version = 14; + * @param string $var + * @return $this + */ + public function setSchemaVersion($var) + { + GPBUtil::checkString($var, True); + $this->schema_version = $var; + + return $this; + } + + /** + * Properties of the Context. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * + * Generated from protobuf field .google.protobuf.Struct metadata = 15; + * @return \Google\Protobuf\Struct|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Properties of the Context. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * + * Generated from protobuf field .google.protobuf.Struct metadata = 15; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->metadata = $var; + + return $this; + } + + /** + * Description of the Context + * + * Generated from protobuf field string description = 16; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the Context + * + * Generated from protobuf field string description = 16; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CopyModelOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CopyModelOperationMetadata.php new file mode 100644 index 000000000000..96560fa2b4a5 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CopyModelOperationMetadata.php @@ -0,0 +1,79 @@ +google.cloud.aiplatform.v1.CopyModelOperationMetadata + */ +class CopyModelOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The common part of the operation metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CopyModelRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CopyModelRequest.php new file mode 100644 index 000000000000..c194bc851e77 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CopyModelRequest.php @@ -0,0 +1,272 @@ +google.cloud.aiplatform.v1.CopyModelRequest + */ +class CopyModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $source_model = ''; + /** + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 3; + */ + protected $encryption_spec = null; + protected $destination_model; + + /** + * @param string $parent Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + * Please see {@see ModelServiceClient::locationName()} for help formatting this field. + * @param string $sourceModel Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + * Please see {@see ModelServiceClient::modelName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\CopyModelRequest + * + * @experimental + */ + public static function build(string $parent, string $sourceModel): self + { + return (new self()) + ->setParent($parent) + ->setSourceModel($sourceModel); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $model_id + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + * @type string $parent_model + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @type string $parent + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + * @type string $source_model + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + * + * Generated from protobuf field string model_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getModelId() + { + return $this->readOneof(4); + } + + public function hasModelId() + { + return $this->hasOneof(4); + } + + /** + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + * + * Generated from protobuf field string model_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setModelId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getParentModel() + { + return $this->readOneof(5); + } + + public function hasParentModel() + { + return $this->hasOneof(5); + } + + /** + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParentModel($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getSourceModel() + { + return $this->source_model; + } + + /** + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setSourceModel($var) + { + GPBUtil::checkString($var, True); + $this->source_model = $var; + + return $this; + } + + /** + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 3; + * @return \Google\Cloud\AIPlatform\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 3; + * @param \Google\Cloud\AIPlatform\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + + /** + * @return string + */ + public function getDestinationModel() + { + return $this->whichOneof("destination_model"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CopyModelResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CopyModelResponse.php new file mode 100644 index 000000000000..b7009c3497ea --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CopyModelResponse.php @@ -0,0 +1,107 @@ +google.cloud.aiplatform.v1.CopyModelResponse + */ +class CopyModelResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the copied Model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string model = 1 [(.google.api.resource_reference) = { + */ + protected $model = ''; + /** + * Output only. The version ID of the model that is copied. + * + * Generated from protobuf field string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $model_version_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $model + * The name of the copied Model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * @type string $model_version_id + * Output only. The version ID of the model that is copied. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * The name of the copied Model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string model = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getModel() + { + return $this->model; + } + + /** + * The name of the copied Model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string model = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkString($var, True); + $this->model = $var; + + return $this; + } + + /** + * Output only. The version ID of the model that is copied. + * + * Generated from protobuf field string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getModelVersionId() + { + return $this->model_version_id; + } + + /** + * Output only. The version ID of the model that is copied. + * + * Generated from protobuf field string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setModelVersionId($var) + { + GPBUtil::checkString($var, True); + $this->model_version_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CountTokensRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CountTokensRequest.php new file mode 100644 index 000000000000..f54693f486c6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CountTokensRequest.php @@ -0,0 +1,132 @@ +google.cloud.aiplatform.v1.CountTokensRequest + */ +class CountTokensRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Endpoint requested to perform token counting. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $endpoint = ''; + /** + * Required. The instances that are the input to token counting call. + * Schema is identical to the prediction schema of the underlying model. + * + * Generated from protobuf field repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $instances; + + /** + * @param string $endpoint Required. The name of the Endpoint requested to perform token counting. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Please see {@see LlmUtilityServiceClient::endpointName()} for help formatting this field. + * @param \Google\Protobuf\Value[] $instances Required. The instances that are the input to token counting call. + * Schema is identical to the prediction schema of the underlying model. + * + * @return \Google\Cloud\AIPlatform\V1\CountTokensRequest + * + * @experimental + */ + public static function build(string $endpoint, array $instances): self + { + return (new self()) + ->setEndpoint($endpoint) + ->setInstances($instances); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $endpoint + * Required. The name of the Endpoint requested to perform token counting. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @type array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $instances + * Required. The instances that are the input to token counting call. + * Schema is identical to the prediction schema of the underlying model. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PredictionService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Endpoint requested to perform token counting. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * Required. The name of the Endpoint requested to perform token counting. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * Required. The instances that are the input to token counting call. + * Schema is identical to the prediction schema of the underlying model. + * + * Generated from protobuf field repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInstances() + { + return $this->instances; + } + + /** + * Required. The instances that are the input to token counting call. + * Schema is identical to the prediction schema of the underlying model. + * + * Generated from protobuf field repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInstances($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); + $this->instances = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CountTokensResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CountTokensResponse.php new file mode 100644 index 000000000000..b2b0f04d3679 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CountTokensResponse.php @@ -0,0 +1,105 @@ +google.cloud.aiplatform.v1.CountTokensResponse + */ +class CountTokensResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The total number of tokens counted across all instances from the request. + * + * Generated from protobuf field int32 total_tokens = 1; + */ + protected $total_tokens = 0; + /** + * The total number of billable characters counted across all instances from + * the request. + * + * Generated from protobuf field int32 total_billable_characters = 2; + */ + protected $total_billable_characters = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $total_tokens + * The total number of tokens counted across all instances from the request. + * @type int $total_billable_characters + * The total number of billable characters counted across all instances from + * the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PredictionService::initOnce(); + parent::__construct($data); + } + + /** + * The total number of tokens counted across all instances from the request. + * + * Generated from protobuf field int32 total_tokens = 1; + * @return int + */ + public function getTotalTokens() + { + return $this->total_tokens; + } + + /** + * The total number of tokens counted across all instances from the request. + * + * Generated from protobuf field int32 total_tokens = 1; + * @param int $var + * @return $this + */ + public function setTotalTokens($var) + { + GPBUtil::checkInt32($var); + $this->total_tokens = $var; + + return $this; + } + + /** + * The total number of billable characters counted across all instances from + * the request. + * + * Generated from protobuf field int32 total_billable_characters = 2; + * @return int + */ + public function getTotalBillableCharacters() + { + return $this->total_billable_characters; + } + + /** + * The total number of billable characters counted across all instances from + * the request. + * + * Generated from protobuf field int32 total_billable_characters = 2; + * @param int $var + * @return $this + */ + public function setTotalBillableCharacters($var) + { + GPBUtil::checkInt32($var); + $this->total_billable_characters = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateArtifactRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateArtifactRequest.php new file mode 100644 index 000000000000..101d30793506 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateArtifactRequest.php @@ -0,0 +1,209 @@ +google.cloud.aiplatform.v1.CreateArtifactRequest + */ +class CreateArtifactRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the MetadataStore where the Artifact should + * be created. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Artifact to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $artifact = null; + /** + * The {artifact} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * If not provided, the Artifact's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise + * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + * caller can't view the preexisting Artifact.) + * + * Generated from protobuf field string artifact_id = 3; + */ + protected $artifact_id = ''; + + /** + * @param string $parent Required. The resource name of the MetadataStore where the Artifact should + * be created. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * Please see {@see MetadataServiceClient::metadataStoreName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Artifact $artifact Required. The Artifact to create. + * @param string $artifactId The {artifact} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * If not provided, the Artifact's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise + * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + * caller can't view the preexisting Artifact.) + * + * @return \Google\Cloud\AIPlatform\V1\CreateArtifactRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Artifact $artifact, string $artifactId): self + { + return (new self()) + ->setParent($parent) + ->setArtifact($artifact) + ->setArtifactId($artifactId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the MetadataStore where the Artifact should + * be created. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @type \Google\Cloud\AIPlatform\V1\Artifact $artifact + * Required. The Artifact to create. + * @type string $artifact_id + * The {artifact} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * If not provided, the Artifact's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise + * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + * caller can't view the preexisting Artifact.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the MetadataStore where the Artifact should + * be created. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the MetadataStore where the Artifact should + * be created. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Artifact to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Artifact|null + */ + public function getArtifact() + { + return $this->artifact; + } + + public function hasArtifact() + { + return isset($this->artifact); + } + + public function clearArtifact() + { + unset($this->artifact); + } + + /** + * Required. The Artifact to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Artifact $var + * @return $this + */ + public function setArtifact($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Artifact::class); + $this->artifact = $var; + + return $this; + } + + /** + * The {artifact} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * If not provided, the Artifact's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise + * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + * caller can't view the preexisting Artifact.) + * + * Generated from protobuf field string artifact_id = 3; + * @return string + */ + public function getArtifactId() + { + return $this->artifact_id; + } + + /** + * The {artifact} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * If not provided, the Artifact's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Artifacts in the parent MetadataStore. (Otherwise + * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + * caller can't view the preexisting Artifact.) + * + * Generated from protobuf field string artifact_id = 3; + * @param string $var + * @return $this + */ + public function setArtifactId($var) + { + GPBUtil::checkString($var, True); + $this->artifact_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateBatchPredictionJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateBatchPredictionJobRequest.php new file mode 100644 index 000000000000..5d648b95312a --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateBatchPredictionJobRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + */ +class CreateBatchPredictionJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the + * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The BatchPredictionJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob batch_prediction_job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $batch_prediction_job = null; + + /** + * @param string $parent Required. The resource name of the Location to create the + * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` + * Please see {@see JobServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\BatchPredictionJob $batchPredictionJob Required. The BatchPredictionJob to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateBatchPredictionJobRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\BatchPredictionJob $batchPredictionJob): self + { + return (new self()) + ->setParent($parent) + ->setBatchPredictionJob($batchPredictionJob); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the + * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\BatchPredictionJob $batch_prediction_job + * Required. The BatchPredictionJob to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the + * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the + * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The BatchPredictionJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob batch_prediction_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\BatchPredictionJob|null + */ + public function getBatchPredictionJob() + { + return $this->batch_prediction_job; + } + + public function hasBatchPredictionJob() + { + return isset($this->batch_prediction_job); + } + + public function clearBatchPredictionJob() + { + unset($this->batch_prediction_job); + } + + /** + * Required. The BatchPredictionJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BatchPredictionJob batch_prediction_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\BatchPredictionJob $var + * @return $this + */ + public function setBatchPredictionJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BatchPredictionJob::class); + $this->batch_prediction_job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateContextRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateContextRequest.php new file mode 100644 index 000000000000..136459c0e04e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateContextRequest.php @@ -0,0 +1,204 @@ +google.cloud.aiplatform.v1.CreateContextRequest + */ +class CreateContextRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the MetadataStore where the Context should + * be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Context to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $context = null; + /** + * The {context} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. + * If not provided, the Context's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Contexts in the parent MetadataStore. (Otherwise + * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + * caller can't view the preexisting Context.) + * + * Generated from protobuf field string context_id = 3; + */ + protected $context_id = ''; + + /** + * @param string $parent Required. The resource name of the MetadataStore where the Context should + * be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * Please see {@see MetadataServiceClient::metadataStoreName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Context $context Required. The Context to create. + * @param string $contextId The {context} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. + * If not provided, the Context's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Contexts in the parent MetadataStore. (Otherwise + * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + * caller can't view the preexisting Context.) + * + * @return \Google\Cloud\AIPlatform\V1\CreateContextRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Context $context, string $contextId): self + { + return (new self()) + ->setParent($parent) + ->setContext($context) + ->setContextId($contextId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the MetadataStore where the Context should + * be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @type \Google\Cloud\AIPlatform\V1\Context $context + * Required. The Context to create. + * @type string $context_id + * The {context} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. + * If not provided, the Context's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Contexts in the parent MetadataStore. (Otherwise + * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + * caller can't view the preexisting Context.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the MetadataStore where the Context should + * be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the MetadataStore where the Context should + * be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Context to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Context|null + */ + public function getContext() + { + return $this->context; + } + + public function hasContext() + { + return isset($this->context); + } + + public function clearContext() + { + unset($this->context); + } + + /** + * Required. The Context to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Context $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Context::class); + $this->context = $var; + + return $this; + } + + /** + * The {context} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. + * If not provided, the Context's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Contexts in the parent MetadataStore. (Otherwise + * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + * caller can't view the preexisting Context.) + * + * Generated from protobuf field string context_id = 3; + * @return string + */ + public function getContextId() + { + return $this->context_id; + } + + /** + * The {context} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. + * If not provided, the Context's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Contexts in the parent MetadataStore. (Otherwise + * the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + * caller can't view the preexisting Context.) + * + * Generated from protobuf field string context_id = 3; + * @param string $var + * @return $this + */ + public function setContextId($var) + { + GPBUtil::checkString($var, True); + $this->context_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateCustomJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateCustomJobRequest.php new file mode 100644 index 000000000000..b277cb82d0c0 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateCustomJobRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateCustomJobRequest + */ +class CreateCustomJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The CustomJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_job = null; + + /** + * @param string $parent Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see JobServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\CustomJob $customJob Required. The CustomJob to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateCustomJobRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\CustomJob $customJob): self + { + return (new self()) + ->setParent($parent) + ->setCustomJob($customJob); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\CustomJob $custom_job + * Required. The CustomJob to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The CustomJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\CustomJob|null + */ + public function getCustomJob() + { + return $this->custom_job; + } + + public function hasCustomJob() + { + return isset($this->custom_job); + } + + public function clearCustomJob() + { + unset($this->custom_job); + } + + /** + * Required. The CustomJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\CustomJob $var + * @return $this + */ + public function setCustomJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CustomJob::class); + $this->custom_job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDataLabelingJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDataLabelingJobRequest.php new file mode 100644 index 000000000000..606b44afff62 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDataLabelingJobRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + */ +class CreateDataLabelingJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The DataLabelingJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DataLabelingJob data_labeling_job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_labeling_job = null; + + /** + * @param string $parent Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * Please see {@see JobServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\DataLabelingJob $dataLabelingJob Required. The DataLabelingJob to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateDataLabelingJobRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\DataLabelingJob $dataLabelingJob): self + { + return (new self()) + ->setParent($parent) + ->setDataLabelingJob($dataLabelingJob); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\DataLabelingJob $data_labeling_job + * Required. The DataLabelingJob to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The DataLabelingJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DataLabelingJob data_labeling_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\DataLabelingJob|null + */ + public function getDataLabelingJob() + { + return $this->data_labeling_job; + } + + public function hasDataLabelingJob() + { + return isset($this->data_labeling_job); + } + + public function clearDataLabelingJob() + { + unset($this->data_labeling_job); + } + + /** + * Required. The DataLabelingJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DataLabelingJob data_labeling_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\DataLabelingJob $var + * @return $this + */ + public function setDataLabelingJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DataLabelingJob::class); + $this->data_labeling_job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetOperationMetadata.php new file mode 100644 index 000000000000..a4f1442b8b58 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetOperationMetadata.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.CreateDatasetOperationMetadata + */ +class CreateDatasetOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The operation generic information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetRequest.php new file mode 100644 index 000000000000..56909d8b33e7 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateDatasetRequest + */ +class CreateDatasetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the Dataset in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Dataset to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dataset = null; + + /** + * @param string $parent Required. The resource name of the Location to create the Dataset in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see DatasetServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Dataset $dataset Required. The Dataset to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateDatasetRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Dataset $dataset): self + { + return (new self()) + ->setParent($parent) + ->setDataset($dataset); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the Dataset in. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\Dataset $dataset + * Required. The Dataset to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the Dataset in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the Dataset in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Dataset to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Dataset|null + */ + public function getDataset() + { + return $this->dataset; + } + + public function hasDataset() + { + return isset($this->dataset); + } + + public function clearDataset() + { + unset($this->dataset); + } + + /** + * Required. The Dataset to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Dataset $var + * @return $this + */ + public function setDataset($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Dataset::class); + $this->dataset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetVersionOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetVersionOperationMetadata.php new file mode 100644 index 000000000000..42a9dfce633b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetVersionOperationMetadata.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata + */ +class CreateDatasetVersionOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The common part of the operation metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetVersionRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetVersionRequest.php new file mode 100644 index 000000000000..d52bc548f697 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateDatasetVersionRequest.php @@ -0,0 +1,148 @@ +google.cloud.aiplatform.v1.CreateDatasetVersionRequest + */ +class CreateDatasetVersionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The version to be created. The same CMEK policies with the + * original Dataset will be applied the dataset version. So here we don't need + * to specify the EncryptionSpecType here. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dataset_version = null; + + /** + * @param string $parent Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * Please see {@see DatasetServiceClient::datasetName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\DatasetVersion $datasetVersion Required. The version to be created. The same CMEK policies with the + * original Dataset will be applied the dataset version. So here we don't need + * to specify the EncryptionSpecType here. + * + * @return \Google\Cloud\AIPlatform\V1\CreateDatasetVersionRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\DatasetVersion $datasetVersion): self + { + return (new self()) + ->setParent($parent) + ->setDatasetVersion($datasetVersion); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @type \Google\Cloud\AIPlatform\V1\DatasetVersion $dataset_version + * Required. The version to be created. The same CMEK policies with the + * original Dataset will be applied the dataset version. So here we don't need + * to specify the EncryptionSpecType here. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The version to be created. The same CMEK policies with the + * original Dataset will be applied the dataset version. So here we don't need + * to specify the EncryptionSpecType here. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\DatasetVersion|null + */ + public function getDatasetVersion() + { + return $this->dataset_version; + } + + public function hasDatasetVersion() + { + return isset($this->dataset_version); + } + + public function clearDatasetVersion() + { + unset($this->dataset_version); + } + + /** + * Required. The version to be created. The same CMEK policies with the + * original Dataset will be applied the dataset version. So here we don't need + * to specify the EncryptionSpecType here. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\DatasetVersion $var + * @return $this + */ + public function setDatasetVersion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DatasetVersion::class); + $this->dataset_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEndpointOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEndpointOperationMetadata.php new file mode 100644 index 000000000000..2541cb6f4554 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEndpointOperationMetadata.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.CreateEndpointOperationMetadata + */ +class CreateEndpointOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The operation generic information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EndpointService::initOnce(); + parent::__construct($data); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEndpointRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEndpointRequest.php new file mode 100644 index 000000000000..7b06487c5ec6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEndpointRequest.php @@ -0,0 +1,239 @@ +google.cloud.aiplatform.v1.CreateEndpointRequest + */ +class CreateEndpointRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the Endpoint in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Endpoint to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Endpoint endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $endpoint = null; + /** + * Immutable. The ID to use for endpoint, which will become the final + * component of the endpoint resource name. + * If not provided, Vertex AI will generate a value for this ID. + * If the first character is a letter, this value may be up to 63 characters, + * and valid characters are `[a-z0-9-]`. The last character must be a letter + * or number. + * If the first character is a number, this value may be up to 9 characters, + * and valid characters are `[0-9]` with no leading zeros. + * When using HTTP/JSON, this field is populated + * based on a query string argument, such as `?endpoint_id=12345`. This is the + * fallback for fields that are not included in either the URI or the body. + * + * Generated from protobuf field string endpoint_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $endpoint_id = ''; + + /** + * @param string $parent Required. The resource name of the Location to create the Endpoint in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see EndpointServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Endpoint $endpoint Required. The Endpoint to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateEndpointRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Endpoint $endpoint): self + { + return (new self()) + ->setParent($parent) + ->setEndpoint($endpoint); + } + + /** + * @param string $parent Required. The resource name of the Location to create the Endpoint in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see EndpointServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Endpoint $endpoint Required. The Endpoint to create. + * @param string $endpointId Immutable. The ID to use for endpoint, which will become the final + * component of the endpoint resource name. + * If not provided, Vertex AI will generate a value for this ID. + * + * If the first character is a letter, this value may be up to 63 characters, + * and valid characters are `[a-z0-9-]`. The last character must be a letter + * or number. + * + * If the first character is a number, this value may be up to 9 characters, + * and valid characters are `[0-9]` with no leading zeros. + * + * When using HTTP/JSON, this field is populated + * based on a query string argument, such as `?endpoint_id=12345`. This is the + * fallback for fields that are not included in either the URI or the body. + * + * @return \Google\Cloud\AIPlatform\V1\CreateEndpointRequest + * + * @experimental + */ + public static function buildFromParentEndpointEndpointId(string $parent, \Google\Cloud\AIPlatform\V1\Endpoint $endpoint, string $endpointId): self + { + return (new self()) + ->setParent($parent) + ->setEndpoint($endpoint) + ->setEndpointId($endpointId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the Endpoint in. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\Endpoint $endpoint + * Required. The Endpoint to create. + * @type string $endpoint_id + * Immutable. The ID to use for endpoint, which will become the final + * component of the endpoint resource name. + * If not provided, Vertex AI will generate a value for this ID. + * If the first character is a letter, this value may be up to 63 characters, + * and valid characters are `[a-z0-9-]`. The last character must be a letter + * or number. + * If the first character is a number, this value may be up to 9 characters, + * and valid characters are `[0-9]` with no leading zeros. + * When using HTTP/JSON, this field is populated + * based on a query string argument, such as `?endpoint_id=12345`. This is the + * fallback for fields that are not included in either the URI or the body. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EndpointService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the Endpoint in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the Endpoint in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Endpoint to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Endpoint endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Endpoint|null + */ + public function getEndpoint() + { + return $this->endpoint; + } + + public function hasEndpoint() + { + return isset($this->endpoint); + } + + public function clearEndpoint() + { + unset($this->endpoint); + } + + /** + * Required. The Endpoint to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Endpoint endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Endpoint $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Endpoint::class); + $this->endpoint = $var; + + return $this; + } + + /** + * Immutable. The ID to use for endpoint, which will become the final + * component of the endpoint resource name. + * If not provided, Vertex AI will generate a value for this ID. + * If the first character is a letter, this value may be up to 63 characters, + * and valid characters are `[a-z0-9-]`. The last character must be a letter + * or number. + * If the first character is a number, this value may be up to 9 characters, + * and valid characters are `[0-9]` with no leading zeros. + * When using HTTP/JSON, this field is populated + * based on a query string argument, such as `?endpoint_id=12345`. This is the + * fallback for fields that are not included in either the URI or the body. + * + * Generated from protobuf field string endpoint_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getEndpointId() + { + return $this->endpoint_id; + } + + /** + * Immutable. The ID to use for endpoint, which will become the final + * component of the endpoint resource name. + * If not provided, Vertex AI will generate a value for this ID. + * If the first character is a letter, this value may be up to 63 characters, + * and valid characters are `[a-z0-9-]`. The last character must be a letter + * or number. + * If the first character is a number, this value may be up to 9 characters, + * and valid characters are `[0-9]` with no leading zeros. + * When using HTTP/JSON, this field is populated + * based on a query string argument, such as `?endpoint_id=12345`. This is the + * fallback for fields that are not included in either the URI or the body. + * + * Generated from protobuf field string endpoint_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setEndpointId($var) + { + GPBUtil::checkString($var, True); + $this->endpoint_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEntityTypeOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEntityTypeOperationMetadata.php new file mode 100644 index 000000000000..cdd88cbab3d7 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEntityTypeOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + */ +class CreateEntityTypeOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for EntityType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEntityTypeRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEntityTypeRequest.php new file mode 100644 index 000000000000..33de6a198416 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateEntityTypeRequest.php @@ -0,0 +1,214 @@ +google.cloud.aiplatform.v1.CreateEntityTypeRequest + */ +class CreateEntityTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Featurestore to create EntityTypes. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The EntityType to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EntityType entity_type = 2; + */ + protected $entity_type = null; + /** + * Required. The ID to use for the EntityType, which will become the final + * component of the EntityType's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within a featurestore. + * + * Generated from protobuf field string entity_type_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entity_type_id = ''; + + /** + * @param string $parent Required. The resource name of the Featurestore to create EntityTypes. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * Please see {@see FeaturestoreServiceClient::featurestoreName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\EntityType $entityType The EntityType to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateEntityTypeRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\EntityType $entityType): self + { + return (new self()) + ->setParent($parent) + ->setEntityType($entityType); + } + + /** + * @param string $parent Required. The resource name of the Featurestore to create EntityTypes. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * Please see {@see FeaturestoreServiceClient::featurestoreName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\EntityType $entityType The EntityType to create. + * @param string $entityTypeId Required. The ID to use for the EntityType, which will become the final + * component of the EntityType's resource name. + * + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * + * The value must be unique within a featurestore. + * + * @return \Google\Cloud\AIPlatform\V1\CreateEntityTypeRequest + * + * @experimental + */ + public static function buildFromParentEntityTypeEntityTypeId(string $parent, \Google\Cloud\AIPlatform\V1\EntityType $entityType, string $entityTypeId): self + { + return (new self()) + ->setParent($parent) + ->setEntityType($entityType) + ->setEntityTypeId($entityTypeId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Featurestore to create EntityTypes. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @type \Google\Cloud\AIPlatform\V1\EntityType $entity_type + * The EntityType to create. + * @type string $entity_type_id + * Required. The ID to use for the EntityType, which will become the final + * component of the EntityType's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within a featurestore. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Featurestore to create EntityTypes. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Featurestore to create EntityTypes. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The EntityType to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EntityType entity_type = 2; + * @return \Google\Cloud\AIPlatform\V1\EntityType|null + */ + public function getEntityType() + { + return $this->entity_type; + } + + public function hasEntityType() + { + return isset($this->entity_type); + } + + public function clearEntityType() + { + unset($this->entity_type); + } + + /** + * The EntityType to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EntityType entity_type = 2; + * @param \Google\Cloud\AIPlatform\V1\EntityType $var + * @return $this + */ + public function setEntityType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EntityType::class); + $this->entity_type = $var; + + return $this; + } + + /** + * Required. The ID to use for the EntityType, which will become the final + * component of the EntityType's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within a featurestore. + * + * Generated from protobuf field string entity_type_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEntityTypeId() + { + return $this->entity_type_id; + } + + /** + * Required. The ID to use for the EntityType, which will become the final + * component of the EntityType's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within a featurestore. + * + * Generated from protobuf field string entity_type_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEntityTypeId($var) + { + GPBUtil::checkString($var, True); + $this->entity_type_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateExecutionRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateExecutionRequest.php new file mode 100644 index 000000000000..d1cdc202c321 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateExecutionRequest.php @@ -0,0 +1,214 @@ +google.cloud.aiplatform.v1.CreateExecutionRequest + */ +class CreateExecutionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the MetadataStore where the Execution should + * be created. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Execution to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $execution = null; + /** + * The {execution} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * If not provided, the Execution's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Executions in the parent MetadataStore. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting Execution.) + * + * Generated from protobuf field string execution_id = 3; + */ + protected $execution_id = ''; + + /** + * @param string $parent Required. The resource name of the MetadataStore where the Execution should + * be created. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * Please see {@see MetadataServiceClient::metadataStoreName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Execution $execution Required. The Execution to create. + * @param string $executionId The {execution} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * If not provided, the Execution's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Executions in the parent MetadataStore. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting Execution.) + * + * @return \Google\Cloud\AIPlatform\V1\CreateExecutionRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Execution $execution, string $executionId): self + { + return (new self()) + ->setParent($parent) + ->setExecution($execution) + ->setExecutionId($executionId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the MetadataStore where the Execution should + * be created. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @type \Google\Cloud\AIPlatform\V1\Execution $execution + * Required. The Execution to create. + * @type string $execution_id + * The {execution} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * If not provided, the Execution's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Executions in the parent MetadataStore. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting Execution.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the MetadataStore where the Execution should + * be created. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the MetadataStore where the Execution should + * be created. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Execution to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Execution|null + */ + public function getExecution() + { + return $this->execution; + } + + public function hasExecution() + { + return isset($this->execution); + } + + public function clearExecution() + { + unset($this->execution); + } + + /** + * Required. The Execution to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Execution $var + * @return $this + */ + public function setExecution($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Execution::class); + $this->execution = $var; + + return $this; + } + + /** + * The {execution} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * If not provided, the Execution's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Executions in the parent MetadataStore. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting Execution.) + * + * Generated from protobuf field string execution_id = 3; + * @return string + */ + public function getExecutionId() + { + return $this->execution_id; + } + + /** + * The {execution} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * If not provided, the Execution's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all Executions in the parent MetadataStore. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting Execution.) + * + * Generated from protobuf field string execution_id = 3; + * @param string $var + * @return $this + */ + public function setExecutionId($var) + { + GPBUtil::checkString($var, True); + $this->execution_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureGroupOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureGroupOperationMetadata.php new file mode 100644 index 000000000000..4f2674eccbec --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureGroupOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata + */ +class CreateFeatureGroupOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for FeatureGroup. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for FeatureGroup. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureRegistryService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for FeatureGroup. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for FeatureGroup. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureGroupRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureGroupRequest.php new file mode 100644 index 000000000000..fa47ef5850b0 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureGroupRequest.php @@ -0,0 +1,196 @@ +google.cloud.aiplatform.v1.CreateFeatureGroupRequest + */ +class CreateFeatureGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create FeatureGroups. + * Format: + * `projects/{project}/locations/{location}'` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The FeatureGroup to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureGroup feature_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_group = null; + /** + * Required. The ID to use for this FeatureGroup, which will become the final + * component of the FeatureGroup's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * + * Generated from protobuf field string feature_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_group_id = ''; + + /** + * @param string $parent Required. The resource name of the Location to create FeatureGroups. + * Format: + * `projects/{project}/locations/{location}'` + * Please see {@see FeatureRegistryServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\FeatureGroup $featureGroup Required. The FeatureGroup to create. + * @param string $featureGroupId Required. The ID to use for this FeatureGroup, which will become the final + * component of the FeatureGroup's resource name. + * + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * + * The value must be unique within the project and location. + * + * @return \Google\Cloud\AIPlatform\V1\CreateFeatureGroupRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\FeatureGroup $featureGroup, string $featureGroupId): self + { + return (new self()) + ->setParent($parent) + ->setFeatureGroup($featureGroup) + ->setFeatureGroupId($featureGroupId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create FeatureGroups. + * Format: + * `projects/{project}/locations/{location}'` + * @type \Google\Cloud\AIPlatform\V1\FeatureGroup $feature_group + * Required. The FeatureGroup to create. + * @type string $feature_group_id + * Required. The ID to use for this FeatureGroup, which will become the final + * component of the FeatureGroup's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureRegistryService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create FeatureGroups. + * Format: + * `projects/{project}/locations/{location}'` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create FeatureGroups. + * Format: + * `projects/{project}/locations/{location}'` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The FeatureGroup to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureGroup feature_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\FeatureGroup|null + */ + public function getFeatureGroup() + { + return $this->feature_group; + } + + public function hasFeatureGroup() + { + return isset($this->feature_group); + } + + public function clearFeatureGroup() + { + unset($this->feature_group); + } + + /** + * Required. The FeatureGroup to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureGroup feature_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\FeatureGroup $var + * @return $this + */ + public function setFeatureGroup($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureGroup::class); + $this->feature_group = $var; + + return $this; + } + + /** + * Required. The ID to use for this FeatureGroup, which will become the final + * component of the FeatureGroup's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * + * Generated from protobuf field string feature_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFeatureGroupId() + { + return $this->feature_group_id; + } + + /** + * Required. The ID to use for this FeatureGroup, which will become the final + * component of the FeatureGroup's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * + * Generated from protobuf field string feature_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFeatureGroupId($var) + { + GPBUtil::checkString($var, True); + $this->feature_group_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureOnlineStoreOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureOnlineStoreOperationMetadata.php new file mode 100644 index 000000000000..3b46d3c6c144 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureOnlineStoreOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata + */ +class CreateFeatureOnlineStoreOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for FeatureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for FeatureOnlineStore. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for FeatureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for FeatureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureOnlineStoreRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureOnlineStoreRequest.php new file mode 100644 index 000000000000..e7cd4ae99ede --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureOnlineStoreRequest.php @@ -0,0 +1,196 @@ +google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest + */ +class CreateFeatureOnlineStoreRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}'` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The FeatureOnlineStore to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore feature_online_store = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_online_store = null; + /** + * Required. The ID to use for this FeatureOnlineStore, which will become the + * final component of the FeatureOnlineStore's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * + * Generated from protobuf field string feature_online_store_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_online_store_id = ''; + + /** + * @param string $parent Required. The resource name of the Location to create FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}'` + * Please see {@see FeatureOnlineStoreAdminServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\FeatureOnlineStore $featureOnlineStore Required. The FeatureOnlineStore to create. + * @param string $featureOnlineStoreId Required. The ID to use for this FeatureOnlineStore, which will become the + * final component of the FeatureOnlineStore's resource name. + * + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * + * The value must be unique within the project and location. + * + * @return \Google\Cloud\AIPlatform\V1\CreateFeatureOnlineStoreRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\FeatureOnlineStore $featureOnlineStore, string $featureOnlineStoreId): self + { + return (new self()) + ->setParent($parent) + ->setFeatureOnlineStore($featureOnlineStore) + ->setFeatureOnlineStoreId($featureOnlineStoreId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}'` + * @type \Google\Cloud\AIPlatform\V1\FeatureOnlineStore $feature_online_store + * Required. The FeatureOnlineStore to create. + * @type string $feature_online_store_id + * Required. The ID to use for this FeatureOnlineStore, which will become the + * final component of the FeatureOnlineStore's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}'` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}'` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The FeatureOnlineStore to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore feature_online_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\FeatureOnlineStore|null + */ + public function getFeatureOnlineStore() + { + return $this->feature_online_store; + } + + public function hasFeatureOnlineStore() + { + return isset($this->feature_online_store); + } + + public function clearFeatureOnlineStore() + { + unset($this->feature_online_store); + } + + /** + * Required. The FeatureOnlineStore to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore feature_online_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\FeatureOnlineStore $var + * @return $this + */ + public function setFeatureOnlineStore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureOnlineStore::class); + $this->feature_online_store = $var; + + return $this; + } + + /** + * Required. The ID to use for this FeatureOnlineStore, which will become the + * final component of the FeatureOnlineStore's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * + * Generated from protobuf field string feature_online_store_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFeatureOnlineStoreId() + { + return $this->feature_online_store_id; + } + + /** + * Required. The ID to use for this FeatureOnlineStore, which will become the + * final component of the FeatureOnlineStore's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * + * Generated from protobuf field string feature_online_store_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFeatureOnlineStoreId($var) + { + GPBUtil::checkString($var, True); + $this->feature_online_store_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureOperationMetadata.php new file mode 100644 index 000000000000..6f4fb7c00ee0 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + */ +class CreateFeatureOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for Feature. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for Feature. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for Feature. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for Feature. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureRequest.php new file mode 100644 index 000000000000..3088d4e892ec --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureRequest.php @@ -0,0 +1,228 @@ +google.cloud.aiplatform.v1.CreateFeatureRequest + */ +class CreateFeatureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Feature to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature = null; + /** + * Required. The ID to use for the Feature, which will become the final + * component of the Feature's resource name. + * This value may be up to 128 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within an EntityType/FeatureGroup. + * + * Generated from protobuf field string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_id = ''; + + /** + * @param string $parent Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * Please see {@see FeaturestoreServiceClient::entityTypeName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Feature $feature Required. The Feature to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateFeatureRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Feature $feature): self + { + return (new self()) + ->setParent($parent) + ->setFeature($feature); + } + + /** + * @param string $parent Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * Please see {@see FeaturestoreServiceClient::entityTypeName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Feature $feature Required. The Feature to create. + * @param string $featureId Required. The ID to use for the Feature, which will become the final + * component of the Feature's resource name. + * + * This value may be up to 128 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * + * The value must be unique within an EntityType/FeatureGroup. + * + * @return \Google\Cloud\AIPlatform\V1\CreateFeatureRequest + * + * @experimental + */ + public static function buildFromParentFeatureFeatureId(string $parent, \Google\Cloud\AIPlatform\V1\Feature $feature, string $featureId): self + { + return (new self()) + ->setParent($parent) + ->setFeature($feature) + ->setFeatureId($featureId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @type \Google\Cloud\AIPlatform\V1\Feature $feature + * Required. The Feature to create. + * @type string $feature_id + * Required. The ID to use for the Feature, which will become the final + * component of the Feature's resource name. + * This value may be up to 128 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within an EntityType/FeatureGroup. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Feature to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Feature|null + */ + public function getFeature() + { + return $this->feature; + } + + public function hasFeature() + { + return isset($this->feature); + } + + public function clearFeature() + { + unset($this->feature); + } + + /** + * Required. The Feature to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Feature feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Feature $var + * @return $this + */ + public function setFeature($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Feature::class); + $this->feature = $var; + + return $this; + } + + /** + * Required. The ID to use for the Feature, which will become the final + * component of the Feature's resource name. + * This value may be up to 128 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within an EntityType/FeatureGroup. + * + * Generated from protobuf field string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFeatureId() + { + return $this->feature_id; + } + + /** + * Required. The ID to use for the Feature, which will become the final + * component of the Feature's resource name. + * This value may be up to 128 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within an EntityType/FeatureGroup. + * + * Generated from protobuf field string feature_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFeatureId($var) + { + GPBUtil::checkString($var, True); + $this->feature_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureViewOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureViewOperationMetadata.php new file mode 100644 index 000000000000..9afadfee20b9 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureViewOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata + */ +class CreateFeatureViewOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for FeatureView Create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for FeatureView Create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for FeatureView Create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for FeatureView Create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureViewRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureViewRequest.php new file mode 100644 index 000000000000..d7c4f8746c39 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeatureViewRequest.php @@ -0,0 +1,242 @@ +google.cloud.aiplatform.v1.CreateFeatureViewRequest + */ +class CreateFeatureViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the FeatureOnlineStore to create + * FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The FeatureView to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureView feature_view = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_view = null; + /** + * Required. The ID to use for the FeatureView, which will become the final + * component of the FeatureView's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within a FeatureOnlineStore. + * + * Generated from protobuf field string feature_view_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_view_id = ''; + /** + * Immutable. If set to true, one on demand sync will be run immediately, + * regardless whether the + * [FeatureView.sync_config][google.cloud.aiplatform.v1.FeatureView.sync_config] + * is configured or not. + * + * Generated from protobuf field bool run_sync_immediately = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $run_sync_immediately = false; + + /** + * @param string $parent Required. The resource name of the FeatureOnlineStore to create + * FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * Please see {@see FeatureOnlineStoreAdminServiceClient::featureOnlineStoreName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\FeatureView $featureView Required. The FeatureView to create. + * @param string $featureViewId Required. The ID to use for the FeatureView, which will become the final + * component of the FeatureView's resource name. + * + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * + * The value must be unique within a FeatureOnlineStore. + * + * @return \Google\Cloud\AIPlatform\V1\CreateFeatureViewRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\FeatureView $featureView, string $featureViewId): self + { + return (new self()) + ->setParent($parent) + ->setFeatureView($featureView) + ->setFeatureViewId($featureViewId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the FeatureOnlineStore to create + * FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @type \Google\Cloud\AIPlatform\V1\FeatureView $feature_view + * Required. The FeatureView to create. + * @type string $feature_view_id + * Required. The ID to use for the FeatureView, which will become the final + * component of the FeatureView's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within a FeatureOnlineStore. + * @type bool $run_sync_immediately + * Immutable. If set to true, one on demand sync will be run immediately, + * regardless whether the + * [FeatureView.sync_config][google.cloud.aiplatform.v1.FeatureView.sync_config] + * is configured or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the FeatureOnlineStore to create + * FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the FeatureOnlineStore to create + * FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The FeatureView to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureView feature_view = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\FeatureView|null + */ + public function getFeatureView() + { + return $this->feature_view; + } + + public function hasFeatureView() + { + return isset($this->feature_view); + } + + public function clearFeatureView() + { + unset($this->feature_view); + } + + /** + * Required. The FeatureView to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureView feature_view = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\FeatureView $var + * @return $this + */ + public function setFeatureView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureView::class); + $this->feature_view = $var; + + return $this; + } + + /** + * Required. The ID to use for the FeatureView, which will become the final + * component of the FeatureView's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within a FeatureOnlineStore. + * + * Generated from protobuf field string feature_view_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFeatureViewId() + { + return $this->feature_view_id; + } + + /** + * Required. The ID to use for the FeatureView, which will become the final + * component of the FeatureView's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within a FeatureOnlineStore. + * + * Generated from protobuf field string feature_view_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFeatureViewId($var) + { + GPBUtil::checkString($var, True); + $this->feature_view_id = $var; + + return $this; + } + + /** + * Immutable. If set to true, one on demand sync will be run immediately, + * regardless whether the + * [FeatureView.sync_config][google.cloud.aiplatform.v1.FeatureView.sync_config] + * is configured or not. + * + * Generated from protobuf field bool run_sync_immediately = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return bool + */ + public function getRunSyncImmediately() + { + return $this->run_sync_immediately; + } + + /** + * Immutable. If set to true, one on demand sync will be run immediately, + * regardless whether the + * [FeatureView.sync_config][google.cloud.aiplatform.v1.FeatureView.sync_config] + * is configured or not. + * + * Generated from protobuf field bool run_sync_immediately = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param bool $var + * @return $this + */ + public function setRunSyncImmediately($var) + { + GPBUtil::checkBool($var); + $this->run_sync_immediately = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeaturestoreOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeaturestoreOperationMetadata.php new file mode 100644 index 000000000000..cfbfb6e717be --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeaturestoreOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + */ +class CreateFeaturestoreOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for Featurestore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for Featurestore. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for Featurestore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for Featurestore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeaturestoreRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeaturestoreRequest.php new file mode 100644 index 000000000000..65a3c26fa649 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateFeaturestoreRequest.php @@ -0,0 +1,214 @@ +google.cloud.aiplatform.v1.CreateFeaturestoreRequest + */ +class CreateFeaturestoreRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create Featurestores. + * Format: + * `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Featurestore to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $featurestore = null; + /** + * Required. The ID to use for this Featurestore, which will become the final + * component of the Featurestore's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * + * Generated from protobuf field string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $featurestore_id = ''; + + /** + * @param string $parent Required. The resource name of the Location to create Featurestores. + * Format: + * `projects/{project}/locations/{location}` + * Please see {@see FeaturestoreServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Featurestore $featurestore Required. The Featurestore to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateFeaturestoreRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Featurestore $featurestore): self + { + return (new self()) + ->setParent($parent) + ->setFeaturestore($featurestore); + } + + /** + * @param string $parent Required. The resource name of the Location to create Featurestores. + * Format: + * `projects/{project}/locations/{location}` + * Please see {@see FeaturestoreServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Featurestore $featurestore Required. The Featurestore to create. + * @param string $featurestoreId Required. The ID to use for this Featurestore, which will become the final + * component of the Featurestore's resource name. + * + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * + * The value must be unique within the project and location. + * + * @return \Google\Cloud\AIPlatform\V1\CreateFeaturestoreRequest + * + * @experimental + */ + public static function buildFromParentFeaturestoreFeaturestoreId(string $parent, \Google\Cloud\AIPlatform\V1\Featurestore $featurestore, string $featurestoreId): self + { + return (new self()) + ->setParent($parent) + ->setFeaturestore($featurestore) + ->setFeaturestoreId($featurestoreId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create Featurestores. + * Format: + * `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\Featurestore $featurestore + * Required. The Featurestore to create. + * @type string $featurestore_id + * Required. The ID to use for this Featurestore, which will become the final + * component of the Featurestore's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create Featurestores. + * Format: + * `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create Featurestores. + * Format: + * `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Featurestore to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Featurestore|null + */ + public function getFeaturestore() + { + return $this->featurestore; + } + + public function hasFeaturestore() + { + return isset($this->featurestore); + } + + public function clearFeaturestore() + { + unset($this->featurestore); + } + + /** + * Required. The Featurestore to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore featurestore = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Featurestore $var + * @return $this + */ + public function setFeaturestore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Featurestore::class); + $this->featurestore = $var; + + return $this; + } + + /** + * Required. The ID to use for this Featurestore, which will become the final + * component of the Featurestore's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * + * Generated from protobuf field string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFeaturestoreId() + { + return $this->featurestore_id; + } + + /** + * Required. The ID to use for this Featurestore, which will become the final + * component of the Featurestore's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + * + * Generated from protobuf field string featurestore_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFeaturestoreId($var) + { + GPBUtil::checkString($var, True); + $this->featurestore_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateHyperparameterTuningJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateHyperparameterTuningJobRequest.php new file mode 100644 index 000000000000..bbc29fe3a679 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateHyperparameterTuningJobRequest.php @@ -0,0 +1,138 @@ +google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + */ +class CreateHyperparameterTuningJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the + * HyperparameterTuningJob in. Format: + * `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The HyperparameterTuningJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.HyperparameterTuningJob hyperparameter_tuning_job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $hyperparameter_tuning_job = null; + + /** + * @param string $parent Required. The resource name of the Location to create the + * HyperparameterTuningJob in. Format: + * `projects/{project}/locations/{location}` + * Please see {@see JobServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\HyperparameterTuningJob $hyperparameterTuningJob Required. The HyperparameterTuningJob to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateHyperparameterTuningJobRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\HyperparameterTuningJob $hyperparameterTuningJob): self + { + return (new self()) + ->setParent($parent) + ->setHyperparameterTuningJob($hyperparameterTuningJob); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the + * HyperparameterTuningJob in. Format: + * `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\HyperparameterTuningJob $hyperparameter_tuning_job + * Required. The HyperparameterTuningJob to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the + * HyperparameterTuningJob in. Format: + * `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the + * HyperparameterTuningJob in. Format: + * `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The HyperparameterTuningJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.HyperparameterTuningJob hyperparameter_tuning_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\HyperparameterTuningJob|null + */ + public function getHyperparameterTuningJob() + { + return $this->hyperparameter_tuning_job; + } + + public function hasHyperparameterTuningJob() + { + return isset($this->hyperparameter_tuning_job); + } + + public function clearHyperparameterTuningJob() + { + unset($this->hyperparameter_tuning_job); + } + + /** + * Required. The HyperparameterTuningJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.HyperparameterTuningJob hyperparameter_tuning_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\HyperparameterTuningJob $var + * @return $this + */ + public function setHyperparameterTuningJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\HyperparameterTuningJob::class); + $this->hyperparameter_tuning_job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexEndpointOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexEndpointOperationMetadata.php new file mode 100644 index 000000000000..c87e3c1abf76 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexEndpointOperationMetadata.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + */ +class CreateIndexEndpointOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The operation generic information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpointService::initOnce(); + parent::__construct($data); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexEndpointRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexEndpointRequest.php new file mode 100644 index 000000000000..6649ba6db0a6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexEndpointRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateIndexEndpointRequest + */ +class CreateIndexEndpointRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the IndexEndpoint in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The IndexEndpoint to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $index_endpoint = null; + + /** + * @param string $parent Required. The resource name of the Location to create the IndexEndpoint in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see IndexEndpointServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\IndexEndpoint $indexEndpoint Required. The IndexEndpoint to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateIndexEndpointRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\IndexEndpoint $indexEndpoint): self + { + return (new self()) + ->setParent($parent) + ->setIndexEndpoint($indexEndpoint); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the IndexEndpoint in. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\IndexEndpoint $index_endpoint + * Required. The IndexEndpoint to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpointService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the IndexEndpoint in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the IndexEndpoint in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The IndexEndpoint to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\IndexEndpoint|null + */ + public function getIndexEndpoint() + { + return $this->index_endpoint; + } + + public function hasIndexEndpoint() + { + return isset($this->index_endpoint); + } + + public function clearIndexEndpoint() + { + unset($this->index_endpoint); + } + + /** + * Required. The IndexEndpoint to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexEndpoint index_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\IndexEndpoint $var + * @return $this + */ + public function setIndexEndpoint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\IndexEndpoint::class); + $this->index_endpoint = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexOperationMetadata.php new file mode 100644 index 000000000000..a7d66dd9462f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexOperationMetadata.php @@ -0,0 +1,122 @@ +google.cloud.aiplatform.v1.CreateIndexOperationMetadata + */ +class CreateIndexOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + /** + * The operation metadata with regard to Matching Engine Index operation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + */ + protected $nearest_neighbor_search_operation_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The operation generic information. + * @type \Google\Cloud\AIPlatform\V1\NearestNeighborSearchOperationMetadata $nearest_neighbor_search_operation_metadata + * The operation metadata with regard to Matching Engine Index operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexService::initOnce(); + parent::__construct($data); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + + /** + * The operation metadata with regard to Matching Engine Index operation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * @return \Google\Cloud\AIPlatform\V1\NearestNeighborSearchOperationMetadata|null + */ + public function getNearestNeighborSearchOperationMetadata() + { + return $this->nearest_neighbor_search_operation_metadata; + } + + public function hasNearestNeighborSearchOperationMetadata() + { + return isset($this->nearest_neighbor_search_operation_metadata); + } + + public function clearNearestNeighborSearchOperationMetadata() + { + unset($this->nearest_neighbor_search_operation_metadata); + } + + /** + * The operation metadata with regard to Matching Engine Index operation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata nearest_neighbor_search_operation_metadata = 2; + * @param \Google\Cloud\AIPlatform\V1\NearestNeighborSearchOperationMetadata $var + * @return $this + */ + public function setNearestNeighborSearchOperationMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\NearestNeighborSearchOperationMetadata::class); + $this->nearest_neighbor_search_operation_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexRequest.php new file mode 100644 index 000000000000..eb6fa1d4e365 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateIndexRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateIndexRequest + */ +class CreateIndexRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the Index in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Index to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $index = null; + + /** + * @param string $parent Required. The resource name of the Location to create the Index in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see IndexServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Index $index Required. The Index to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateIndexRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Index $index): self + { + return (new self()) + ->setParent($parent) + ->setIndex($index); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the Index in. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\Index $index + * Required. The Index to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the Index in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the Index in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Index to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Index|null + */ + public function getIndex() + { + return $this->index; + } + + public function hasIndex() + { + return isset($this->index); + } + + public function clearIndex() + { + unset($this->index); + } + + /** + * Required. The Index to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Index $var + * @return $this + */ + public function setIndex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Index::class); + $this->index = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateMetadataSchemaRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateMetadataSchemaRequest.php new file mode 100644 index 000000000000..f0730dff1318 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateMetadataSchemaRequest.php @@ -0,0 +1,209 @@ +google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + */ +class CreateMetadataSchemaRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the MetadataStore where the MetadataSchema + * should be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The MetadataSchema to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metadata_schema = null; + /** + * The {metadata_schema} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * If not provided, the MetadataStore's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all MetadataSchemas in the parent Location. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataSchema.) + * + * Generated from protobuf field string metadata_schema_id = 3; + */ + protected $metadata_schema_id = ''; + + /** + * @param string $parent Required. The resource name of the MetadataStore where the MetadataSchema + * should be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * Please see {@see MetadataServiceClient::metadataStoreName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\MetadataSchema $metadataSchema Required. The MetadataSchema to create. + * @param string $metadataSchemaId The {metadata_schema} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * If not provided, the MetadataStore's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all MetadataSchemas in the parent Location. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataSchema.) + * + * @return \Google\Cloud\AIPlatform\V1\CreateMetadataSchemaRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\MetadataSchema $metadataSchema, string $metadataSchemaId): self + { + return (new self()) + ->setParent($parent) + ->setMetadataSchema($metadataSchema) + ->setMetadataSchemaId($metadataSchemaId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the MetadataStore where the MetadataSchema + * should be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @type \Google\Cloud\AIPlatform\V1\MetadataSchema $metadata_schema + * Required. The MetadataSchema to create. + * @type string $metadata_schema_id + * The {metadata_schema} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * If not provided, the MetadataStore's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all MetadataSchemas in the parent Location. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataSchema.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the MetadataStore where the MetadataSchema + * should be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the MetadataStore where the MetadataSchema + * should be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The MetadataSchema to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\MetadataSchema|null + */ + public function getMetadataSchema() + { + return $this->metadata_schema; + } + + public function hasMetadataSchema() + { + return isset($this->metadata_schema); + } + + public function clearMetadataSchema() + { + unset($this->metadata_schema); + } + + /** + * Required. The MetadataSchema to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\MetadataSchema $var + * @return $this + */ + public function setMetadataSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\MetadataSchema::class); + $this->metadata_schema = $var; + + return $this; + } + + /** + * The {metadata_schema} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * If not provided, the MetadataStore's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all MetadataSchemas in the parent Location. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataSchema.) + * + * Generated from protobuf field string metadata_schema_id = 3; + * @return string + */ + public function getMetadataSchemaId() + { + return $this->metadata_schema_id; + } + + /** + * The {metadata_schema} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * If not provided, the MetadataStore's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all MetadataSchemas in the parent Location. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataSchema.) + * + * Generated from protobuf field string metadata_schema_id = 3; + * @param string $var + * @return $this + */ + public function setMetadataSchemaId($var) + { + GPBUtil::checkString($var, True); + $this->metadata_schema_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateMetadataStoreOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateMetadataStoreOperationMetadata.php new file mode 100644 index 000000000000..8a2e4b516b29 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateMetadataStoreOperationMetadata.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + */ +class CreateMetadataStoreOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for creating a MetadataStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for creating a MetadataStore. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for creating a MetadataStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for creating a MetadataStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateMetadataStoreRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateMetadataStoreRequest.php new file mode 100644 index 000000000000..e6296df82838 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateMetadataStoreRequest.php @@ -0,0 +1,209 @@ +google.cloud.aiplatform.v1.CreateMetadataStoreRequest + */ +class CreateMetadataStoreRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location where the MetadataStore should + * be created. + * Format: `projects/{project}/locations/{location}/` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The MetadataStore to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metadata_store = null; + /** + * The {metadatastore} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * If not provided, the MetadataStore's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all MetadataStores in the parent Location. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataStore.) + * + * Generated from protobuf field string metadata_store_id = 3; + */ + protected $metadata_store_id = ''; + + /** + * @param string $parent Required. The resource name of the Location where the MetadataStore should + * be created. + * Format: `projects/{project}/locations/{location}/` + * Please see {@see MetadataServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\MetadataStore $metadataStore Required. The MetadataStore to create. + * @param string $metadataStoreId The {metadatastore} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * If not provided, the MetadataStore's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all MetadataStores in the parent Location. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataStore.) + * + * @return \Google\Cloud\AIPlatform\V1\CreateMetadataStoreRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\MetadataStore $metadataStore, string $metadataStoreId): self + { + return (new self()) + ->setParent($parent) + ->setMetadataStore($metadataStore) + ->setMetadataStoreId($metadataStoreId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location where the MetadataStore should + * be created. + * Format: `projects/{project}/locations/{location}/` + * @type \Google\Cloud\AIPlatform\V1\MetadataStore $metadata_store + * Required. The MetadataStore to create. + * @type string $metadata_store_id + * The {metadatastore} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * If not provided, the MetadataStore's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all MetadataStores in the parent Location. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataStore.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location where the MetadataStore should + * be created. + * Format: `projects/{project}/locations/{location}/` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location where the MetadataStore should + * be created. + * Format: `projects/{project}/locations/{location}/` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The MetadataStore to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\MetadataStore|null + */ + public function getMetadataStore() + { + return $this->metadata_store; + } + + public function hasMetadataStore() + { + return isset($this->metadata_store); + } + + public function clearMetadataStore() + { + unset($this->metadata_store); + } + + /** + * Required. The MetadataStore to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MetadataStore metadata_store = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\MetadataStore $var + * @return $this + */ + public function setMetadataStore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\MetadataStore::class); + $this->metadata_store = $var; + + return $this; + } + + /** + * The {metadatastore} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * If not provided, the MetadataStore's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all MetadataStores in the parent Location. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataStore.) + * + * Generated from protobuf field string metadata_store_id = 3; + * @return string + */ + public function getMetadataStoreId() + { + return $this->metadata_store_id; + } + + /** + * The {metadatastore} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * If not provided, the MetadataStore's ID will be a UUID generated by the + * service. + * Must be 4-128 characters in length. Valid characters are `/[a-z][0-9]-/`. + * Must be unique across all MetadataStores in the parent Location. + * (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED + * if the caller can't view the preexisting MetadataStore.) + * + * Generated from protobuf field string metadata_store_id = 3; + * @param string $var + * @return $this + */ + public function setMetadataStoreId($var) + { + GPBUtil::checkString($var, True); + $this->metadata_store_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateModelDeploymentMonitoringJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateModelDeploymentMonitoringJobRequest.php new file mode 100644 index 000000000000..42753eba208e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateModelDeploymentMonitoringJobRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + */ +class CreateModelDeploymentMonitoringJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent of the ModelDeploymentMonitoringJob. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ModelDeploymentMonitoringJob to create + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $model_deployment_monitoring_job = null; + + /** + * @param string $parent Required. The parent of the ModelDeploymentMonitoringJob. + * Format: `projects/{project}/locations/{location}` + * Please see {@see JobServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\ModelDeploymentMonitoringJob $modelDeploymentMonitoringJob Required. The ModelDeploymentMonitoringJob to create + * + * @return \Google\Cloud\AIPlatform\V1\CreateModelDeploymentMonitoringJobRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\ModelDeploymentMonitoringJob $modelDeploymentMonitoringJob): self + { + return (new self()) + ->setParent($parent) + ->setModelDeploymentMonitoringJob($modelDeploymentMonitoringJob); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent of the ModelDeploymentMonitoringJob. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\ModelDeploymentMonitoringJob $model_deployment_monitoring_job + * Required. The ModelDeploymentMonitoringJob to create + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent of the ModelDeploymentMonitoringJob. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent of the ModelDeploymentMonitoringJob. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The ModelDeploymentMonitoringJob to create + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\ModelDeploymentMonitoringJob|null + */ + public function getModelDeploymentMonitoringJob() + { + return $this->model_deployment_monitoring_job; + } + + public function hasModelDeploymentMonitoringJob() + { + return isset($this->model_deployment_monitoring_job); + } + + public function clearModelDeploymentMonitoringJob() + { + unset($this->model_deployment_monitoring_job); + } + + /** + * Required. The ModelDeploymentMonitoringJob to create + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob model_deployment_monitoring_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\ModelDeploymentMonitoringJob $var + * @return $this + */ + public function setModelDeploymentMonitoringJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ModelDeploymentMonitoringJob::class); + $this->model_deployment_monitoring_job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateNasJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateNasJobRequest.php new file mode 100644 index 000000000000..12c1010b4376 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateNasJobRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateNasJobRequest + */ +class CreateNasJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The NasJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.NasJob nas_job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $nas_job = null; + + /** + * @param string $parent Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see JobServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\NasJob $nasJob Required. The NasJob to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateNasJobRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\NasJob $nasJob): self + { + return (new self()) + ->setParent($parent) + ->setNasJob($nasJob); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\NasJob $nas_job + * Required. The NasJob to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The NasJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.NasJob nas_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\NasJob|null + */ + public function getNasJob() + { + return $this->nas_job; + } + + public function hasNasJob() + { + return isset($this->nas_job); + } + + public function clearNasJob() + { + unset($this->nas_job); + } + + /** + * Required. The NasJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.NasJob nas_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\NasJob $var + * @return $this + */ + public function setNasJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\NasJob::class); + $this->nas_job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreatePipelineJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreatePipelineJobRequest.php new file mode 100644 index 000000000000..3f82ca54660f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreatePipelineJobRequest.php @@ -0,0 +1,190 @@ +google.cloud.aiplatform.v1.CreatePipelineJobRequest + */ +class CreatePipelineJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the PipelineJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The PipelineJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $pipeline_job = null; + /** + * The ID to use for the PipelineJob, which will become the final component of + * the PipelineJob name. If not provided, an ID will be automatically + * generated. + * This value should be less than 128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * Generated from protobuf field string pipeline_job_id = 3; + */ + protected $pipeline_job_id = ''; + + /** + * @param string $parent Required. The resource name of the Location to create the PipelineJob in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see PipelineServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\PipelineJob $pipelineJob Required. The PipelineJob to create. + * @param string $pipelineJobId The ID to use for the PipelineJob, which will become the final component of + * the PipelineJob name. If not provided, an ID will be automatically + * generated. + * + * This value should be less than 128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * @return \Google\Cloud\AIPlatform\V1\CreatePipelineJobRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\PipelineJob $pipelineJob, string $pipelineJobId): self + { + return (new self()) + ->setParent($parent) + ->setPipelineJob($pipelineJob) + ->setPipelineJobId($pipelineJobId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the PipelineJob in. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\PipelineJob $pipeline_job + * Required. The PipelineJob to create. + * @type string $pipeline_job_id + * The ID to use for the PipelineJob, which will become the final component of + * the PipelineJob name. If not provided, an ID will be automatically + * generated. + * This value should be less than 128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PipelineService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the PipelineJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the PipelineJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The PipelineJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\PipelineJob|null + */ + public function getPipelineJob() + { + return $this->pipeline_job; + } + + public function hasPipelineJob() + { + return isset($this->pipeline_job); + } + + public function clearPipelineJob() + { + unset($this->pipeline_job); + } + + /** + * Required. The PipelineJob to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\PipelineJob $var + * @return $this + */ + public function setPipelineJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\PipelineJob::class); + $this->pipeline_job = $var; + + return $this; + } + + /** + * The ID to use for the PipelineJob, which will become the final component of + * the PipelineJob name. If not provided, an ID will be automatically + * generated. + * This value should be less than 128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * Generated from protobuf field string pipeline_job_id = 3; + * @return string + */ + public function getPipelineJobId() + { + return $this->pipeline_job_id; + } + + /** + * The ID to use for the PipelineJob, which will become the final component of + * the PipelineJob name. If not provided, an ID will be automatically + * generated. + * This value should be less than 128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * Generated from protobuf field string pipeline_job_id = 3; + * @param string $var + * @return $this + */ + public function setPipelineJobId($var) + { + GPBUtil::checkString($var, True); + $this->pipeline_job_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateRegistryFeatureOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateRegistryFeatureOperationMetadata.php new file mode 100644 index 000000000000..bd41c4b8e253 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateRegistryFeatureOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata + */ +class CreateRegistryFeatureOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for Feature. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for Feature. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureRegistryService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for Feature. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for Feature. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateScheduleRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateScheduleRequest.php new file mode 100644 index 000000000000..1eedb9122b64 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateScheduleRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateScheduleRequest + */ +class CreateScheduleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the Schedule in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Schedule to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Schedule schedule = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $schedule = null; + + /** + * @param string $parent Required. The resource name of the Location to create the Schedule in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see ScheduleServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Schedule $schedule Required. The Schedule to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateScheduleRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Schedule $schedule): self + { + return (new self()) + ->setParent($parent) + ->setSchedule($schedule); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the Schedule in. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\Schedule $schedule + * Required. The Schedule to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ScheduleService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the Schedule in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the Schedule in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Schedule to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Schedule schedule = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Schedule|null + */ + public function getSchedule() + { + return $this->schedule; + } + + public function hasSchedule() + { + return isset($this->schedule); + } + + public function clearSchedule() + { + unset($this->schedule); + } + + /** + * Required. The Schedule to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Schedule schedule = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Schedule $var + * @return $this + */ + public function setSchedule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Schedule::class); + $this->schedule = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateSpecialistPoolOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateSpecialistPoolOperationMetadata.php new file mode 100644 index 000000000000..09d7fb3f3f32 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateSpecialistPoolOperationMetadata.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata + */ +class CreateSpecialistPoolOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The operation generic information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\SpecialistPoolService::initOnce(); + parent::__construct($data); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateSpecialistPoolRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateSpecialistPoolRequest.php new file mode 100644 index 000000000000..99819c0e077d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateSpecialistPoolRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateSpecialistPoolRequest + */ +class CreateSpecialistPoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent Project name for the new SpecialistPool. + * The form is `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The SpecialistPool to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.SpecialistPool specialist_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $specialist_pool = null; + + /** + * @param string $parent Required. The parent Project name for the new SpecialistPool. + * The form is `projects/{project}/locations/{location}`. Please see + * {@see SpecialistPoolServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\SpecialistPool $specialistPool Required. The SpecialistPool to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateSpecialistPoolRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\SpecialistPool $specialistPool): self + { + return (new self()) + ->setParent($parent) + ->setSpecialistPool($specialistPool); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent Project name for the new SpecialistPool. + * The form is `projects/{project}/locations/{location}`. + * @type \Google\Cloud\AIPlatform\V1\SpecialistPool $specialist_pool + * Required. The SpecialistPool to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\SpecialistPoolService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent Project name for the new SpecialistPool. + * The form is `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent Project name for the new SpecialistPool. + * The form is `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The SpecialistPool to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.SpecialistPool specialist_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\SpecialistPool|null + */ + public function getSpecialistPool() + { + return $this->specialist_pool; + } + + public function hasSpecialistPool() + { + return isset($this->specialist_pool); + } + + public function clearSpecialistPool() + { + unset($this->specialist_pool); + } + + /** + * Required. The SpecialistPool to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.SpecialistPool specialist_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\SpecialistPool $var + * @return $this + */ + public function setSpecialistPool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\SpecialistPool::class); + $this->specialist_pool = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateStudyRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateStudyRequest.php new file mode 100644 index 000000000000..44171412c6f6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateStudyRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateStudyRequest + */ +class CreateStudyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Study configuration used to create the Study. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $study = null; + + /** + * @param string $parent Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see VizierServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Study $study Required. The Study configuration used to create the Study. + * + * @return \Google\Cloud\AIPlatform\V1\CreateStudyRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Study $study): self + { + return (new self()) + ->setParent($parent) + ->setStudy($study); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\Study $study + * Required. The Study configuration used to create the Study. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the CustomJob in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Study configuration used to create the Study. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Study|null + */ + public function getStudy() + { + return $this->study; + } + + public function hasStudy() + { + return isset($this->study); + } + + public function clearStudy() + { + unset($this->study); + } + + /** + * Required. The Study configuration used to create the Study. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Study study = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Study $var + * @return $this + */ + public function setStudy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Study::class); + $this->study = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardExperimentRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardExperimentRequest.php new file mode 100644 index 000000000000..26fcd906e9ec --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardExperimentRequest.php @@ -0,0 +1,190 @@ +google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest + */ +class CreateTensorboardExperimentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Tensorboard to create the + * TensorboardExperiment in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The TensorboardExperiment to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TensorboardExperiment tensorboard_experiment = 2; + */ + protected $tensorboard_experiment = null; + /** + * Required. The ID to use for the Tensorboard experiment, which becomes the + * final component of the Tensorboard experiment's resource name. + * This value should be 1-128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * Generated from protobuf field string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tensorboard_experiment_id = ''; + + /** + * @param string $parent Required. The resource name of the Tensorboard to create the + * TensorboardExperiment in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * Please see {@see TensorboardServiceClient::tensorboardExperimentName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\TensorboardExperiment $tensorboardExperiment The TensorboardExperiment to create. + * @param string $tensorboardExperimentId Required. The ID to use for the Tensorboard experiment, which becomes the + * final component of the Tensorboard experiment's resource name. + * + * This value should be 1-128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * @return \Google\Cloud\AIPlatform\V1\CreateTensorboardExperimentRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\TensorboardExperiment $tensorboardExperiment, string $tensorboardExperimentId): self + { + return (new self()) + ->setParent($parent) + ->setTensorboardExperiment($tensorboardExperiment) + ->setTensorboardExperimentId($tensorboardExperimentId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Tensorboard to create the + * TensorboardExperiment in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @type \Google\Cloud\AIPlatform\V1\TensorboardExperiment $tensorboard_experiment + * The TensorboardExperiment to create. + * @type string $tensorboard_experiment_id + * Required. The ID to use for the Tensorboard experiment, which becomes the + * final component of the Tensorboard experiment's resource name. + * This value should be 1-128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Tensorboard to create the + * TensorboardExperiment in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Tensorboard to create the + * TensorboardExperiment in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The TensorboardExperiment to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TensorboardExperiment tensorboard_experiment = 2; + * @return \Google\Cloud\AIPlatform\V1\TensorboardExperiment|null + */ + public function getTensorboardExperiment() + { + return $this->tensorboard_experiment; + } + + public function hasTensorboardExperiment() + { + return isset($this->tensorboard_experiment); + } + + public function clearTensorboardExperiment() + { + unset($this->tensorboard_experiment); + } + + /** + * The TensorboardExperiment to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TensorboardExperiment tensorboard_experiment = 2; + * @param \Google\Cloud\AIPlatform\V1\TensorboardExperiment $var + * @return $this + */ + public function setTensorboardExperiment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\TensorboardExperiment::class); + $this->tensorboard_experiment = $var; + + return $this; + } + + /** + * Required. The ID to use for the Tensorboard experiment, which becomes the + * final component of the Tensorboard experiment's resource name. + * This value should be 1-128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * Generated from protobuf field string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTensorboardExperimentId() + { + return $this->tensorboard_experiment_id; + } + + /** + * Required. The ID to use for the Tensorboard experiment, which becomes the + * final component of the Tensorboard experiment's resource name. + * This value should be 1-128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * Generated from protobuf field string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTensorboardExperimentId($var) + { + GPBUtil::checkString($var, True); + $this->tensorboard_experiment_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardOperationMetadata.php new file mode 100644 index 000000000000..d616c1223d86 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata + */ +class CreateTensorboardOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for Tensorboard. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for Tensorboard. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for Tensorboard. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for Tensorboard. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardRequest.php new file mode 100644 index 000000000000..c90005dce05d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateTensorboardRequest + */ +class CreateTensorboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the Tensorboard in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Tensorboard to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tensorboard = null; + + /** + * @param string $parent Required. The resource name of the Location to create the Tensorboard in. + * Format: `projects/{project}/locations/{location}` + * Please see {@see TensorboardServiceClient::tensorboardName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Tensorboard $tensorboard Required. The Tensorboard to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateTensorboardRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Tensorboard $tensorboard): self + { + return (new self()) + ->setParent($parent) + ->setTensorboard($tensorboard); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the Tensorboard in. + * Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\Tensorboard $tensorboard + * Required. The Tensorboard to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the Tensorboard in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the Tensorboard in. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Tensorboard to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Tensorboard|null + */ + public function getTensorboard() + { + return $this->tensorboard; + } + + public function hasTensorboard() + { + return isset($this->tensorboard); + } + + public function clearTensorboard() + { + unset($this->tensorboard); + } + + /** + * Required. The Tensorboard to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Tensorboard tensorboard = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Tensorboard $var + * @return $this + */ + public function setTensorboard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Tensorboard::class); + $this->tensorboard = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardRunRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardRunRequest.php new file mode 100644 index 000000000000..4e6f6e0f97ac --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardRunRequest.php @@ -0,0 +1,190 @@ +google.cloud.aiplatform.v1.CreateTensorboardRunRequest + */ +class CreateTensorboardRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardRun in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The TensorboardRun to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tensorboard_run = null; + /** + * Required. The ID to use for the Tensorboard run, which becomes the final + * component of the Tensorboard run's resource name. + * This value should be 1-128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * Generated from protobuf field string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tensorboard_run_id = ''; + + /** + * @param string $parent Required. The resource name of the TensorboardExperiment to create the + * TensorboardRun in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * Please see {@see TensorboardServiceClient::tensorboardRunName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\TensorboardRun $tensorboardRun Required. The TensorboardRun to create. + * @param string $tensorboardRunId Required. The ID to use for the Tensorboard run, which becomes the final + * component of the Tensorboard run's resource name. + * + * This value should be 1-128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * @return \Google\Cloud\AIPlatform\V1\CreateTensorboardRunRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\TensorboardRun $tensorboardRun, string $tensorboardRunId): self + { + return (new self()) + ->setParent($parent) + ->setTensorboardRun($tensorboardRun) + ->setTensorboardRunId($tensorboardRunId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardRun in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * @type \Google\Cloud\AIPlatform\V1\TensorboardRun $tensorboard_run + * Required. The TensorboardRun to create. + * @type string $tensorboard_run_id + * Required. The ID to use for the Tensorboard run, which becomes the final + * component of the Tensorboard run's resource name. + * This value should be 1-128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardRun in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the TensorboardExperiment to create the + * TensorboardRun in. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The TensorboardRun to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\TensorboardRun|null + */ + public function getTensorboardRun() + { + return $this->tensorboard_run; + } + + public function hasTensorboardRun() + { + return isset($this->tensorboard_run); + } + + public function clearTensorboardRun() + { + unset($this->tensorboard_run); + } + + /** + * Required. The TensorboardRun to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TensorboardRun tensorboard_run = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\TensorboardRun $var + * @return $this + */ + public function setTensorboardRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\TensorboardRun::class); + $this->tensorboard_run = $var; + + return $this; + } + + /** + * Required. The ID to use for the Tensorboard run, which becomes the final + * component of the Tensorboard run's resource name. + * This value should be 1-128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * Generated from protobuf field string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTensorboardRunId() + { + return $this->tensorboard_run_id; + } + + /** + * Required. The ID to use for the Tensorboard run, which becomes the final + * component of the Tensorboard run's resource name. + * This value should be 1-128 characters, and valid characters + * are `/[a-z][0-9]-/`. + * + * Generated from protobuf field string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTensorboardRunId($var) + { + GPBUtil::checkString($var, True); + $this->tensorboard_run_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardTimeSeriesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardTimeSeriesRequest.php new file mode 100644 index 000000000000..083318647e35 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTensorboardTimeSeriesRequest.php @@ -0,0 +1,189 @@ +google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest + */ +class CreateTensorboardTimeSeriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the TensorboardRun to create the + * TensorboardTimeSeries in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The user specified unique ID to use for the + * TensorboardTimeSeries, which becomes the final component of the + * TensorboardTimeSeries's resource name. This value should match + * "[a-z0-9][a-z0-9-]{0, 127}" + * + * Generated from protobuf field string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $tensorboard_time_series_id = ''; + /** + * Required. The TensorboardTimeSeries to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tensorboard_time_series = null; + + /** + * @param string $parent Required. The resource name of the TensorboardRun to create the + * TensorboardTimeSeries in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * Please see {@see TensorboardServiceClient::tensorboardTimeSeriesName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\TensorboardTimeSeries $tensorboardTimeSeries Required. The TensorboardTimeSeries to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateTensorboardTimeSeriesRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\TensorboardTimeSeries $tensorboardTimeSeries): self + { + return (new self()) + ->setParent($parent) + ->setTensorboardTimeSeries($tensorboardTimeSeries); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the TensorboardRun to create the + * TensorboardTimeSeries in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * @type string $tensorboard_time_series_id + * Optional. The user specified unique ID to use for the + * TensorboardTimeSeries, which becomes the final component of the + * TensorboardTimeSeries's resource name. This value should match + * "[a-z0-9][a-z0-9-]{0, 127}" + * @type \Google\Cloud\AIPlatform\V1\TensorboardTimeSeries $tensorboard_time_series + * Required. The TensorboardTimeSeries to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the TensorboardRun to create the + * TensorboardTimeSeries in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the TensorboardRun to create the + * TensorboardTimeSeries in. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The user specified unique ID to use for the + * TensorboardTimeSeries, which becomes the final component of the + * TensorboardTimeSeries's resource name. This value should match + * "[a-z0-9][a-z0-9-]{0, 127}" + * + * Generated from protobuf field string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTensorboardTimeSeriesId() + { + return $this->tensorboard_time_series_id; + } + + /** + * Optional. The user specified unique ID to use for the + * TensorboardTimeSeries, which becomes the final component of the + * TensorboardTimeSeries's resource name. This value should match + * "[a-z0-9][a-z0-9-]{0, 127}" + * + * Generated from protobuf field string tensorboard_time_series_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTensorboardTimeSeriesId($var) + { + GPBUtil::checkString($var, True); + $this->tensorboard_time_series_id = $var; + + return $this; + } + + /** + * Required. The TensorboardTimeSeries to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\TensorboardTimeSeries|null + */ + public function getTensorboardTimeSeries() + { + return $this->tensorboard_time_series; + } + + public function hasTensorboardTimeSeries() + { + return isset($this->tensorboard_time_series); + } + + public function clearTensorboardTimeSeries() + { + unset($this->tensorboard_time_series); + } + + /** + * Required. The TensorboardTimeSeries to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TensorboardTimeSeries tensorboard_time_series = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\TensorboardTimeSeries $var + * @return $this + */ + public function setTensorboardTimeSeries($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\TensorboardTimeSeries::class); + $this->tensorboard_time_series = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTrainingPipelineRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTrainingPipelineRequest.php new file mode 100644 index 000000000000..e7ee7ee5ed66 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTrainingPipelineRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + */ +class CreateTrainingPipelineRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location to create the TrainingPipeline + * in. Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The TrainingPipeline to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TrainingPipeline training_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $training_pipeline = null; + + /** + * @param string $parent Required. The resource name of the Location to create the TrainingPipeline + * in. Format: `projects/{project}/locations/{location}` + * Please see {@see PipelineServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\TrainingPipeline $trainingPipeline Required. The TrainingPipeline to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateTrainingPipelineRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\TrainingPipeline $trainingPipeline): self + { + return (new self()) + ->setParent($parent) + ->setTrainingPipeline($trainingPipeline); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Location to create the TrainingPipeline + * in. Format: `projects/{project}/locations/{location}` + * @type \Google\Cloud\AIPlatform\V1\TrainingPipeline $training_pipeline + * Required. The TrainingPipeline to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PipelineService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location to create the TrainingPipeline + * in. Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Location to create the TrainingPipeline + * in. Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The TrainingPipeline to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TrainingPipeline training_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\TrainingPipeline|null + */ + public function getTrainingPipeline() + { + return $this->training_pipeline; + } + + public function hasTrainingPipeline() + { + return isset($this->training_pipeline); + } + + public function clearTrainingPipeline() + { + unset($this->training_pipeline); + } + + /** + * Required. The TrainingPipeline to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TrainingPipeline training_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\TrainingPipeline $var + * @return $this + */ + public function setTrainingPipeline($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\TrainingPipeline::class); + $this->training_pipeline = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTrialRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTrialRequest.php new file mode 100644 index 000000000000..d2551167761d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CreateTrialRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.CreateTrialRequest + */ +class CreateTrialRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Study to create the Trial in. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Trial to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trial = null; + + /** + * @param string $parent Required. The resource name of the Study to create the Trial in. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * Please see {@see VizierServiceClient::studyName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\Trial $trial Required. The Trial to create. + * + * @return \Google\Cloud\AIPlatform\V1\CreateTrialRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\Trial $trial): self + { + return (new self()) + ->setParent($parent) + ->setTrial($trial); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the Study to create the Trial in. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * @type \Google\Cloud\AIPlatform\V1\Trial $trial + * Required. The Trial to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Study to create the Trial in. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the Study to create the Trial in. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Trial to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\Trial|null + */ + public function getTrial() + { + return $this->trial; + } + + public function hasTrial() + { + return isset($this->trial); + } + + public function clearTrial() + { + unset($this->trial); + } + + /** + * Required. The Trial to create. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\Trial $var + * @return $this + */ + public function setTrial($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Trial::class); + $this->trial = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CsvDestination.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CsvDestination.php new file mode 100644 index 000000000000..70c7a3eafe6e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CsvDestination.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.CsvDestination + */ +class CsvDestination extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Google Cloud Storage location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $gcs_destination = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GcsDestination $gcs_destination + * Required. Google Cloud Storage location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce(); + parent::__construct($data); + } + + /** + * Required. Google Cloud Storage location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\GcsDestination|null + */ + public function getGcsDestination() + { + return $this->gcs_destination; + } + + public function hasGcsDestination() + { + return isset($this->gcs_destination); + } + + public function clearGcsDestination() + { + unset($this->gcs_destination); + } + + /** + * Required. Google Cloud Storage location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\GcsDestination $var + * @return $this + */ + public function setGcsDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GcsDestination::class); + $this->gcs_destination = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CsvSource.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CsvSource.php new file mode 100644 index 000000000000..9831670ed928 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CsvSource.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.CsvSource + */ +class CsvSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Google Cloud Storage location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $gcs_source = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GcsSource $gcs_source + * Required. Google Cloud Storage location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce(); + parent::__construct($data); + } + + /** + * Required. Google Cloud Storage location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\GcsSource|null + */ + public function getGcsSource() + { + return $this->gcs_source; + } + + public function hasGcsSource() + { + return isset($this->gcs_source); + } + + public function clearGcsSource() + { + unset($this->gcs_source); + } + + /** + * Required. Google Cloud Storage location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\GcsSource $var + * @return $this + */ + public function setGcsSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GcsSource::class); + $this->gcs_source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CustomJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CustomJob.php new file mode 100644 index 000000000000..116820996d64 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CustomJob.php @@ -0,0 +1,594 @@ +google.cloud.aiplatform.v1.CustomJob + */ +class CustomJob extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of a CustomJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The display name of the CustomJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Required. Job spec. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CustomJobSpec job_spec = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $job_spec = null; + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Time when the CustomJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when the CustomJob for the first time entered the + * `JOB_STATE_RUNNING` state. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. Time when the CustomJob entered any of the following states: + * `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Time when the CustomJob was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Only populated when job's state is `JOB_STATE_FAILED` or + * `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error = null; + /** + * The labels with user-defined metadata to organize CustomJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 11; + */ + private $labels; + /** + * Customer-managed encryption key options for a CustomJob. If this is set, + * then all resources created by the CustomJob will be encrypted with the + * provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 12; + */ + protected $encryption_spec = null; + /** + * Output only. URIs for accessing [interactive + * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) + * (one URI for each training node). Only available if + * [job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] + * is `true`. + * The keys are names of each node in the training job; for example, + * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in + * the second worker pool, and `workerpool1-1` for the second node in the + * second worker pool. + * The values are the URIs for each node's interactive shell. + * + * Generated from protobuf field map web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $web_access_uris; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of a CustomJob. + * @type string $display_name + * Required. The display name of the CustomJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * @type \Google\Cloud\AIPlatform\V1\CustomJobSpec $job_spec + * Required. Job spec. + * @type int $state + * Output only. The detailed state of the job. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the CustomJob was created. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. Time when the CustomJob for the first time entered the + * `JOB_STATE_RUNNING` state. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. Time when the CustomJob entered any of the following states: + * `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when the CustomJob was most recently updated. + * @type \Google\Rpc\Status $error + * Output only. Only populated when job's state is `JOB_STATE_FAILED` or + * `JOB_STATE_CANCELLED`. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize CustomJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec + * Customer-managed encryption key options for a CustomJob. If this is set, + * then all resources created by the CustomJob will be encrypted with the + * provided encryption key. + * @type array|\Google\Protobuf\Internal\MapField $web_access_uris + * Output only. URIs for accessing [interactive + * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) + * (one URI for each training node). Only available if + * [job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] + * is `true`. + * The keys are names of each node in the training job; for example, + * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in + * the second worker pool, and `workerpool1-1` for the second node in the + * second worker pool. + * The values are the URIs for each node's interactive shell. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\CustomJob::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of a CustomJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of a CustomJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the CustomJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of the CustomJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. Job spec. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CustomJobSpec job_spec = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\CustomJobSpec|null + */ + public function getJobSpec() + { + return $this->job_spec; + } + + public function hasJobSpec() + { + return isset($this->job_spec); + } + + public function clearJobSpec() + { + unset($this->job_spec); + } + + /** + * Required. Job spec. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CustomJobSpec job_spec = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\CustomJobSpec $var + * @return $this + */ + public function setJobSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CustomJobSpec::class); + $this->job_spec = $var; + + return $this; + } + + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\JobState::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Time when the CustomJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when the CustomJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when the CustomJob for the first time entered the + * `JOB_STATE_RUNNING` state. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Output only. Time when the CustomJob for the first time entered the + * `JOB_STATE_RUNNING` state. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. Time when the CustomJob entered any of the following states: + * `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. Time when the CustomJob entered any of the following states: + * `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Time when the CustomJob was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when the CustomJob was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Only populated when job's state is `JOB_STATE_FAILED` or + * `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Output only. Only populated when job's state is `JOB_STATE_FAILED` or + * `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->error = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize CustomJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 11; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize CustomJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 11; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Customer-managed encryption key options for a CustomJob. If this is set, + * then all resources created by the CustomJob will be encrypted with the + * provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 12; + * @return \Google\Cloud\AIPlatform\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Customer-managed encryption key options for a CustomJob. If this is set, + * then all resources created by the CustomJob will be encrypted with the + * provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 12; + * @param \Google\Cloud\AIPlatform\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + + /** + * Output only. URIs for accessing [interactive + * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) + * (one URI for each training node). Only available if + * [job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] + * is `true`. + * The keys are names of each node in the training job; for example, + * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in + * the second worker pool, and `workerpool1-1` for the second node in the + * second worker pool. + * The values are the URIs for each node's interactive shell. + * + * Generated from protobuf field map web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getWebAccessUris() + { + return $this->web_access_uris; + } + + /** + * Output only. URIs for accessing [interactive + * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) + * (one URI for each training node). Only available if + * [job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] + * is `true`. + * The keys are names of each node in the training job; for example, + * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in + * the second worker pool, and `workerpool1-1` for the second node in the + * second worker pool. + * The values are the URIs for each node's interactive shell. + * + * Generated from protobuf field map web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setWebAccessUris($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->web_access_uris = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CustomJobSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CustomJobSpec.php new file mode 100644 index 000000000000..e524582ee5e7 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/CustomJobSpec.php @@ -0,0 +1,713 @@ +google.cloud.aiplatform.v1.CustomJobSpec + */ +class CustomJobSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The spec of the worker pools including machine type and Docker + * image. All worker pools except the first one are optional and can be + * skipped by providing an empty value. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.WorkerPoolSpec worker_pool_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $worker_pool_specs; + /** + * Scheduling options for a CustomJob. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Scheduling scheduling = 3; + */ + protected $scheduling = null; + /** + * Specifies the service account for workload run-as account. + * Users submitting jobs must have act-as permission on this run-as account. + * If unspecified, the [Vertex AI Custom Code Service + * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + * for the CustomJob's project is used. + * + * Generated from protobuf field string service_account = 4; + */ + protected $service_account = ''; + /** + * Optional. The full name of the Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the Job + * should be peered. For example, `projects/12345/global/networks/myVPC`. + * [Format](/compute/docs/reference/rest/v1/networks/insert) + * is of the form `projects/{project}/global/networks/{network}`. + * Where {project} is a project number, as in `12345`, and {network} is a + * network name. + * To specify this field, you must have already [configured VPC Network + * Peering for Vertex + * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). + * If this field is left unspecified, the job is not peered with any network. + * + * Generated from protobuf field string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $network = ''; + /** + * Optional. A list of names for the reserved ip ranges under the VPC network + * that can be used for this job. + * If set, we will deploy the job within the provided ip ranges. Otherwise, + * the job will be deployed to any ip ranges under the provided VPC + * network. + * Example: ['vertex-ai-ip-range']. + * + * Generated from protobuf field repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $reserved_ip_ranges; + /** + * The Cloud Storage location to store the output of this CustomJob or + * HyperparameterTuningJob. For HyperparameterTuningJob, + * the baseOutputDirectory of + * each child CustomJob backing a Trial is set to a subdirectory of name + * [id][google.cloud.aiplatform.v1.Trial.id] under its parent + * HyperparameterTuningJob's baseOutputDirectory. + * The following Vertex AI environment variables will be passed to + * containers or python modules when this field is set: + * For CustomJob: + * * AIP_MODEL_DIR = `/model/` + * * AIP_CHECKPOINT_DIR = `/checkpoints/` + * * AIP_TENSORBOARD_LOG_DIR = `/logs/` + * For CustomJob backing a Trial of HyperparameterTuningJob: + * * AIP_MODEL_DIR = `//model/` + * * AIP_CHECKPOINT_DIR = `//checkpoints/` + * * AIP_TENSORBOARD_LOG_DIR = `//logs/` + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination base_output_directory = 6; + */ + protected $base_output_directory = null; + /** + * The ID of the location to store protected artifacts. e.g. us-central1. + * Populate only when the location is different than CustomJob location. + * List of supported locations: + * https://cloud.google.com/vertex-ai/docs/general/locations + * + * Generated from protobuf field string protected_artifact_location_id = 19; + */ + protected $protected_artifact_location_id = ''; + /** + * Optional. The name of a Vertex AI + * [Tensorboard][google.cloud.aiplatform.v1.Tensorboard] resource to which + * this CustomJob will upload Tensorboard logs. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $tensorboard = ''; + /** + * Optional. Whether you want Vertex AI to enable [interactive shell + * access](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) + * to training containers. + * If set to `true`, you can access interactive shells at the URIs given + * by + * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] + * or + * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] + * (within + * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). + * + * Generated from protobuf field bool enable_web_access = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_web_access = false; + /** + * Optional. Whether you want Vertex AI to enable access to the customized + * dashboard in training chief container. + * If set to `true`, you can access the dashboard at the URIs given + * by + * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] + * or + * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] + * (within + * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). + * + * Generated from protobuf field bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_dashboard_access = false; + /** + * Optional. The Experiment associated with this job. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}` + * + * Generated from protobuf field string experiment = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $experiment = ''; + /** + * Optional. The Experiment Run associated with this job. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}` + * + * Generated from protobuf field string experiment_run = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $experiment_run = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\WorkerPoolSpec>|\Google\Protobuf\Internal\RepeatedField $worker_pool_specs + * Required. The spec of the worker pools including machine type and Docker + * image. All worker pools except the first one are optional and can be + * skipped by providing an empty value. + * @type \Google\Cloud\AIPlatform\V1\Scheduling $scheduling + * Scheduling options for a CustomJob. + * @type string $service_account + * Specifies the service account for workload run-as account. + * Users submitting jobs must have act-as permission on this run-as account. + * If unspecified, the [Vertex AI Custom Code Service + * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + * for the CustomJob's project is used. + * @type string $network + * Optional. The full name of the Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the Job + * should be peered. For example, `projects/12345/global/networks/myVPC`. + * [Format](/compute/docs/reference/rest/v1/networks/insert) + * is of the form `projects/{project}/global/networks/{network}`. + * Where {project} is a project number, as in `12345`, and {network} is a + * network name. + * To specify this field, you must have already [configured VPC Network + * Peering for Vertex + * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). + * If this field is left unspecified, the job is not peered with any network. + * @type array|\Google\Protobuf\Internal\RepeatedField $reserved_ip_ranges + * Optional. A list of names for the reserved ip ranges under the VPC network + * that can be used for this job. + * If set, we will deploy the job within the provided ip ranges. Otherwise, + * the job will be deployed to any ip ranges under the provided VPC + * network. + * Example: ['vertex-ai-ip-range']. + * @type \Google\Cloud\AIPlatform\V1\GcsDestination $base_output_directory + * The Cloud Storage location to store the output of this CustomJob or + * HyperparameterTuningJob. For HyperparameterTuningJob, + * the baseOutputDirectory of + * each child CustomJob backing a Trial is set to a subdirectory of name + * [id][google.cloud.aiplatform.v1.Trial.id] under its parent + * HyperparameterTuningJob's baseOutputDirectory. + * The following Vertex AI environment variables will be passed to + * containers or python modules when this field is set: + * For CustomJob: + * * AIP_MODEL_DIR = `/model/` + * * AIP_CHECKPOINT_DIR = `/checkpoints/` + * * AIP_TENSORBOARD_LOG_DIR = `/logs/` + * For CustomJob backing a Trial of HyperparameterTuningJob: + * * AIP_MODEL_DIR = `//model/` + * * AIP_CHECKPOINT_DIR = `//checkpoints/` + * * AIP_TENSORBOARD_LOG_DIR = `//logs/` + * @type string $protected_artifact_location_id + * The ID of the location to store protected artifacts. e.g. us-central1. + * Populate only when the location is different than CustomJob location. + * List of supported locations: + * https://cloud.google.com/vertex-ai/docs/general/locations + * @type string $tensorboard + * Optional. The name of a Vertex AI + * [Tensorboard][google.cloud.aiplatform.v1.Tensorboard] resource to which + * this CustomJob will upload Tensorboard logs. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @type bool $enable_web_access + * Optional. Whether you want Vertex AI to enable [interactive shell + * access](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) + * to training containers. + * If set to `true`, you can access interactive shells at the URIs given + * by + * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] + * or + * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] + * (within + * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). + * @type bool $enable_dashboard_access + * Optional. Whether you want Vertex AI to enable access to the customized + * dashboard in training chief container. + * If set to `true`, you can access the dashboard at the URIs given + * by + * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] + * or + * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] + * (within + * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). + * @type string $experiment + * Optional. The Experiment associated with this job. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}` + * @type string $experiment_run + * Optional. The Experiment Run associated with this job. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\CustomJob::initOnce(); + parent::__construct($data); + } + + /** + * Required. The spec of the worker pools including machine type and Docker + * image. All worker pools except the first one are optional and can be + * skipped by providing an empty value. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.WorkerPoolSpec worker_pool_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWorkerPoolSpecs() + { + return $this->worker_pool_specs; + } + + /** + * Required. The spec of the worker pools including machine type and Docker + * image. All worker pools except the first one are optional and can be + * skipped by providing an empty value. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.WorkerPoolSpec worker_pool_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\WorkerPoolSpec>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWorkerPoolSpecs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\WorkerPoolSpec::class); + $this->worker_pool_specs = $arr; + + return $this; + } + + /** + * Scheduling options for a CustomJob. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Scheduling scheduling = 3; + * @return \Google\Cloud\AIPlatform\V1\Scheduling|null + */ + public function getScheduling() + { + return $this->scheduling; + } + + public function hasScheduling() + { + return isset($this->scheduling); + } + + public function clearScheduling() + { + unset($this->scheduling); + } + + /** + * Scheduling options for a CustomJob. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Scheduling scheduling = 3; + * @param \Google\Cloud\AIPlatform\V1\Scheduling $var + * @return $this + */ + public function setScheduling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Scheduling::class); + $this->scheduling = $var; + + return $this; + } + + /** + * Specifies the service account for workload run-as account. + * Users submitting jobs must have act-as permission on this run-as account. + * If unspecified, the [Vertex AI Custom Code Service + * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + * for the CustomJob's project is used. + * + * Generated from protobuf field string service_account = 4; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Specifies the service account for workload run-as account. + * Users submitting jobs must have act-as permission on this run-as account. + * If unspecified, the [Vertex AI Custom Code Service + * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + * for the CustomJob's project is used. + * + * Generated from protobuf field string service_account = 4; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Optional. The full name of the Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the Job + * should be peered. For example, `projects/12345/global/networks/myVPC`. + * [Format](/compute/docs/reference/rest/v1/networks/insert) + * is of the form `projects/{project}/global/networks/{network}`. + * Where {project} is a project number, as in `12345`, and {network} is a + * network name. + * To specify this field, you must have already [configured VPC Network + * Peering for Vertex + * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). + * If this field is left unspecified, the job is not peered with any network. + * + * Generated from protobuf field string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Optional. The full name of the Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the Job + * should be peered. For example, `projects/12345/global/networks/myVPC`. + * [Format](/compute/docs/reference/rest/v1/networks/insert) + * is of the form `projects/{project}/global/networks/{network}`. + * Where {project} is a project number, as in `12345`, and {network} is a + * network name. + * To specify this field, you must have already [configured VPC Network + * Peering for Vertex + * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). + * If this field is left unspecified, the job is not peered with any network. + * + * Generated from protobuf field string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * Optional. A list of names for the reserved ip ranges under the VPC network + * that can be used for this job. + * If set, we will deploy the job within the provided ip ranges. Otherwise, + * the job will be deployed to any ip ranges under the provided VPC + * network. + * Example: ['vertex-ai-ip-range']. + * + * Generated from protobuf field repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getReservedIpRanges() + { + return $this->reserved_ip_ranges; + } + + /** + * Optional. A list of names for the reserved ip ranges under the VPC network + * that can be used for this job. + * If set, we will deploy the job within the provided ip ranges. Otherwise, + * the job will be deployed to any ip ranges under the provided VPC + * network. + * Example: ['vertex-ai-ip-range']. + * + * Generated from protobuf field repeated string reserved_ip_ranges = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setReservedIpRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->reserved_ip_ranges = $arr; + + return $this; + } + + /** + * The Cloud Storage location to store the output of this CustomJob or + * HyperparameterTuningJob. For HyperparameterTuningJob, + * the baseOutputDirectory of + * each child CustomJob backing a Trial is set to a subdirectory of name + * [id][google.cloud.aiplatform.v1.Trial.id] under its parent + * HyperparameterTuningJob's baseOutputDirectory. + * The following Vertex AI environment variables will be passed to + * containers or python modules when this field is set: + * For CustomJob: + * * AIP_MODEL_DIR = `/model/` + * * AIP_CHECKPOINT_DIR = `/checkpoints/` + * * AIP_TENSORBOARD_LOG_DIR = `/logs/` + * For CustomJob backing a Trial of HyperparameterTuningJob: + * * AIP_MODEL_DIR = `//model/` + * * AIP_CHECKPOINT_DIR = `//checkpoints/` + * * AIP_TENSORBOARD_LOG_DIR = `//logs/` + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination base_output_directory = 6; + * @return \Google\Cloud\AIPlatform\V1\GcsDestination|null + */ + public function getBaseOutputDirectory() + { + return $this->base_output_directory; + } + + public function hasBaseOutputDirectory() + { + return isset($this->base_output_directory); + } + + public function clearBaseOutputDirectory() + { + unset($this->base_output_directory); + } + + /** + * The Cloud Storage location to store the output of this CustomJob or + * HyperparameterTuningJob. For HyperparameterTuningJob, + * the baseOutputDirectory of + * each child CustomJob backing a Trial is set to a subdirectory of name + * [id][google.cloud.aiplatform.v1.Trial.id] under its parent + * HyperparameterTuningJob's baseOutputDirectory. + * The following Vertex AI environment variables will be passed to + * containers or python modules when this field is set: + * For CustomJob: + * * AIP_MODEL_DIR = `/model/` + * * AIP_CHECKPOINT_DIR = `/checkpoints/` + * * AIP_TENSORBOARD_LOG_DIR = `/logs/` + * For CustomJob backing a Trial of HyperparameterTuningJob: + * * AIP_MODEL_DIR = `//model/` + * * AIP_CHECKPOINT_DIR = `//checkpoints/` + * * AIP_TENSORBOARD_LOG_DIR = `//logs/` + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination base_output_directory = 6; + * @param \Google\Cloud\AIPlatform\V1\GcsDestination $var + * @return $this + */ + public function setBaseOutputDirectory($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GcsDestination::class); + $this->base_output_directory = $var; + + return $this; + } + + /** + * The ID of the location to store protected artifacts. e.g. us-central1. + * Populate only when the location is different than CustomJob location. + * List of supported locations: + * https://cloud.google.com/vertex-ai/docs/general/locations + * + * Generated from protobuf field string protected_artifact_location_id = 19; + * @return string + */ + public function getProtectedArtifactLocationId() + { + return $this->protected_artifact_location_id; + } + + /** + * The ID of the location to store protected artifacts. e.g. us-central1. + * Populate only when the location is different than CustomJob location. + * List of supported locations: + * https://cloud.google.com/vertex-ai/docs/general/locations + * + * Generated from protobuf field string protected_artifact_location_id = 19; + * @param string $var + * @return $this + */ + public function setProtectedArtifactLocationId($var) + { + GPBUtil::checkString($var, True); + $this->protected_artifact_location_id = $var; + + return $this; + } + + /** + * Optional. The name of a Vertex AI + * [Tensorboard][google.cloud.aiplatform.v1.Tensorboard] resource to which + * this CustomJob will upload Tensorboard logs. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getTensorboard() + { + return $this->tensorboard; + } + + /** + * Optional. The name of a Vertex AI + * [Tensorboard][google.cloud.aiplatform.v1.Tensorboard] resource to which + * this CustomJob will upload Tensorboard logs. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string tensorboard = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTensorboard($var) + { + GPBUtil::checkString($var, True); + $this->tensorboard = $var; + + return $this; + } + + /** + * Optional. Whether you want Vertex AI to enable [interactive shell + * access](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) + * to training containers. + * If set to `true`, you can access interactive shells at the URIs given + * by + * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] + * or + * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] + * (within + * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). + * + * Generated from protobuf field bool enable_web_access = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableWebAccess() + { + return $this->enable_web_access; + } + + /** + * Optional. Whether you want Vertex AI to enable [interactive shell + * access](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) + * to training containers. + * If set to `true`, you can access interactive shells at the URIs given + * by + * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] + * or + * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] + * (within + * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). + * + * Generated from protobuf field bool enable_web_access = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableWebAccess($var) + { + GPBUtil::checkBool($var); + $this->enable_web_access = $var; + + return $this; + } + + /** + * Optional. Whether you want Vertex AI to enable access to the customized + * dashboard in training chief container. + * If set to `true`, you can access the dashboard at the URIs given + * by + * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] + * or + * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] + * (within + * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). + * + * Generated from protobuf field bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableDashboardAccess() + { + return $this->enable_dashboard_access; + } + + /** + * Optional. Whether you want Vertex AI to enable access to the customized + * dashboard in training chief container. + * If set to `true`, you can access the dashboard at the URIs given + * by + * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] + * or + * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] + * (within + * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). + * + * Generated from protobuf field bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableDashboardAccess($var) + { + GPBUtil::checkBool($var); + $this->enable_dashboard_access = $var; + + return $this; + } + + /** + * Optional. The Experiment associated with this job. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}` + * + * Generated from protobuf field string experiment = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getExperiment() + { + return $this->experiment; + } + + /** + * Optional. The Experiment associated with this job. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}` + * + * Generated from protobuf field string experiment = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setExperiment($var) + { + GPBUtil::checkString($var, True); + $this->experiment = $var; + + return $this; + } + + /** + * Optional. The Experiment Run associated with this job. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}` + * + * Generated from protobuf field string experiment_run = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getExperimentRun() + { + return $this->experiment_run; + } + + /** + * Optional. The Experiment Run associated with this job. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}` + * + * Generated from protobuf field string experiment_run = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setExperimentRun($var) + { + GPBUtil::checkString($var, True); + $this->experiment_run = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DataItem.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DataItem.php new file mode 100644 index 000000000000..91a3e21374be --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DataItem.php @@ -0,0 +1,316 @@ +google.cloud.aiplatform.v1.DataItem + */ +class DataItem extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the DataItem. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Timestamp when this DataItem was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this DataItem was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. The labels with user-defined metadata to organize your DataItems. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one DataItem(System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Required. The data that the DataItem represents (for example, an image or a + * text snippet). The schema of the payload is stored in the parent Dataset's + * [metadata schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] + * dataItemSchemaUri field. + * + * Generated from protobuf field .google.protobuf.Value payload = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $payload = null; + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the DataItem. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this DataItem was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this DataItem was last updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The labels with user-defined metadata to organize your DataItems. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one DataItem(System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * @type \Google\Protobuf\Value $payload + * Required. The data that the DataItem represents (for example, an image or a + * text snippet). The schema of the payload is stored in the parent Dataset's + * [metadata schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] + * dataItemSchemaUri field. + * @type string $etag + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DataItem::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the DataItem. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of the DataItem. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Timestamp when this DataItem was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this DataItem was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this DataItem was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this DataItem was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. The labels with user-defined metadata to organize your DataItems. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one DataItem(System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The labels with user-defined metadata to organize your DataItems. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one DataItem(System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Required. The data that the DataItem represents (for example, an image or a + * text snippet). The schema of the payload is stored in the parent Dataset's + * [metadata schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] + * dataItemSchemaUri field. + * + * Generated from protobuf field .google.protobuf.Value payload = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Value|null + */ + public function getPayload() + { + return $this->payload; + } + + public function hasPayload() + { + return isset($this->payload); + } + + public function clearPayload() + { + unset($this->payload); + } + + /** + * Required. The data that the DataItem represents (for example, an image or a + * text snippet). The schema of the payload is stored in the parent Dataset's + * [metadata schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] + * dataItemSchemaUri field. + * + * Generated from protobuf field .google.protobuf.Value payload = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setPayload($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->payload = $var; + + return $this; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DataItemView.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DataItemView.php new file mode 100644 index 000000000000..fa12a0e7d8ad --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DataItemView.php @@ -0,0 +1,173 @@ +google.cloud.aiplatform.v1.DataItemView + */ +class DataItemView extends \Google\Protobuf\Internal\Message +{ + /** + * The DataItem. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DataItem data_item = 1; + */ + protected $data_item = null; + /** + * The Annotations on the DataItem. If too many Annotations should be returned + * for the DataItem, this field will be truncated per annotations_limit in + * request. If it was, then the has_truncated_annotations will be set to true. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + private $annotations; + /** + * True if and only if the Annotations field has been truncated. It happens if + * more Annotations for this DataItem met the request's annotation_filter than + * are allowed to be returned by annotations_limit. + * Note that if Annotations field is not being returned due to field mask, + * then this field will not be set to true no matter how many Annotations are + * there. + * + * Generated from protobuf field bool has_truncated_annotations = 3; + */ + protected $has_truncated_annotations = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\DataItem $data_item + * The DataItem. + * @type array<\Google\Cloud\AIPlatform\V1\Annotation>|\Google\Protobuf\Internal\RepeatedField $annotations + * The Annotations on the DataItem. If too many Annotations should be returned + * for the DataItem, this field will be truncated per annotations_limit in + * request. If it was, then the has_truncated_annotations will be set to true. + * @type bool $has_truncated_annotations + * True if and only if the Annotations field has been truncated. It happens if + * more Annotations for this DataItem met the request's annotation_filter than + * are allowed to be returned by annotations_limit. + * Note that if Annotations field is not being returned due to field mask, + * then this field will not be set to true no matter how many Annotations are + * there. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * The DataItem. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DataItem data_item = 1; + * @return \Google\Cloud\AIPlatform\V1\DataItem|null + */ + public function getDataItem() + { + return $this->data_item; + } + + public function hasDataItem() + { + return isset($this->data_item); + } + + public function clearDataItem() + { + unset($this->data_item); + } + + /** + * The DataItem. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DataItem data_item = 1; + * @param \Google\Cloud\AIPlatform\V1\DataItem $var + * @return $this + */ + public function setDataItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DataItem::class); + $this->data_item = $var; + + return $this; + } + + /** + * The Annotations on the DataItem. If too many Annotations should be returned + * for the DataItem, this field will be truncated per annotations_limit in + * request. If it was, then the has_truncated_annotations will be set to true. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * The Annotations on the DataItem. If too many Annotations should be returned + * for the DataItem, this field will be truncated per annotations_limit in + * request. If it was, then the has_truncated_annotations will be set to true. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + * @param array<\Google\Cloud\AIPlatform\V1\Annotation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\Annotation::class); + $this->annotations = $arr; + + return $this; + } + + /** + * True if and only if the Annotations field has been truncated. It happens if + * more Annotations for this DataItem met the request's annotation_filter than + * are allowed to be returned by annotations_limit. + * Note that if Annotations field is not being returned due to field mask, + * then this field will not be set to true no matter how many Annotations are + * there. + * + * Generated from protobuf field bool has_truncated_annotations = 3; + * @return bool + */ + public function getHasTruncatedAnnotations() + { + return $this->has_truncated_annotations; + } + + /** + * True if and only if the Annotations field has been truncated. It happens if + * more Annotations for this DataItem met the request's annotation_filter than + * are allowed to be returned by annotations_limit. + * Note that if Annotations field is not being returned due to field mask, + * then this field will not be set to true no matter how many Annotations are + * there. + * + * Generated from protobuf field bool has_truncated_annotations = 3; + * @param bool $var + * @return $this + */ + public function setHasTruncatedAnnotations($var) + { + GPBUtil::checkBool($var); + $this->has_truncated_annotations = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DataLabelingJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DataLabelingJob.php new file mode 100644 index 000000000000..c416d3c5caa9 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DataLabelingJob.php @@ -0,0 +1,852 @@ +google.cloud.aiplatform.v1.DataLabelingJob + */ +class DataLabelingJob extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the DataLabelingJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The user-defined name of the DataLabelingJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * Display name of a DataLabelingJob. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Required. Dataset resource names. Right now we only support labeling from a + * single Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field repeated string datasets = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $datasets; + /** + * Labels to assign to annotations generated by this DataLabelingJob. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map annotation_labels = 12; + */ + private $annotation_labels; + /** + * Required. Number of labelers to work on each DataItem. + * + * Generated from protobuf field int32 labeler_count = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $labeler_count = 0; + /** + * Required. The Google Cloud Storage location of the instruction pdf. This + * pdf is shared with labelers, and provides detailed description on how to + * label DataItems in Datasets. + * + * Generated from protobuf field string instruction_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instruction_uri = ''; + /** + * Required. Points to a YAML file stored on Google Cloud Storage describing + * the config for a specific type of DataLabelingJob. The schema files that + * can be used here are found in the + * https://storage.googleapis.com/google-cloud-aiplatform bucket in the + * /schema/datalabelingjob/inputs/ folder. + * + * Generated from protobuf field string inputs_schema_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $inputs_schema_uri = ''; + /** + * Required. Input config parameters for the DataLabelingJob. + * + * Generated from protobuf field .google.protobuf.Value inputs = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $inputs = null; + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Current labeling job progress percentage scaled in interval + * [0, 100], indicating the percentage of DataItems that has been finished. + * + * Generated from protobuf field int32 labeling_progress = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $labeling_progress = 0; + /** + * Output only. Estimated cost(in US dollars) that the DataLabelingJob has + * incurred to date. + * + * Generated from protobuf field .google.type.Money current_spend = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_spend = null; + /** + * Output only. Timestamp when this DataLabelingJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this DataLabelingJob was updated most recently. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. DataLabelingJob errors. It is only populated when job's state + * is `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.rpc.Status error = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error = null; + /** + * The labels with user-defined metadata to organize your DataLabelingJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each DataLabelingJob: + * * "aiplatform.googleapis.com/schema": output only, its value is the + * [inputs_schema][google.cloud.aiplatform.v1.DataLabelingJob.inputs_schema_uri]'s + * title. + * + * Generated from protobuf field map labels = 11; + */ + private $labels; + /** + * The SpecialistPools' resource names associated with this job. + * + * Generated from protobuf field repeated string specialist_pools = 16; + */ + private $specialist_pools; + /** + * Customer-managed encryption key spec for a DataLabelingJob. If set, this + * DataLabelingJob will be secured by this key. + * Note: Annotations created in the DataLabelingJob are associated with + * the EncryptionSpec of the Dataset they are exported to. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 20; + */ + protected $encryption_spec = null; + /** + * Parameters that configure the active learning pipeline. Active learning + * will label the data incrementally via several iterations. For every + * iteration, it will select a batch of data based on the sampling strategy. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; + */ + protected $active_learning_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the DataLabelingJob. + * @type string $display_name + * Required. The user-defined name of the DataLabelingJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * Display name of a DataLabelingJob. + * @type array|\Google\Protobuf\Internal\RepeatedField $datasets + * Required. Dataset resource names. Right now we only support labeling from a + * single Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @type array|\Google\Protobuf\Internal\MapField $annotation_labels + * Labels to assign to annotations generated by this DataLabelingJob. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * @type int $labeler_count + * Required. Number of labelers to work on each DataItem. + * @type string $instruction_uri + * Required. The Google Cloud Storage location of the instruction pdf. This + * pdf is shared with labelers, and provides detailed description on how to + * label DataItems in Datasets. + * @type string $inputs_schema_uri + * Required. Points to a YAML file stored on Google Cloud Storage describing + * the config for a specific type of DataLabelingJob. The schema files that + * can be used here are found in the + * https://storage.googleapis.com/google-cloud-aiplatform bucket in the + * /schema/datalabelingjob/inputs/ folder. + * @type \Google\Protobuf\Value $inputs + * Required. Input config parameters for the DataLabelingJob. + * @type int $state + * Output only. The detailed state of the job. + * @type int $labeling_progress + * Output only. Current labeling job progress percentage scaled in interval + * [0, 100], indicating the percentage of DataItems that has been finished. + * @type \Google\Type\Money $current_spend + * Output only. Estimated cost(in US dollars) that the DataLabelingJob has + * incurred to date. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this DataLabelingJob was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this DataLabelingJob was updated most recently. + * @type \Google\Rpc\Status $error + * Output only. DataLabelingJob errors. It is only populated when job's state + * is `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize your DataLabelingJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each DataLabelingJob: + * * "aiplatform.googleapis.com/schema": output only, its value is the + * [inputs_schema][google.cloud.aiplatform.v1.DataLabelingJob.inputs_schema_uri]'s + * title. + * @type array|\Google\Protobuf\Internal\RepeatedField $specialist_pools + * The SpecialistPools' resource names associated with this job. + * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec + * Customer-managed encryption key spec for a DataLabelingJob. If set, this + * DataLabelingJob will be secured by this key. + * Note: Annotations created in the DataLabelingJob are associated with + * the EncryptionSpec of the Dataset they are exported to. + * @type \Google\Cloud\AIPlatform\V1\ActiveLearningConfig $active_learning_config + * Parameters that configure the active learning pipeline. Active learning + * will label the data incrementally via several iterations. For every + * iteration, it will select a batch of data based on the sampling strategy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DataLabelingJob::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the DataLabelingJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of the DataLabelingJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The user-defined name of the DataLabelingJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * Display name of a DataLabelingJob. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The user-defined name of the DataLabelingJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * Display name of a DataLabelingJob. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. Dataset resource names. Right now we only support labeling from a + * single Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field repeated string datasets = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDatasets() + { + return $this->datasets; + } + + /** + * Required. Dataset resource names. Right now we only support labeling from a + * single Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field repeated string datasets = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDatasets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->datasets = $arr; + + return $this; + } + + /** + * Labels to assign to annotations generated by this DataLabelingJob. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map annotation_labels = 12; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotationLabels() + { + return $this->annotation_labels; + } + + /** + * Labels to assign to annotations generated by this DataLabelingJob. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map annotation_labels = 12; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotationLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotation_labels = $arr; + + return $this; + } + + /** + * Required. Number of labelers to work on each DataItem. + * + * Generated from protobuf field int32 labeler_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getLabelerCount() + { + return $this->labeler_count; + } + + /** + * Required. Number of labelers to work on each DataItem. + * + * Generated from protobuf field int32 labeler_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setLabelerCount($var) + { + GPBUtil::checkInt32($var); + $this->labeler_count = $var; + + return $this; + } + + /** + * Required. The Google Cloud Storage location of the instruction pdf. This + * pdf is shared with labelers, and provides detailed description on how to + * label DataItems in Datasets. + * + * Generated from protobuf field string instruction_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInstructionUri() + { + return $this->instruction_uri; + } + + /** + * Required. The Google Cloud Storage location of the instruction pdf. This + * pdf is shared with labelers, and provides detailed description on how to + * label DataItems in Datasets. + * + * Generated from protobuf field string instruction_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setInstructionUri($var) + { + GPBUtil::checkString($var, True); + $this->instruction_uri = $var; + + return $this; + } + + /** + * Required. Points to a YAML file stored on Google Cloud Storage describing + * the config for a specific type of DataLabelingJob. The schema files that + * can be used here are found in the + * https://storage.googleapis.com/google-cloud-aiplatform bucket in the + * /schema/datalabelingjob/inputs/ folder. + * + * Generated from protobuf field string inputs_schema_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInputsSchemaUri() + { + return $this->inputs_schema_uri; + } + + /** + * Required. Points to a YAML file stored on Google Cloud Storage describing + * the config for a specific type of DataLabelingJob. The schema files that + * can be used here are found in the + * https://storage.googleapis.com/google-cloud-aiplatform bucket in the + * /schema/datalabelingjob/inputs/ folder. + * + * Generated from protobuf field string inputs_schema_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setInputsSchemaUri($var) + { + GPBUtil::checkString($var, True); + $this->inputs_schema_uri = $var; + + return $this; + } + + /** + * Required. Input config parameters for the DataLabelingJob. + * + * Generated from protobuf field .google.protobuf.Value inputs = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Value|null + */ + public function getInputs() + { + return $this->inputs; + } + + public function hasInputs() + { + return isset($this->inputs); + } + + public function clearInputs() + { + unset($this->inputs); + } + + /** + * Required. Input config parameters for the DataLabelingJob. + * + * Generated from protobuf field .google.protobuf.Value inputs = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setInputs($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->inputs = $var; + + return $this; + } + + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\JobState::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Current labeling job progress percentage scaled in interval + * [0, 100], indicating the percentage of DataItems that has been finished. + * + * Generated from protobuf field int32 labeling_progress = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getLabelingProgress() + { + return $this->labeling_progress; + } + + /** + * Output only. Current labeling job progress percentage scaled in interval + * [0, 100], indicating the percentage of DataItems that has been finished. + * + * Generated from protobuf field int32 labeling_progress = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setLabelingProgress($var) + { + GPBUtil::checkInt32($var); + $this->labeling_progress = $var; + + return $this; + } + + /** + * Output only. Estimated cost(in US dollars) that the DataLabelingJob has + * incurred to date. + * + * Generated from protobuf field .google.type.Money current_spend = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\Money|null + */ + public function getCurrentSpend() + { + return $this->current_spend; + } + + public function hasCurrentSpend() + { + return isset($this->current_spend); + } + + public function clearCurrentSpend() + { + unset($this->current_spend); + } + + /** + * Output only. Estimated cost(in US dollars) that the DataLabelingJob has + * incurred to date. + * + * Generated from protobuf field .google.type.Money current_spend = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\Money $var + * @return $this + */ + public function setCurrentSpend($var) + { + GPBUtil::checkMessage($var, \Google\Type\Money::class); + $this->current_spend = $var; + + return $this; + } + + /** + * Output only. Timestamp when this DataLabelingJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this DataLabelingJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this DataLabelingJob was updated most recently. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this DataLabelingJob was updated most recently. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. DataLabelingJob errors. It is only populated when job's state + * is `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.rpc.Status error = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Output only. DataLabelingJob errors. It is only populated when job's state + * is `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.rpc.Status error = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->error = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize your DataLabelingJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each DataLabelingJob: + * * "aiplatform.googleapis.com/schema": output only, its value is the + * [inputs_schema][google.cloud.aiplatform.v1.DataLabelingJob.inputs_schema_uri]'s + * title. + * + * Generated from protobuf field map labels = 11; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize your DataLabelingJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each DataLabelingJob: + * * "aiplatform.googleapis.com/schema": output only, its value is the + * [inputs_schema][google.cloud.aiplatform.v1.DataLabelingJob.inputs_schema_uri]'s + * title. + * + * Generated from protobuf field map labels = 11; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * The SpecialistPools' resource names associated with this job. + * + * Generated from protobuf field repeated string specialist_pools = 16; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSpecialistPools() + { + return $this->specialist_pools; + } + + /** + * The SpecialistPools' resource names associated with this job. + * + * Generated from protobuf field repeated string specialist_pools = 16; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSpecialistPools($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->specialist_pools = $arr; + + return $this; + } + + /** + * Customer-managed encryption key spec for a DataLabelingJob. If set, this + * DataLabelingJob will be secured by this key. + * Note: Annotations created in the DataLabelingJob are associated with + * the EncryptionSpec of the Dataset they are exported to. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 20; + * @return \Google\Cloud\AIPlatform\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Customer-managed encryption key spec for a DataLabelingJob. If set, this + * DataLabelingJob will be secured by this key. + * Note: Annotations created in the DataLabelingJob are associated with + * the EncryptionSpec of the Dataset they are exported to. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 20; + * @param \Google\Cloud\AIPlatform\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + + /** + * Parameters that configure the active learning pipeline. Active learning + * will label the data incrementally via several iterations. For every + * iteration, it will select a batch of data based on the sampling strategy. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; + * @return \Google\Cloud\AIPlatform\V1\ActiveLearningConfig|null + */ + public function getActiveLearningConfig() + { + return $this->active_learning_config; + } + + public function hasActiveLearningConfig() + { + return isset($this->active_learning_config); + } + + public function clearActiveLearningConfig() + { + unset($this->active_learning_config); + } + + /** + * Parameters that configure the active learning pipeline. Active learning + * will label the data incrementally via several iterations. For every + * iteration, it will select a batch of data based on the sampling strategy. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; + * @param \Google\Cloud\AIPlatform\V1\ActiveLearningConfig $var + * @return $this + */ + public function setActiveLearningConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ActiveLearningConfig::class); + $this->active_learning_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Dataset.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Dataset.php new file mode 100644 index 000000000000..6e159d23001d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Dataset.php @@ -0,0 +1,631 @@ +google.cloud.aiplatform.v1.Dataset + */ +class Dataset extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the Dataset. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The user-defined name of the Dataset. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * The description of the Dataset. + * + * Generated from protobuf field string description = 16; + */ + protected $description = ''; + /** + * Required. Points to a YAML file stored on Google Cloud Storage describing + * additional information about the Dataset. The schema is defined as an + * OpenAPI 3.0.2 Schema Object. The schema files that can be used here are + * found in gs://google-cloud-aiplatform/schema/dataset/metadata/. + * + * Generated from protobuf field string metadata_schema_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metadata_schema_uri = ''; + /** + * Required. Additional information about the Dataset. + * + * Generated from protobuf field .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metadata = null; + /** + * Output only. The number of DataItems in this Dataset. Only apply for + * non-structured Dataset. + * + * Generated from protobuf field int64 data_item_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_item_count = 0; + /** + * Output only. Timestamp when this Dataset was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this Dataset was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 6; + */ + protected $etag = ''; + /** + * The labels with user-defined metadata to organize your Datasets. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Dataset (System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each Dataset: + * * "aiplatform.googleapis.com/dataset_metadata_schema": output only, its + * value is the + * [metadata_schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] + * title. + * + * Generated from protobuf field map labels = 7; + */ + private $labels; + /** + * All SavedQueries belong to the Dataset will be returned in List/Get + * Dataset response. The annotation_specs field + * will not be populated except for UI cases which will only use + * [annotation_spec_count][google.cloud.aiplatform.v1.SavedQuery.annotation_spec_count]. + * In CreateDataset request, a SavedQuery is created together if + * this field is set, up to one SavedQuery can be set in CreateDatasetRequest. + * The SavedQuery should not contain any AnnotationSpec. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 9; + */ + private $saved_queries; + /** + * Customer-managed encryption key spec for a Dataset. If set, this Dataset + * and all sub-resources of this Dataset will be secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 11; + */ + protected $encryption_spec = null; + /** + * Output only. The resource name of the Artifact that was created in + * MetadataStore when creating the Dataset. The Artifact resource name pattern + * is + * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + * + * Generated from protobuf field string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $metadata_artifact = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the Dataset. + * @type string $display_name + * Required. The user-defined name of the Dataset. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * @type string $description + * The description of the Dataset. + * @type string $metadata_schema_uri + * Required. Points to a YAML file stored on Google Cloud Storage describing + * additional information about the Dataset. The schema is defined as an + * OpenAPI 3.0.2 Schema Object. The schema files that can be used here are + * found in gs://google-cloud-aiplatform/schema/dataset/metadata/. + * @type \Google\Protobuf\Value $metadata + * Required. Additional information about the Dataset. + * @type int|string $data_item_count + * Output only. The number of DataItems in this Dataset. Only apply for + * non-structured Dataset. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this Dataset was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this Dataset was last updated. + * @type string $etag + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize your Datasets. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Dataset (System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each Dataset: + * * "aiplatform.googleapis.com/dataset_metadata_schema": output only, its + * value is the + * [metadata_schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] + * title. + * @type array<\Google\Cloud\AIPlatform\V1\SavedQuery>|\Google\Protobuf\Internal\RepeatedField $saved_queries + * All SavedQueries belong to the Dataset will be returned in List/Get + * Dataset response. The annotation_specs field + * will not be populated except for UI cases which will only use + * [annotation_spec_count][google.cloud.aiplatform.v1.SavedQuery.annotation_spec_count]. + * In CreateDataset request, a SavedQuery is created together if + * this field is set, up to one SavedQuery can be set in CreateDatasetRequest. + * The SavedQuery should not contain any AnnotationSpec. + * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec + * Customer-managed encryption key spec for a Dataset. If set, this Dataset + * and all sub-resources of this Dataset will be secured by this key. + * @type string $metadata_artifact + * Output only. The resource name of the Artifact that was created in + * MetadataStore when creating the Dataset. The Artifact resource name pattern + * is + * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Dataset::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the Dataset. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of the Dataset. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The user-defined name of the Dataset. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The user-defined name of the Dataset. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The description of the Dataset. + * + * Generated from protobuf field string description = 16; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the Dataset. + * + * Generated from protobuf field string description = 16; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. Points to a YAML file stored on Google Cloud Storage describing + * additional information about the Dataset. The schema is defined as an + * OpenAPI 3.0.2 Schema Object. The schema files that can be used here are + * found in gs://google-cloud-aiplatform/schema/dataset/metadata/. + * + * Generated from protobuf field string metadata_schema_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMetadataSchemaUri() + { + return $this->metadata_schema_uri; + } + + /** + * Required. Points to a YAML file stored on Google Cloud Storage describing + * additional information about the Dataset. The schema is defined as an + * OpenAPI 3.0.2 Schema Object. The schema files that can be used here are + * found in gs://google-cloud-aiplatform/schema/dataset/metadata/. + * + * Generated from protobuf field string metadata_schema_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMetadataSchemaUri($var) + { + GPBUtil::checkString($var, True); + $this->metadata_schema_uri = $var; + + return $this; + } + + /** + * Required. Additional information about the Dataset. + * + * Generated from protobuf field .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Value|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Required. Additional information about the Dataset. + * + * Generated from protobuf field .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->metadata = $var; + + return $this; + } + + /** + * Output only. The number of DataItems in this Dataset. Only apply for + * non-structured Dataset. + * + * Generated from protobuf field int64 data_item_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getDataItemCount() + { + return $this->data_item_count; + } + + /** + * Output only. The number of DataItems in this Dataset. Only apply for + * non-structured Dataset. + * + * Generated from protobuf field int64 data_item_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setDataItemCount($var) + { + GPBUtil::checkInt64($var); + $this->data_item_count = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Dataset was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this Dataset was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Dataset was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this Dataset was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 6; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 6; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize your Datasets. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Dataset (System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each Dataset: + * * "aiplatform.googleapis.com/dataset_metadata_schema": output only, its + * value is the + * [metadata_schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] + * title. + * + * Generated from protobuf field map labels = 7; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize your Datasets. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Dataset (System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. Following system labels exist for each Dataset: + * * "aiplatform.googleapis.com/dataset_metadata_schema": output only, its + * value is the + * [metadata_schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] + * title. + * + * Generated from protobuf field map labels = 7; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * All SavedQueries belong to the Dataset will be returned in List/Get + * Dataset response. The annotation_specs field + * will not be populated except for UI cases which will only use + * [annotation_spec_count][google.cloud.aiplatform.v1.SavedQuery.annotation_spec_count]. + * In CreateDataset request, a SavedQuery is created together if + * this field is set, up to one SavedQuery can be set in CreateDatasetRequest. + * The SavedQuery should not contain any AnnotationSpec. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 9; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSavedQueries() + { + return $this->saved_queries; + } + + /** + * All SavedQueries belong to the Dataset will be returned in List/Get + * Dataset response. The annotation_specs field + * will not be populated except for UI cases which will only use + * [annotation_spec_count][google.cloud.aiplatform.v1.SavedQuery.annotation_spec_count]. + * In CreateDataset request, a SavedQuery is created together if + * this field is set, up to one SavedQuery can be set in CreateDatasetRequest. + * The SavedQuery should not contain any AnnotationSpec. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 9; + * @param array<\Google\Cloud\AIPlatform\V1\SavedQuery>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSavedQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\SavedQuery::class); + $this->saved_queries = $arr; + + return $this; + } + + /** + * Customer-managed encryption key spec for a Dataset. If set, this Dataset + * and all sub-resources of this Dataset will be secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 11; + * @return \Google\Cloud\AIPlatform\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Customer-managed encryption key spec for a Dataset. If set, this Dataset + * and all sub-resources of this Dataset will be secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 11; + * @param \Google\Cloud\AIPlatform\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + + /** + * Output only. The resource name of the Artifact that was created in + * MetadataStore when creating the Dataset. The Artifact resource name pattern + * is + * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + * + * Generated from protobuf field string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMetadataArtifact() + { + return $this->metadata_artifact; + } + + /** + * Output only. The resource name of the Artifact that was created in + * MetadataStore when creating the Dataset. The Artifact resource name pattern + * is + * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + * + * Generated from protobuf field string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMetadataArtifact($var) + { + GPBUtil::checkString($var, True); + $this->metadata_artifact = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DatasetVersion.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DatasetVersion.php new file mode 100644 index 000000000000..013757bf5840 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DatasetVersion.php @@ -0,0 +1,227 @@ +google.cloud.aiplatform.v1.DatasetVersion + */ +class DatasetVersion extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the DatasetVersion. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Timestamp when this DatasetVersion was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this DatasetVersion was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 3; + */ + protected $etag = ''; + /** + * Output only. Name of the associated BigQuery dataset. + * + * Generated from protobuf field string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $big_query_dataset_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the DatasetVersion. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this DatasetVersion was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this DatasetVersion was last updated. + * @type string $etag + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * @type string $big_query_dataset_name + * Output only. Name of the associated BigQuery dataset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetVersion::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the DatasetVersion. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of the DatasetVersion. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Timestamp when this DatasetVersion was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this DatasetVersion was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this DatasetVersion was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this DatasetVersion was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 3; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 3; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. Name of the associated BigQuery dataset. + * + * Generated from protobuf field string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getBigQueryDatasetName() + { + return $this->big_query_dataset_name; + } + + /** + * Output only. Name of the associated BigQuery dataset. + * + * Generated from protobuf field string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setBigQueryDatasetName($var) + { + GPBUtil::checkString($var, True); + $this->big_query_dataset_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DedicatedResources.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DedicatedResources.php new file mode 100644 index 000000000000..fb3935c5e29e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DedicatedResources.php @@ -0,0 +1,328 @@ +google.cloud.aiplatform.v1.DedicatedResources + */ +class DedicatedResources extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. The specification of a single machine used by the + * prediction. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $machine_spec = null; + /** + * Required. Immutable. The minimum number of machine replicas this + * DeployedModel will be always deployed on. This value must be greater than + * or equal to 1. + * If traffic against the DeployedModel increases, it may dynamically be + * deployed onto more replicas, and as traffic decreases, some of these extra + * replicas may be freed. + * + * Generated from protobuf field int32 min_replica_count = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $min_replica_count = 0; + /** + * Immutable. The maximum number of replicas this DeployedModel may be + * deployed on when the traffic against it increases. If the requested value + * is too large, the deployment will error, but if deployment succeeds then + * the ability to scale the model to that many replicas is guaranteed (barring + * service outages). If traffic against the DeployedModel increases beyond + * what its replicas at maximum may handle, a portion of the traffic will be + * dropped. If this value is not provided, will use + * [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] + * as the default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). + * + * Generated from protobuf field int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $max_replica_count = 0; + /** + * Immutable. The metric specifications that overrides a resource + * utilization metric (CPU utilization, accelerator's duty cycle, and so on) + * target value (default to 60 if not set). At most one entry is allowed per + * metric. + * If + * [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] + * is above 0, the autoscaling will be based on both CPU utilization and + * accelerator's duty cycle metrics and scale up when either metrics exceeds + * its target value while scale down if both metrics are under their target + * value. The default target value is 60 for both metrics. + * If + * [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] + * is 0, the autoscaling will be based on CPU utilization metric only with + * default target value 60 if not explicitly set. + * For example, in the case of Online Prediction, if you want to override + * target CPU utilization to 80, you should set + * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name] + * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and + * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] + * to `80`. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + private $autoscaling_metric_specs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\MachineSpec $machine_spec + * Required. Immutable. The specification of a single machine used by the + * prediction. + * @type int $min_replica_count + * Required. Immutable. The minimum number of machine replicas this + * DeployedModel will be always deployed on. This value must be greater than + * or equal to 1. + * If traffic against the DeployedModel increases, it may dynamically be + * deployed onto more replicas, and as traffic decreases, some of these extra + * replicas may be freed. + * @type int $max_replica_count + * Immutable. The maximum number of replicas this DeployedModel may be + * deployed on when the traffic against it increases. If the requested value + * is too large, the deployment will error, but if deployment succeeds then + * the ability to scale the model to that many replicas is guaranteed (barring + * service outages). If traffic against the DeployedModel increases beyond + * what its replicas at maximum may handle, a portion of the traffic will be + * dropped. If this value is not provided, will use + * [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] + * as the default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). + * @type array<\Google\Cloud\AIPlatform\V1\AutoscalingMetricSpec>|\Google\Protobuf\Internal\RepeatedField $autoscaling_metric_specs + * Immutable. The metric specifications that overrides a resource + * utilization metric (CPU utilization, accelerator's duty cycle, and so on) + * target value (default to 60 if not set). At most one entry is allowed per + * metric. + * If + * [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] + * is above 0, the autoscaling will be based on both CPU utilization and + * accelerator's duty cycle metrics and scale up when either metrics exceeds + * its target value while scale down if both metrics are under their target + * value. The default target value is 60 for both metrics. + * If + * [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] + * is 0, the autoscaling will be based on CPU utilization metric only with + * default target value 60 if not explicitly set. + * For example, in the case of Online Prediction, if you want to override + * target CPU utilization to 80, you should set + * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name] + * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and + * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] + * to `80`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MachineResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. The specification of a single machine used by the + * prediction. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\AIPlatform\V1\MachineSpec|null + */ + public function getMachineSpec() + { + return $this->machine_spec; + } + + public function hasMachineSpec() + { + return isset($this->machine_spec); + } + + public function clearMachineSpec() + { + unset($this->machine_spec); + } + + /** + * Required. Immutable. The specification of a single machine used by the + * prediction. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\AIPlatform\V1\MachineSpec $var + * @return $this + */ + public function setMachineSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\MachineSpec::class); + $this->machine_spec = $var; + + return $this; + } + + /** + * Required. Immutable. The minimum number of machine replicas this + * DeployedModel will be always deployed on. This value must be greater than + * or equal to 1. + * If traffic against the DeployedModel increases, it may dynamically be + * deployed onto more replicas, and as traffic decreases, some of these extra + * replicas may be freed. + * + * Generated from protobuf field int32 min_replica_count = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getMinReplicaCount() + { + return $this->min_replica_count; + } + + /** + * Required. Immutable. The minimum number of machine replicas this + * DeployedModel will be always deployed on. This value must be greater than + * or equal to 1. + * If traffic against the DeployedModel increases, it may dynamically be + * deployed onto more replicas, and as traffic decreases, some of these extra + * replicas may be freed. + * + * Generated from protobuf field int32 min_replica_count = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setMinReplicaCount($var) + { + GPBUtil::checkInt32($var); + $this->min_replica_count = $var; + + return $this; + } + + /** + * Immutable. The maximum number of replicas this DeployedModel may be + * deployed on when the traffic against it increases. If the requested value + * is too large, the deployment will error, but if deployment succeeds then + * the ability to scale the model to that many replicas is guaranteed (barring + * service outages). If traffic against the DeployedModel increases beyond + * what its replicas at maximum may handle, a portion of the traffic will be + * dropped. If this value is not provided, will use + * [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] + * as the default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). + * + * Generated from protobuf field int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getMaxReplicaCount() + { + return $this->max_replica_count; + } + + /** + * Immutable. The maximum number of replicas this DeployedModel may be + * deployed on when the traffic against it increases. If the requested value + * is too large, the deployment will error, but if deployment succeeds then + * the ability to scale the model to that many replicas is guaranteed (barring + * service outages). If traffic against the DeployedModel increases beyond + * what its replicas at maximum may handle, a portion of the traffic will be + * dropped. If this value is not provided, will use + * [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] + * as the default value. + * The value of this field impacts the charge against Vertex CPU and GPU + * quotas. Specifically, you will be charged for (max_replica_count * + * number of cores in the selected machine type) and (max_replica_count * + * number of GPUs per replica in the selected machine type). + * + * Generated from protobuf field int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setMaxReplicaCount($var) + { + GPBUtil::checkInt32($var); + $this->max_replica_count = $var; + + return $this; + } + + /** + * Immutable. The metric specifications that overrides a resource + * utilization metric (CPU utilization, accelerator's duty cycle, and so on) + * target value (default to 60 if not set). At most one entry is allowed per + * metric. + * If + * [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] + * is above 0, the autoscaling will be based on both CPU utilization and + * accelerator's duty cycle metrics and scale up when either metrics exceeds + * its target value while scale down if both metrics are under their target + * value. The default target value is 60 for both metrics. + * If + * [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] + * is 0, the autoscaling will be based on CPU utilization metric only with + * default target value 60 if not explicitly set. + * For example, in the case of Online Prediction, if you want to override + * target CPU utilization to 80, you should set + * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name] + * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and + * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] + * to `80`. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAutoscalingMetricSpecs() + { + return $this->autoscaling_metric_specs; + } + + /** + * Immutable. The metric specifications that overrides a resource + * utilization metric (CPU utilization, accelerator's duty cycle, and so on) + * target value (default to 60 if not set). At most one entry is allowed per + * metric. + * If + * [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] + * is above 0, the autoscaling will be based on both CPU utilization and + * accelerator's duty cycle metrics and scale up when either metrics exceeds + * its target value while scale down if both metrics are under their target + * value. The default target value is 60 for both metrics. + * If + * [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] + * is 0, the autoscaling will be based on CPU utilization metric only with + * default target value 60 if not explicitly set. + * For example, in the case of Online Prediction, if you want to override + * target CPU utilization to 80, you should set + * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name] + * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and + * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] + * to `80`. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param array<\Google\Cloud\AIPlatform\V1\AutoscalingMetricSpec>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAutoscalingMetricSpecs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\AutoscalingMetricSpec::class); + $this->autoscaling_metric_specs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteArtifactRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteArtifactRequest.php new file mode 100644 index 000000000000..69049a86d5d5 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteArtifactRequest.php @@ -0,0 +1,134 @@ +google.cloud.aiplatform.v1.DeleteArtifactRequest + */ +class DeleteArtifactRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Artifact to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The etag of the Artifact to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the Artifact to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * Please see {@see MetadataServiceClient::artifactName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteArtifactRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Artifact to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * @type string $etag + * Optional. The etag of the Artifact to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Artifact to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Artifact to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The etag of the Artifact to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag of the Artifact to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteBatchPredictionJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteBatchPredictionJobRequest.php new file mode 100644 index 000000000000..93c65b3bac11 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteBatchPredictionJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + */ +class DeleteBatchPredictionJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the BatchPredictionJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the BatchPredictionJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * Please see {@see JobServiceClient::batchPredictionJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteBatchPredictionJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the BatchPredictionJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the BatchPredictionJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the BatchPredictionJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteContextRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteContextRequest.php new file mode 100644 index 000000000000..8f9511ceaaea --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteContextRequest.php @@ -0,0 +1,172 @@ +google.cloud.aiplatform.v1.DeleteContextRequest + */ +class DeleteContextRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Context to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The force deletion semantics is still undefined. + * Users should not use this field. + * + * Generated from protobuf field bool force = 2; + */ + protected $force = false; + /** + * Optional. The etag of the Context to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the Context to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Please see {@see MetadataServiceClient::contextName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteContextRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Context to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * @type bool $force + * The force deletion semantics is still undefined. + * Users should not use this field. + * @type string $etag + * Optional. The etag of the Context to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Context to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Context to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The force deletion semantics is still undefined. + * Users should not use this field. + * + * Generated from protobuf field bool force = 2; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * The force deletion semantics is still undefined. + * Users should not use this field. + * + * Generated from protobuf field bool force = 2; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + + /** + * Optional. The etag of the Context to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag of the Context to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteCustomJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteCustomJobRequest.php new file mode 100644 index 000000000000..dfed82fefc6c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteCustomJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteCustomJobRequest + */ +class DeleteCustomJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the CustomJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * Please see {@see JobServiceClient::customJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteCustomJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteDataLabelingJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteDataLabelingJobRequest.php new file mode 100644 index 000000000000..9dd7c2d0b6de --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteDataLabelingJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + */ +class DeleteDataLabelingJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DataLabelingJob to be deleted. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the DataLabelingJob to be deleted. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Please see {@see JobServiceClient::dataLabelingJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteDataLabelingJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DataLabelingJob to be deleted. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DataLabelingJob to be deleted. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DataLabelingJob to be deleted. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteDatasetRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteDatasetRequest.php new file mode 100644 index 000000000000..7741c711a0ed --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteDatasetRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteDatasetRequest + */ +class DeleteDatasetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Dataset to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Dataset to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * Please see {@see DatasetServiceClient::datasetName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteDatasetRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Dataset to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Dataset to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Dataset to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteDatasetVersionRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteDatasetVersionRequest.php new file mode 100644 index 000000000000..d4018dd2848e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteDatasetVersionRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteDatasetVersionRequest + */ +class DeleteDatasetVersionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Dataset version to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Dataset version to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * Please see {@see DatasetServiceClient::datasetVersionName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteDatasetVersionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Dataset version to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Dataset version to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Dataset version to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteEndpointRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteEndpointRequest.php new file mode 100644 index 000000000000..598ba0620f61 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteEndpointRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteEndpointRequest + */ +class DeleteEndpointRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Endpoint resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Endpoint resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Please see {@see EndpointServiceClient::endpointName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteEndpointRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Endpoint resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EndpointService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Endpoint resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Endpoint resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteEntityTypeRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteEntityTypeRequest.php new file mode 100644 index 000000000000..092391e1e127 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteEntityTypeRequest.php @@ -0,0 +1,148 @@ +google.cloud.aiplatform.v1.DeleteEntityTypeRequest + */ +class DeleteEntityTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the EntityType to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, any Features for this EntityType will also be deleted. + * (Otherwise, the request will only work if the EntityType has no Features.) + * + * Generated from protobuf field bool force = 2; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the EntityType to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Please see {@see FeaturestoreServiceClient::entityTypeName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteEntityTypeRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * @param string $name Required. The name of the EntityType to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Please see {@see FeaturestoreServiceClient::entityTypeName()} for help formatting this field. + * @param bool $force If set to true, any Features for this EntityType will also be deleted. + * (Otherwise, the request will only work if the EntityType has no Features.) + * + * @return \Google\Cloud\AIPlatform\V1\DeleteEntityTypeRequest + * + * @experimental + */ + public static function buildFromNameForce(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the EntityType to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @type bool $force + * If set to true, any Features for this EntityType will also be deleted. + * (Otherwise, the request will only work if the EntityType has no Features.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the EntityType to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the EntityType to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * If set to true, any Features for this EntityType will also be deleted. + * (Otherwise, the request will only work if the EntityType has no Features.) + * + * Generated from protobuf field bool force = 2; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * If set to true, any Features for this EntityType will also be deleted. + * (Otherwise, the request will only work if the EntityType has no Features.) + * + * Generated from protobuf field bool force = 2; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteExecutionRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteExecutionRequest.php new file mode 100644 index 000000000000..cbd51947ca28 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteExecutionRequest.php @@ -0,0 +1,134 @@ +google.cloud.aiplatform.v1.DeleteExecutionRequest + */ +class DeleteExecutionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Execution to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The etag of the Execution to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the Execution to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * Please see {@see MetadataServiceClient::executionName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteExecutionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Execution to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * @type string $etag + * Optional. The etag of the Execution to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Execution to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Execution to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The etag of the Execution to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag of the Execution to delete. + * If this is provided, it must match the server's etag. Otherwise, the + * request will fail with a FAILED_PRECONDITION. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureGroupRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureGroupRequest.php new file mode 100644 index 000000000000..0cb4f265ddfa --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureGroupRequest.php @@ -0,0 +1,138 @@ +google.cloud.aiplatform.v1.DeleteFeatureGroupRequest + */ +class DeleteFeatureGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the FeatureGroup to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, any Features under this FeatureGroup + * will also be deleted. (Otherwise, the request will only work if the + * FeatureGroup has no Features.) + * + * Generated from protobuf field bool force = 2; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the FeatureGroup to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * Please see {@see FeatureRegistryServiceClient::featureGroupName()} for help formatting this field. + * @param bool $force If set to true, any Features under this FeatureGroup + * will also be deleted. (Otherwise, the request will only work if the + * FeatureGroup has no Features.) + * + * @return \Google\Cloud\AIPlatform\V1\DeleteFeatureGroupRequest + * + * @experimental + */ + public static function build(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the FeatureGroup to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @type bool $force + * If set to true, any Features under this FeatureGroup + * will also be deleted. (Otherwise, the request will only work if the + * FeatureGroup has no Features.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureRegistryService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the FeatureGroup to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the FeatureGroup to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * If set to true, any Features under this FeatureGroup + * will also be deleted. (Otherwise, the request will only work if the + * FeatureGroup has no Features.) + * + * Generated from protobuf field bool force = 2; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * If set to true, any Features under this FeatureGroup + * will also be deleted. (Otherwise, the request will only work if the + * FeatureGroup has no Features.) + * + * Generated from protobuf field bool force = 2; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureOnlineStoreRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureOnlineStoreRequest.php new file mode 100644 index 000000000000..5fdd65765b87 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureOnlineStoreRequest.php @@ -0,0 +1,138 @@ +google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + */ +class DeleteFeatureOnlineStoreRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the FeatureOnlineStore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, any FeatureViews and Features for this FeatureOnlineStore + * will also be deleted. (Otherwise, the request will only work if the + * FeatureOnlineStore has no FeatureViews.) + * + * Generated from protobuf field bool force = 2; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the FeatureOnlineStore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * Please see {@see FeatureOnlineStoreAdminServiceClient::featureOnlineStoreName()} for help formatting this field. + * @param bool $force If set to true, any FeatureViews and Features for this FeatureOnlineStore + * will also be deleted. (Otherwise, the request will only work if the + * FeatureOnlineStore has no FeatureViews.) + * + * @return \Google\Cloud\AIPlatform\V1\DeleteFeatureOnlineStoreRequest + * + * @experimental + */ + public static function build(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the FeatureOnlineStore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @type bool $force + * If set to true, any FeatureViews and Features for this FeatureOnlineStore + * will also be deleted. (Otherwise, the request will only work if the + * FeatureOnlineStore has no FeatureViews.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the FeatureOnlineStore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the FeatureOnlineStore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * If set to true, any FeatureViews and Features for this FeatureOnlineStore + * will also be deleted. (Otherwise, the request will only work if the + * FeatureOnlineStore has no FeatureViews.) + * + * Generated from protobuf field bool force = 2; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * If set to true, any FeatureViews and Features for this FeatureOnlineStore + * will also be deleted. (Otherwise, the request will only work if the + * FeatureOnlineStore has no FeatureViews.) + * + * Generated from protobuf field bool force = 2; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureRequest.php new file mode 100644 index 000000000000..e9e03c983ee1 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureRequest.php @@ -0,0 +1,99 @@ +google.cloud.aiplatform.v1.DeleteFeatureRequest + */ +class DeleteFeatureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Features to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Features to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * Please see {@see FeaturestoreServiceClient::featureName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteFeatureRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Features to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Features to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Features to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesOperationMetadata.php new file mode 100644 index 000000000000..63ba9f807d6c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + */ +class DeleteFeatureValuesOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for Featurestore delete Features values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for Featurestore delete Features values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for Featurestore delete Features values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for Featurestore delete Features values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesRequest.php new file mode 100644 index 000000000000..19b97fb35222 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesRequest.php @@ -0,0 +1,170 @@ +google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + */ +class DeleteFeatureValuesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntityType grouping the Features for + * which values are being deleted from. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * + * Generated from protobuf field string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $entity_type = ''; + protected $DeleteOption; + + /** + * @param string $entityType Required. The resource name of the EntityType grouping the Features for + * which values are being deleted from. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * Please see {@see FeaturestoreServiceClient::entityTypeName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest + * + * @experimental + */ + public static function build(string $entityType): self + { + return (new self()) + ->setEntityType($entityType); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest\SelectEntity $select_entity + * Select feature values to be deleted by specifying entities. + * @type \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest\SelectTimeRangeAndFeature $select_time_range_and_feature + * Select feature values to be deleted by specifying time range and + * features. + * @type string $entity_type + * Required. The resource name of the EntityType grouping the Features for + * which values are being deleted from. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Select feature values to be deleted by specifying entities. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * @return \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest\SelectEntity|null + */ + public function getSelectEntity() + { + return $this->readOneof(2); + } + + public function hasSelectEntity() + { + return $this->hasOneof(2); + } + + /** + * Select feature values to be deleted by specifying entities. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * @param \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest\SelectEntity $var + * @return $this + */ + public function setSelectEntity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest\SelectEntity::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Select feature values to be deleted by specifying time range and + * features. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature select_time_range_and_feature = 3; + * @return \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest\SelectTimeRangeAndFeature|null + */ + public function getSelectTimeRangeAndFeature() + { + return $this->readOneof(3); + } + + public function hasSelectTimeRangeAndFeature() + { + return $this->hasOneof(3); + } + + /** + * Select feature values to be deleted by specifying time range and + * features. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature select_time_range_and_feature = 3; + * @param \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest\SelectTimeRangeAndFeature $var + * @return $this + */ + public function setSelectTimeRangeAndFeature($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest\SelectTimeRangeAndFeature::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The resource name of the EntityType grouping the Features for + * which values are being deleted from. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * + * Generated from protobuf field string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEntityType() + { + return $this->entity_type; + } + + /** + * Required. The resource name of the EntityType grouping the Features for + * which values are being deleted from. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * + * Generated from protobuf field string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntityType($var) + { + GPBUtil::checkString($var, True); + $this->entity_type = $var; + + return $this; + } + + /** + * @return string + */ + public function getDeleteOption() + { + return $this->whichOneof("DeleteOption"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesRequest/SelectEntity.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesRequest/SelectEntity.php new file mode 100644 index 000000000000..e70044c24764 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesRequest/SelectEntity.php @@ -0,0 +1,86 @@ +google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + */ +class SelectEntity extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Selectors choosing feature values of which entity id to be + * deleted from the EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entity_id_selector = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\EntityIdSelector $entity_id_selector + * Required. Selectors choosing feature values of which entity id to be + * deleted from the EntityType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Selectors choosing feature values of which entity id to be + * deleted from the EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\EntityIdSelector|null + */ + public function getEntityIdSelector() + { + return $this->entity_id_selector; + } + + public function hasEntityIdSelector() + { + return isset($this->entity_id_selector); + } + + public function clearEntityIdSelector() + { + unset($this->entity_id_selector); + } + + /** + * Required. Selectors choosing feature values of which entity id to be + * deleted from the EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\EntityIdSelector $var + * @return $this + */ + public function setEntityIdSelector($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EntityIdSelector::class); + $this->entity_id_selector = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SelectEntity::class, \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest_SelectEntity::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesRequest/SelectTimeRangeAndFeature.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesRequest/SelectTimeRangeAndFeature.php new file mode 100644 index 000000000000..db8db2736814 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesRequest/SelectTimeRangeAndFeature.php @@ -0,0 +1,179 @@ +google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + */ +class SelectTimeRangeAndFeature extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Select feature generated within a half-inclusive time range. + * The time range is lower inclusive and upper exclusive. + * + * Generated from protobuf field .google.type.Interval time_range = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $time_range = null; + /** + * Required. Selectors choosing which feature values to be deleted from the + * EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_selector = null; + /** + * If set, data will not be deleted from online storage. + * When time range is older than the data in online storage, setting this to + * be true will make the deletion have no impact on online serving. + * + * Generated from protobuf field bool skip_online_storage_delete = 3; + */ + protected $skip_online_storage_delete = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\Interval $time_range + * Required. Select feature generated within a half-inclusive time range. + * The time range is lower inclusive and upper exclusive. + * @type \Google\Cloud\AIPlatform\V1\FeatureSelector $feature_selector + * Required. Selectors choosing which feature values to be deleted from the + * EntityType. + * @type bool $skip_online_storage_delete + * If set, data will not be deleted from online storage. + * When time range is older than the data in online storage, setting this to + * be true will make the deletion have no impact on online serving. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Select feature generated within a half-inclusive time range. + * The time range is lower inclusive and upper exclusive. + * + * Generated from protobuf field .google.type.Interval time_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\Interval|null + */ + public function getTimeRange() + { + return $this->time_range; + } + + public function hasTimeRange() + { + return isset($this->time_range); + } + + public function clearTimeRange() + { + unset($this->time_range); + } + + /** + * Required. Select feature generated within a half-inclusive time range. + * The time range is lower inclusive and upper exclusive. + * + * Generated from protobuf field .google.type.Interval time_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setTimeRange($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->time_range = $var; + + return $this; + } + + /** + * Required. Selectors choosing which feature values to be deleted from the + * EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\FeatureSelector|null + */ + public function getFeatureSelector() + { + return $this->feature_selector; + } + + public function hasFeatureSelector() + { + return isset($this->feature_selector); + } + + public function clearFeatureSelector() + { + unset($this->feature_selector); + } + + /** + * Required. Selectors choosing which feature values to be deleted from the + * EntityType. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\FeatureSelector $var + * @return $this + */ + public function setFeatureSelector($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureSelector::class); + $this->feature_selector = $var; + + return $this; + } + + /** + * If set, data will not be deleted from online storage. + * When time range is older than the data in online storage, setting this to + * be true will make the deletion have no impact on online serving. + * + * Generated from protobuf field bool skip_online_storage_delete = 3; + * @return bool + */ + public function getSkipOnlineStorageDelete() + { + return $this->skip_online_storage_delete; + } + + /** + * If set, data will not be deleted from online storage. + * When time range is older than the data in online storage, setting this to + * be true will make the deletion have no impact on online serving. + * + * Generated from protobuf field bool skip_online_storage_delete = 3; + * @param bool $var + * @return $this + */ + public function setSkipOnlineStorageDelete($var) + { + GPBUtil::checkBool($var); + $this->skip_online_storage_delete = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SelectTimeRangeAndFeature::class, \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesRequest_SelectTimeRangeAndFeature::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesResponse.php new file mode 100644 index 000000000000..f0d0289e26ac --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesResponse.php @@ -0,0 +1,109 @@ +google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + */ +class DeleteFeatureValuesResponse extends \Google\Protobuf\Internal\Message +{ + protected $response; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesResponse\SelectEntity $select_entity + * Response for request specifying the entities to delete + * @type \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesResponse\SelectTimeRangeAndFeature $select_time_range_and_feature + * Response for request specifying time range and feature + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Response for request specifying the entities to delete + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity select_entity = 1; + * @return \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesResponse\SelectEntity|null + */ + public function getSelectEntity() + { + return $this->readOneof(1); + } + + public function hasSelectEntity() + { + return $this->hasOneof(1); + } + + /** + * Response for request specifying the entities to delete + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity select_entity = 1; + * @param \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesResponse\SelectEntity $var + * @return $this + */ + public function setSelectEntity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesResponse\SelectEntity::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Response for request specifying time range and feature + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature select_time_range_and_feature = 2; + * @return \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesResponse\SelectTimeRangeAndFeature|null + */ + public function getSelectTimeRangeAndFeature() + { + return $this->readOneof(2); + } + + public function hasSelectTimeRangeAndFeature() + { + return $this->hasOneof(2); + } + + /** + * Response for request specifying time range and feature + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature select_time_range_and_feature = 2; + * @param \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesResponse\SelectTimeRangeAndFeature $var + * @return $this + */ + public function setSelectTimeRangeAndFeature($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesResponse\SelectTimeRangeAndFeature::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getResponse() + { + return $this->whichOneof("response"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesResponse/SelectEntity.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesResponse/SelectEntity.php new file mode 100644 index 000000000000..8c50ddaeb5bd --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesResponse/SelectEntity.php @@ -0,0 +1,116 @@ +google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + */ +class SelectEntity extends \Google\Protobuf\Internal\Message +{ + /** + * The count of deleted entity rows in the offline storage. + * Each row corresponds to the combination of an entity ID and a timestamp. + * One entity ID can have multiple rows in the offline storage. + * + * Generated from protobuf field int64 offline_storage_deleted_entity_row_count = 1; + */ + protected $offline_storage_deleted_entity_row_count = 0; + /** + * The count of deleted entities in the online storage. + * Each entity ID corresponds to one entity. + * + * Generated from protobuf field int64 online_storage_deleted_entity_count = 2; + */ + protected $online_storage_deleted_entity_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $offline_storage_deleted_entity_row_count + * The count of deleted entity rows in the offline storage. + * Each row corresponds to the combination of an entity ID and a timestamp. + * One entity ID can have multiple rows in the offline storage. + * @type int|string $online_storage_deleted_entity_count + * The count of deleted entities in the online storage. + * Each entity ID corresponds to one entity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * The count of deleted entity rows in the offline storage. + * Each row corresponds to the combination of an entity ID and a timestamp. + * One entity ID can have multiple rows in the offline storage. + * + * Generated from protobuf field int64 offline_storage_deleted_entity_row_count = 1; + * @return int|string + */ + public function getOfflineStorageDeletedEntityRowCount() + { + return $this->offline_storage_deleted_entity_row_count; + } + + /** + * The count of deleted entity rows in the offline storage. + * Each row corresponds to the combination of an entity ID and a timestamp. + * One entity ID can have multiple rows in the offline storage. + * + * Generated from protobuf field int64 offline_storage_deleted_entity_row_count = 1; + * @param int|string $var + * @return $this + */ + public function setOfflineStorageDeletedEntityRowCount($var) + { + GPBUtil::checkInt64($var); + $this->offline_storage_deleted_entity_row_count = $var; + + return $this; + } + + /** + * The count of deleted entities in the online storage. + * Each entity ID corresponds to one entity. + * + * Generated from protobuf field int64 online_storage_deleted_entity_count = 2; + * @return int|string + */ + public function getOnlineStorageDeletedEntityCount() + { + return $this->online_storage_deleted_entity_count; + } + + /** + * The count of deleted entities in the online storage. + * Each entity ID corresponds to one entity. + * + * Generated from protobuf field int64 online_storage_deleted_entity_count = 2; + * @param int|string $var + * @return $this + */ + public function setOnlineStorageDeletedEntityCount($var) + { + GPBUtil::checkInt64($var); + $this->online_storage_deleted_entity_count = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SelectEntity::class, \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesResponse_SelectEntity::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesResponse/SelectTimeRangeAndFeature.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesResponse/SelectTimeRangeAndFeature.php new file mode 100644 index 000000000000..1bf169b186df --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureValuesResponse/SelectTimeRangeAndFeature.php @@ -0,0 +1,170 @@ +google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + */ +class SelectTimeRangeAndFeature extends \Google\Protobuf\Internal\Message +{ + /** + * The count of the features or columns impacted. + * This is the same as the feature count in the request. + * + * Generated from protobuf field int64 impacted_feature_count = 1; + */ + protected $impacted_feature_count = 0; + /** + * The count of modified entity rows in the offline storage. + * Each row corresponds to the combination of an entity ID and a timestamp. + * One entity ID can have multiple rows in the offline storage. + * Within each row, only the features specified in the request are + * deleted. + * + * Generated from protobuf field int64 offline_storage_modified_entity_row_count = 2; + */ + protected $offline_storage_modified_entity_row_count = 0; + /** + * The count of modified entities in the online storage. + * Each entity ID corresponds to one entity. + * Within each entity, only the features specified in the request are + * deleted. + * + * Generated from protobuf field int64 online_storage_modified_entity_count = 3; + */ + protected $online_storage_modified_entity_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $impacted_feature_count + * The count of the features or columns impacted. + * This is the same as the feature count in the request. + * @type int|string $offline_storage_modified_entity_row_count + * The count of modified entity rows in the offline storage. + * Each row corresponds to the combination of an entity ID and a timestamp. + * One entity ID can have multiple rows in the offline storage. + * Within each row, only the features specified in the request are + * deleted. + * @type int|string $online_storage_modified_entity_count + * The count of modified entities in the online storage. + * Each entity ID corresponds to one entity. + * Within each entity, only the features specified in the request are + * deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * The count of the features or columns impacted. + * This is the same as the feature count in the request. + * + * Generated from protobuf field int64 impacted_feature_count = 1; + * @return int|string + */ + public function getImpactedFeatureCount() + { + return $this->impacted_feature_count; + } + + /** + * The count of the features or columns impacted. + * This is the same as the feature count in the request. + * + * Generated from protobuf field int64 impacted_feature_count = 1; + * @param int|string $var + * @return $this + */ + public function setImpactedFeatureCount($var) + { + GPBUtil::checkInt64($var); + $this->impacted_feature_count = $var; + + return $this; + } + + /** + * The count of modified entity rows in the offline storage. + * Each row corresponds to the combination of an entity ID and a timestamp. + * One entity ID can have multiple rows in the offline storage. + * Within each row, only the features specified in the request are + * deleted. + * + * Generated from protobuf field int64 offline_storage_modified_entity_row_count = 2; + * @return int|string + */ + public function getOfflineStorageModifiedEntityRowCount() + { + return $this->offline_storage_modified_entity_row_count; + } + + /** + * The count of modified entity rows in the offline storage. + * Each row corresponds to the combination of an entity ID and a timestamp. + * One entity ID can have multiple rows in the offline storage. + * Within each row, only the features specified in the request are + * deleted. + * + * Generated from protobuf field int64 offline_storage_modified_entity_row_count = 2; + * @param int|string $var + * @return $this + */ + public function setOfflineStorageModifiedEntityRowCount($var) + { + GPBUtil::checkInt64($var); + $this->offline_storage_modified_entity_row_count = $var; + + return $this; + } + + /** + * The count of modified entities in the online storage. + * Each entity ID corresponds to one entity. + * Within each entity, only the features specified in the request are + * deleted. + * + * Generated from protobuf field int64 online_storage_modified_entity_count = 3; + * @return int|string + */ + public function getOnlineStorageModifiedEntityCount() + { + return $this->online_storage_modified_entity_count; + } + + /** + * The count of modified entities in the online storage. + * Each entity ID corresponds to one entity. + * Within each entity, only the features specified in the request are + * deleted. + * + * Generated from protobuf field int64 online_storage_modified_entity_count = 3; + * @param int|string $var + * @return $this + */ + public function setOnlineStorageModifiedEntityCount($var) + { + GPBUtil::checkInt64($var); + $this->online_storage_modified_entity_count = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SelectTimeRangeAndFeature::class, \Google\Cloud\AIPlatform\V1\DeleteFeatureValuesResponse_SelectTimeRangeAndFeature::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureViewRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureViewRequest.php new file mode 100644 index 000000000000..11a935f82552 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeatureViewRequest.php @@ -0,0 +1,91 @@ +google.cloud.aiplatform.v1.DeleteFeatureViewRequest + */ +class DeleteFeatureViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the FeatureView to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the FeatureView to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * Please see {@see FeatureOnlineStoreAdminServiceClient::featureViewName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteFeatureViewRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the FeatureView to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the FeatureView to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the FeatureView to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeaturestoreRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeaturestoreRequest.php new file mode 100644 index 000000000000..8a70176fcb87 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteFeaturestoreRequest.php @@ -0,0 +1,154 @@ +google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + */ +class DeleteFeaturestoreRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Featurestore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, any EntityTypes and Features for this Featurestore will + * also be deleted. (Otherwise, the request will only work if the Featurestore + * has no EntityTypes.) + * + * Generated from protobuf field bool force = 2; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the Featurestore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * Please see {@see FeaturestoreServiceClient::featurestoreName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteFeaturestoreRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * @param string $name Required. The name of the Featurestore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * Please see {@see FeaturestoreServiceClient::featurestoreName()} for help formatting this field. + * @param bool $force If set to true, any EntityTypes and Features for this Featurestore will + * also be deleted. (Otherwise, the request will only work if the Featurestore + * has no EntityTypes.) + * + * @return \Google\Cloud\AIPlatform\V1\DeleteFeaturestoreRequest + * + * @experimental + */ + public static function buildFromNameForce(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Featurestore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @type bool $force + * If set to true, any EntityTypes and Features for this Featurestore will + * also be deleted. (Otherwise, the request will only work if the Featurestore + * has no EntityTypes.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Featurestore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Featurestore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * If set to true, any EntityTypes and Features for this Featurestore will + * also be deleted. (Otherwise, the request will only work if the Featurestore + * has no EntityTypes.) + * + * Generated from protobuf field bool force = 2; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * If set to true, any EntityTypes and Features for this Featurestore will + * also be deleted. (Otherwise, the request will only work if the Featurestore + * has no EntityTypes.) + * + * Generated from protobuf field bool force = 2; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteHyperparameterTuningJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteHyperparameterTuningJobRequest.php new file mode 100644 index 000000000000..284f7482f6fb --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteHyperparameterTuningJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest + */ +class DeleteHyperparameterTuningJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the HyperparameterTuningJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the HyperparameterTuningJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Please see {@see JobServiceClient::hyperparameterTuningJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteHyperparameterTuningJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the HyperparameterTuningJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the HyperparameterTuningJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the HyperparameterTuningJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteIndexEndpointRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteIndexEndpointRequest.php new file mode 100644 index 000000000000..fb6aeef6104d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteIndexEndpointRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteIndexEndpointRequest + */ +class DeleteIndexEndpointRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the IndexEndpoint resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the IndexEndpoint resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Please see {@see IndexEndpointServiceClient::indexEndpointName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteIndexEndpointRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the IndexEndpoint resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpointService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the IndexEndpoint resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the IndexEndpoint resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteIndexRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteIndexRequest.php new file mode 100644 index 000000000000..418d40a7f0e9 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteIndexRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteIndexRequest + */ +class DeleteIndexRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Index resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Index resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * Please see {@see IndexServiceClient::indexName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteIndexRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Index resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Index resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Index resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteMetadataStoreOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteMetadataStoreOperationMetadata.php new file mode 100644 index 000000000000..c8b6e4005039 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteMetadataStoreOperationMetadata.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata + */ +class DeleteMetadataStoreOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for deleting a MetadataStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for deleting a MetadataStore. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for deleting a MetadataStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for deleting a MetadataStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteMetadataStoreRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteMetadataStoreRequest.php new file mode 100644 index 000000000000..1ff107a40ef7 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteMetadataStoreRequest.php @@ -0,0 +1,131 @@ +google.cloud.aiplatform.v1.DeleteMetadataStoreRequest + */ +class DeleteMetadataStoreRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the MetadataStore to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Deprecated: Field is no longer supported. + * + * Generated from protobuf field bool force = 2 [deprecated = true]; + * @deprecated + */ + protected $force = false; + + /** + * @param string $name Required. The resource name of the MetadataStore to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * Please see {@see MetadataServiceClient::metadataStoreName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteMetadataStoreRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the MetadataStore to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @type bool $force + * Deprecated: Field is no longer supported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the MetadataStore to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the MetadataStore to delete. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Deprecated: Field is no longer supported. + * + * Generated from protobuf field bool force = 2 [deprecated = true]; + * @return bool + * @deprecated + */ + public function getForce() + { + @trigger_error('force is deprecated.', E_USER_DEPRECATED); + return $this->force; + } + + /** + * Deprecated: Field is no longer supported. + * + * Generated from protobuf field bool force = 2 [deprecated = true]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setForce($var) + { + @trigger_error('force is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteModelDeploymentMonitoringJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteModelDeploymentMonitoringJobRequest.php new file mode 100644 index 000000000000..3497dadbb97e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteModelDeploymentMonitoringJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + */ +class DeleteModelDeploymentMonitoringJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the model monitoring job to delete. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the model monitoring job to delete. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * Please see {@see JobServiceClient::modelDeploymentMonitoringJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteModelDeploymentMonitoringJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the model monitoring job to delete. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the model monitoring job to delete. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the model monitoring job to delete. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteModelRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteModelRequest.php new file mode 100644 index 000000000000..1faeb4d0ff54 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteModelRequest.php @@ -0,0 +1,87 @@ +google.cloud.aiplatform.v1.DeleteModelRequest + */ +class DeleteModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Model resource to be deleted. + * Format: `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Model resource to be deleted. + * Format: `projects/{project}/locations/{location}/models/{model}` + * Please see {@see ModelServiceClient::modelName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteModelRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Model resource to be deleted. + * Format: `projects/{project}/locations/{location}/models/{model}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Model resource to be deleted. + * Format: `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Model resource to be deleted. + * Format: `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteModelVersionRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteModelVersionRequest.php new file mode 100644 index 000000000000..594e38fefb09 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteModelVersionRequest.php @@ -0,0 +1,93 @@ +google.cloud.aiplatform.v1.DeleteModelVersionRequest + */ +class DeleteModelVersionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the model version to be deleted, with a version ID + * explicitly included. + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the model version to be deleted, with a version ID + * explicitly included. + * + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * Please see {@see ModelServiceClient::modelName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteModelVersionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the model version to be deleted, with a version ID + * explicitly included. + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the model version to be deleted, with a version ID + * explicitly included. + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the model version to be deleted, with a version ID + * explicitly included. + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteNasJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteNasJobRequest.php new file mode 100644 index 000000000000..3fc52e5916c0 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteNasJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteNasJobRequest + */ +class DeleteNasJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * Please see {@see JobServiceClient::nasJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteNasJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteOperationMetadata.php new file mode 100644 index 000000000000..550d06373645 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.DeleteOperationMetadata + */ +class DeleteOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The common part of the operation metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Operation::initOnce(); + parent::__construct($data); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeletePipelineJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeletePipelineJobRequest.php new file mode 100644 index 000000000000..b20e5935e894 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeletePipelineJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeletePipelineJobRequest + */ +class DeletePipelineJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the PipelineJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the PipelineJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * Please see {@see PipelineServiceClient::pipelineJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeletePipelineJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the PipelineJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PipelineService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the PipelineJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the PipelineJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteSavedQueryRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteSavedQueryRequest.php new file mode 100644 index 000000000000..c11454383354 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteSavedQueryRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteSavedQueryRequest + */ +class DeleteSavedQueryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the SavedQuery to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the SavedQuery to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * Please see {@see DatasetServiceClient::savedQueryName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteSavedQueryRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the SavedQuery to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the SavedQuery to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the SavedQuery to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteScheduleRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteScheduleRequest.php new file mode 100644 index 000000000000..ea69f30d7497 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteScheduleRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteScheduleRequest + */ +class DeleteScheduleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Schedule resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/schedules/{schedule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Schedule resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/schedules/{schedule}` + * Please see {@see ScheduleServiceClient::scheduleName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteScheduleRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Schedule resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/schedules/{schedule}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ScheduleService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Schedule resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/schedules/{schedule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Schedule resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/schedules/{schedule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteSpecialistPoolRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteSpecialistPoolRequest.php new file mode 100644 index 000000000000..4f480e345c69 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteSpecialistPoolRequest.php @@ -0,0 +1,129 @@ +google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest + */ +class DeleteSpecialistPoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the SpecialistPool to delete. Format: + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * If set to true, any specialist managers in this SpecialistPool will also be + * deleted. (Otherwise, the request will only work if the SpecialistPool has + * no specialist managers.) + * + * Generated from protobuf field bool force = 2; + */ + protected $force = false; + + /** + * @param string $name Required. The resource name of the SpecialistPool to delete. Format: + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` + * Please see {@see SpecialistPoolServiceClient::specialistPoolName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteSpecialistPoolRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the SpecialistPool to delete. Format: + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` + * @type bool $force + * If set to true, any specialist managers in this SpecialistPool will also be + * deleted. (Otherwise, the request will only work if the SpecialistPool has + * no specialist managers.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\SpecialistPoolService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the SpecialistPool to delete. Format: + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the SpecialistPool to delete. Format: + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * If set to true, any specialist managers in this SpecialistPool will also be + * deleted. (Otherwise, the request will only work if the SpecialistPool has + * no specialist managers.) + * + * Generated from protobuf field bool force = 2; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * If set to true, any specialist managers in this SpecialistPool will also be + * deleted. (Otherwise, the request will only work if the SpecialistPool has + * no specialist managers.) + * + * Generated from protobuf field bool force = 2; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteStudyRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteStudyRequest.php new file mode 100644 index 000000000000..64b41f042682 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteStudyRequest.php @@ -0,0 +1,87 @@ +google.cloud.aiplatform.v1.DeleteStudyRequest + */ +class DeleteStudyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Study resource to be deleted. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Study resource to be deleted. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * Please see {@see VizierServiceClient::studyName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteStudyRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Study resource to be deleted. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Study resource to be deleted. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Study resource to be deleted. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardExperimentRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardExperimentRequest.php new file mode 100644 index 000000000000..f35a73540e67 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardExperimentRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest + */ +class DeleteTensorboardExperimentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the TensorboardExperiment to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the TensorboardExperiment to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * Please see {@see TensorboardServiceClient::tensorboardExperimentName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteTensorboardExperimentRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the TensorboardExperiment to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the TensorboardExperiment to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the TensorboardExperiment to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardRequest.php new file mode 100644 index 000000000000..a7230c9e783a --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteTensorboardRequest + */ +class DeleteTensorboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Tensorboard to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Tensorboard to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * Please see {@see TensorboardServiceClient::tensorboardName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteTensorboardRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Tensorboard to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Tensorboard to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Tensorboard to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardRunRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardRunRequest.php new file mode 100644 index 000000000000..f63d3f04fde3 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardRunRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteTensorboardRunRequest + */ +class DeleteTensorboardRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the TensorboardRun to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the TensorboardRun to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * Please see {@see TensorboardServiceClient::tensorboardRunName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteTensorboardRunRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the TensorboardRun to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the TensorboardRun to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the TensorboardRun to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardTimeSeriesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardTimeSeriesRequest.php new file mode 100644 index 000000000000..489585d7153b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTensorboardTimeSeriesRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest + */ +class DeleteTensorboardTimeSeriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the TensorboardTimeSeries to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the TensorboardTimeSeries to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * Please see {@see TensorboardServiceClient::tensorboardTimeSeriesName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteTensorboardTimeSeriesRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the TensorboardTimeSeries to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the TensorboardTimeSeries to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the TensorboardTimeSeries to be deleted. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTrainingPipelineRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTrainingPipelineRequest.php new file mode 100644 index 000000000000..544aa735599d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTrainingPipelineRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + */ +class DeleteTrainingPipelineRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the TrainingPipeline resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the TrainingPipeline resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * Please see {@see PipelineServiceClient::trainingPipelineName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteTrainingPipelineRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the TrainingPipeline resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PipelineService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the TrainingPipeline resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the TrainingPipeline resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTrialRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTrialRequest.php new file mode 100644 index 000000000000..a392aa91f814 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeleteTrialRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.DeleteTrialRequest + */ +class DeleteTrialRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * Please see {@see VizierServiceClient::trialName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\DeleteTrialRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The Trial's name. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployIndexOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployIndexOperationMetadata.php new file mode 100644 index 000000000000..359d23294621 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployIndexOperationMetadata.php @@ -0,0 +1,112 @@ +google.cloud.aiplatform.v1.DeployIndexOperationMetadata + */ +class DeployIndexOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + /** + * The unique index id specified by user + * + * Generated from protobuf field string deployed_index_id = 2; + */ + protected $deployed_index_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The operation generic information. + * @type string $deployed_index_id + * The unique index id specified by user + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpointService::initOnce(); + parent::__construct($data); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + + /** + * The unique index id specified by user + * + * Generated from protobuf field string deployed_index_id = 2; + * @return string + */ + public function getDeployedIndexId() + { + return $this->deployed_index_id; + } + + /** + * The unique index id specified by user + * + * Generated from protobuf field string deployed_index_id = 2; + * @param string $var + * @return $this + */ + public function setDeployedIndexId($var) + { + GPBUtil::checkString($var, True); + $this->deployed_index_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployIndexRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployIndexRequest.php new file mode 100644 index 000000000000..d47467ec9876 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployIndexRequest.php @@ -0,0 +1,138 @@ +google.cloud.aiplatform.v1.DeployIndexRequest + */ +class DeployIndexRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the IndexEndpoint resource into which to deploy an + * Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $index_endpoint = ''; + /** + * Required. The DeployedIndex to be created within the IndexEndpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deployed_index = null; + + /** + * @param string $indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an + * Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Please see {@see IndexEndpointServiceClient::indexEndpointName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\DeployedIndex $deployedIndex Required. The DeployedIndex to be created within the IndexEndpoint. + * + * @return \Google\Cloud\AIPlatform\V1\DeployIndexRequest + * + * @experimental + */ + public static function build(string $indexEndpoint, \Google\Cloud\AIPlatform\V1\DeployedIndex $deployedIndex): self + { + return (new self()) + ->setIndexEndpoint($indexEndpoint) + ->setDeployedIndex($deployedIndex); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $index_endpoint + * Required. The name of the IndexEndpoint resource into which to deploy an + * Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @type \Google\Cloud\AIPlatform\V1\DeployedIndex $deployed_index + * Required. The DeployedIndex to be created within the IndexEndpoint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpointService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the IndexEndpoint resource into which to deploy an + * Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getIndexEndpoint() + { + return $this->index_endpoint; + } + + /** + * Required. The name of the IndexEndpoint resource into which to deploy an + * Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setIndexEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->index_endpoint = $var; + + return $this; + } + + /** + * Required. The DeployedIndex to be created within the IndexEndpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\DeployedIndex|null + */ + public function getDeployedIndex() + { + return $this->deployed_index; + } + + public function hasDeployedIndex() + { + return isset($this->deployed_index); + } + + public function clearDeployedIndex() + { + unset($this->deployed_index); + } + + /** + * Required. The DeployedIndex to be created within the IndexEndpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\DeployedIndex $var + * @return $this + */ + public function setDeployedIndex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeployedIndex::class); + $this->deployed_index = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployIndexResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployIndexResponse.php new file mode 100644 index 000000000000..fc3b10e89fb9 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployIndexResponse.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.DeployIndexResponse + */ +class DeployIndexResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The DeployedIndex that had been deployed in the IndexEndpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 1; + */ + protected $deployed_index = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\DeployedIndex $deployed_index + * The DeployedIndex that had been deployed in the IndexEndpoint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpointService::initOnce(); + parent::__construct($data); + } + + /** + * The DeployedIndex that had been deployed in the IndexEndpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 1; + * @return \Google\Cloud\AIPlatform\V1\DeployedIndex|null + */ + public function getDeployedIndex() + { + return $this->deployed_index; + } + + public function hasDeployedIndex() + { + return isset($this->deployed_index); + } + + public function clearDeployedIndex() + { + unset($this->deployed_index); + } + + /** + * The DeployedIndex that had been deployed in the IndexEndpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 1; + * @param \Google\Cloud\AIPlatform\V1\DeployedIndex $var + * @return $this + */ + public function setDeployedIndex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeployedIndex::class); + $this->deployed_index = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployModelOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployModelOperationMetadata.php new file mode 100644 index 000000000000..96c212eb21e1 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployModelOperationMetadata.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.DeployModelOperationMetadata + */ +class DeployModelOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The operation generic information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EndpointService::initOnce(); + parent::__construct($data); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The operation generic information. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployModelRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployModelRequest.php new file mode 100644 index 000000000000..e044c3fef64d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployModelRequest.php @@ -0,0 +1,246 @@ +google.cloud.aiplatform.v1.DeployModelRequest + */ +class DeployModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Endpoint resource into which to deploy a Model. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $endpoint = ''; + /** + * Required. The DeployedModel to be created within the Endpoint. Note that + * [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] + * must be updated for the DeployedModel to start receiving traffic, either as + * part of this call, or via + * [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deployed_model = null; + /** + * A map from a DeployedModel's ID to the percentage of this Endpoint's + * traffic that should be forwarded to that DeployedModel. + * If this field is non-empty, then the Endpoint's + * [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be + * overwritten with it. To refer to the ID of the just being deployed Model, a + * "0" should be used, and the actual ID of the new DeployedModel will be + * filled in its place by this method. The traffic percentage values must add + * up to 100. + * If this field is empty, then the Endpoint's + * [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] is not + * updated. + * + * Generated from protobuf field map traffic_split = 3; + */ + private $traffic_split; + + /** + * @param string $endpoint Required. The name of the Endpoint resource into which to deploy a Model. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Please see {@see EndpointServiceClient::endpointName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\DeployedModel $deployedModel Required. The DeployedModel to be created within the Endpoint. Note that + * [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] + * must be updated for the DeployedModel to start receiving traffic, either as + * part of this call, or via + * [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint]. + * @param array $trafficSplit A map from a DeployedModel's ID to the percentage of this Endpoint's + * traffic that should be forwarded to that DeployedModel. + * + * If this field is non-empty, then the Endpoint's + * [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be + * overwritten with it. To refer to the ID of the just being deployed Model, a + * "0" should be used, and the actual ID of the new DeployedModel will be + * filled in its place by this method. The traffic percentage values must add + * up to 100. + * + * If this field is empty, then the Endpoint's + * [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] is not + * updated. + * + * @return \Google\Cloud\AIPlatform\V1\DeployModelRequest + * + * @experimental + */ + public static function build(string $endpoint, \Google\Cloud\AIPlatform\V1\DeployedModel $deployedModel, array $trafficSplit): self + { + return (new self()) + ->setEndpoint($endpoint) + ->setDeployedModel($deployedModel) + ->setTrafficSplit($trafficSplit); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $endpoint + * Required. The name of the Endpoint resource into which to deploy a Model. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @type \Google\Cloud\AIPlatform\V1\DeployedModel $deployed_model + * Required. The DeployedModel to be created within the Endpoint. Note that + * [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] + * must be updated for the DeployedModel to start receiving traffic, either as + * part of this call, or via + * [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint]. + * @type array|\Google\Protobuf\Internal\MapField $traffic_split + * A map from a DeployedModel's ID to the percentage of this Endpoint's + * traffic that should be forwarded to that DeployedModel. + * If this field is non-empty, then the Endpoint's + * [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be + * overwritten with it. To refer to the ID of the just being deployed Model, a + * "0" should be used, and the actual ID of the new DeployedModel will be + * filled in its place by this method. The traffic percentage values must add + * up to 100. + * If this field is empty, then the Endpoint's + * [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] is not + * updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EndpointService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Endpoint resource into which to deploy a Model. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * Required. The name of the Endpoint resource into which to deploy a Model. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * Required. The DeployedModel to be created within the Endpoint. Note that + * [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] + * must be updated for the DeployedModel to start receiving traffic, either as + * part of this call, or via + * [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\DeployedModel|null + */ + public function getDeployedModel() + { + return $this->deployed_model; + } + + public function hasDeployedModel() + { + return isset($this->deployed_model); + } + + public function clearDeployedModel() + { + unset($this->deployed_model); + } + + /** + * Required. The DeployedModel to be created within the Endpoint. Note that + * [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] + * must be updated for the DeployedModel to start receiving traffic, either as + * part of this call, or via + * [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint]. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\DeployedModel $var + * @return $this + */ + public function setDeployedModel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeployedModel::class); + $this->deployed_model = $var; + + return $this; + } + + /** + * A map from a DeployedModel's ID to the percentage of this Endpoint's + * traffic that should be forwarded to that DeployedModel. + * If this field is non-empty, then the Endpoint's + * [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be + * overwritten with it. To refer to the ID of the just being deployed Model, a + * "0" should be used, and the actual ID of the new DeployedModel will be + * filled in its place by this method. The traffic percentage values must add + * up to 100. + * If this field is empty, then the Endpoint's + * [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] is not + * updated. + * + * Generated from protobuf field map traffic_split = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTrafficSplit() + { + return $this->traffic_split; + } + + /** + * A map from a DeployedModel's ID to the percentage of this Endpoint's + * traffic that should be forwarded to that DeployedModel. + * If this field is non-empty, then the Endpoint's + * [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be + * overwritten with it. To refer to the ID of the just being deployed Model, a + * "0" should be used, and the actual ID of the new DeployedModel will be + * filled in its place by this method. The traffic percentage values must add + * up to 100. + * If this field is empty, then the Endpoint's + * [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] is not + * updated. + * + * Generated from protobuf field map traffic_split = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTrafficSplit($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); + $this->traffic_split = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployModelResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployModelResponse.php new file mode 100644 index 000000000000..affc801ec33e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployModelResponse.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.DeployModelResponse + */ +class DeployModelResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The DeployedModel that had been deployed in the Endpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedModel deployed_model = 1; + */ + protected $deployed_model = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\DeployedModel $deployed_model + * The DeployedModel that had been deployed in the Endpoint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EndpointService::initOnce(); + parent::__construct($data); + } + + /** + * The DeployedModel that had been deployed in the Endpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedModel deployed_model = 1; + * @return \Google\Cloud\AIPlatform\V1\DeployedModel|null + */ + public function getDeployedModel() + { + return $this->deployed_model; + } + + public function hasDeployedModel() + { + return isset($this->deployed_model); + } + + public function clearDeployedModel() + { + unset($this->deployed_model); + } + + /** + * The DeployedModel that had been deployed in the Endpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedModel deployed_model = 1; + * @param \Google\Cloud\AIPlatform\V1\DeployedModel $var + * @return $this + */ + public function setDeployedModel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeployedModel::class); + $this->deployed_model = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndex.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndex.php new file mode 100644 index 000000000000..ea468ed0facc --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndex.php @@ -0,0 +1,757 @@ +google.cloud.aiplatform.v1.DeployedIndex + */ +class DeployedIndex extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The user specified ID of the DeployedIndex. + * The ID can be up to 128 characters long and must start with a letter and + * only contain letters, numbers, and underscores. + * The ID must be unique within the project it is created in. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Required. The name of the Index this is the deployment of. + * We may refer to this Index as the DeployedIndex's "original" Index. + * + * Generated from protobuf field string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $index = ''; + /** + * The display name of the DeployedIndex. If not provided upon creation, + * the Index's display_name is used. + * + * Generated from protobuf field string display_name = 3; + */ + protected $display_name = ''; + /** + * Output only. Timestamp when the DeployedIndex was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Provides paths for users to send requests directly to the + * deployed index services running on Cloud via private services access. This + * field is populated if + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] is configured. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_endpoints = null; + /** + * Output only. The DeployedIndex may depend on various data on its original + * Index. Additionally when certain changes to the original Index are being + * done (e.g. when what the Index contains is being changed) the DeployedIndex + * may be asynchronously updated in the background to reflect these changes. + * If this timestamp's value is at least the + * [Index.update_time][google.cloud.aiplatform.v1.Index.update_time] of the + * original Index, it means that this DeployedIndex and the original Index are + * in sync. If this timestamp is older, then to see which updates this + * DeployedIndex already contains (and which it does not), one must + * [list][google.longrunning.Operations.ListOperations] the operations that + * are running on the original Index. Only the successfully completed + * Operations with + * [update_time][google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] + * equal or before this sync time are contained in this DeployedIndex. + * + * Generated from protobuf field .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $index_sync_time = null; + /** + * Optional. A description of resources that the DeployedIndex uses, which to + * large degree are decided by Vertex AI, and optionally allows only a modest + * additional configuration. + * If min_replica_count is not set, the default value is 2 (we don't provide + * SLA when min_replica_count=1). If max_replica_count is not set, the + * default value is min_replica_count. The max allowed replica count is + * 1000. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $automatic_resources = null; + /** + * Optional. A description of resources that are dedicated to the + * DeployedIndex, and that need a higher degree of manual configuration. The + * field min_replica_count must be set to a value strictly greater than 0, or + * else validation will fail. We don't provide SLA when min_replica_count=1. + * If max_replica_count is not set, the default value is min_replica_count. + * The max allowed replica count is 1000. + * Available machine types for SMALL shard: + * e2-standard-2 and all machine types available for MEDIUM and LARGE shard. + * Available machine types for MEDIUM shard: + * e2-standard-16 and all machine types available for LARGE shard. + * Available machine types for LARGE shard: + * e2-highmem-16, n2d-standard-32. + * n1-standard-16 and n1-standard-32 are still available, but we recommend + * e2-standard-16 and e2-highmem-16 for cost efficiency. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dedicated_resources = null; + /** + * Optional. If true, private endpoint's access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each MatchRequest. + * Note that logs may incur a cost, especially if the deployed + * index receives a high queries per second rate (QPS). + * Estimate your costs before enabling this option. + * + * Generated from protobuf field bool enable_access_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_access_logging = false; + /** + * Optional. If set, the authentication is enabled for the private endpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $deployed_index_auth_config = null; + /** + * Optional. A list of reserved ip ranges under the VPC network that can be + * used for this DeployedIndex. + * If set, we will deploy the index within the provided ip ranges. Otherwise, + * the index might be deployed to any ip ranges under the provided VPC + * network. + * The value should be the name of the address + * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) + * Example: ['vertex-ai-ip-range']. + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. + * + * Generated from protobuf field repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $reserved_ip_ranges; + /** + * Optional. The deployment group can be no longer than 64 characters (eg: + * 'test', 'prod'). If not set, we will use the 'default' deployment group. + * Creating `deployment_groups` with `reserved_ip_ranges` is a recommended + * practice when the peered network has multiple peering ranges. This creates + * your deployments from predictable IP spaces for easier traffic + * administration. Also, one deployment_group (except 'default') can only be + * used with the same reserved_ip_ranges which means if the deployment_group + * has been used with reserved_ip_ranges: [a, b, c], using it with [a, b] or + * [d, e] is disallowed. + * Note: we only support up to 5 deployment groups(not including 'default'). + * + * Generated from protobuf field string deployment_group = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $deployment_group = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. The user specified ID of the DeployedIndex. + * The ID can be up to 128 characters long and must start with a letter and + * only contain letters, numbers, and underscores. + * The ID must be unique within the project it is created in. + * @type string $index + * Required. The name of the Index this is the deployment of. + * We may refer to this Index as the DeployedIndex's "original" Index. + * @type string $display_name + * The display name of the DeployedIndex. If not provided upon creation, + * the Index's display_name is used. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when the DeployedIndex was created. + * @type \Google\Cloud\AIPlatform\V1\IndexPrivateEndpoints $private_endpoints + * Output only. Provides paths for users to send requests directly to the + * deployed index services running on Cloud via private services access. This + * field is populated if + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] is configured. + * @type \Google\Protobuf\Timestamp $index_sync_time + * Output only. The DeployedIndex may depend on various data on its original + * Index. Additionally when certain changes to the original Index are being + * done (e.g. when what the Index contains is being changed) the DeployedIndex + * may be asynchronously updated in the background to reflect these changes. + * If this timestamp's value is at least the + * [Index.update_time][google.cloud.aiplatform.v1.Index.update_time] of the + * original Index, it means that this DeployedIndex and the original Index are + * in sync. If this timestamp is older, then to see which updates this + * DeployedIndex already contains (and which it does not), one must + * [list][google.longrunning.Operations.ListOperations] the operations that + * are running on the original Index. Only the successfully completed + * Operations with + * [update_time][google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] + * equal or before this sync time are contained in this DeployedIndex. + * @type \Google\Cloud\AIPlatform\V1\AutomaticResources $automatic_resources + * Optional. A description of resources that the DeployedIndex uses, which to + * large degree are decided by Vertex AI, and optionally allows only a modest + * additional configuration. + * If min_replica_count is not set, the default value is 2 (we don't provide + * SLA when min_replica_count=1). If max_replica_count is not set, the + * default value is min_replica_count. The max allowed replica count is + * 1000. + * @type \Google\Cloud\AIPlatform\V1\DedicatedResources $dedicated_resources + * Optional. A description of resources that are dedicated to the + * DeployedIndex, and that need a higher degree of manual configuration. The + * field min_replica_count must be set to a value strictly greater than 0, or + * else validation will fail. We don't provide SLA when min_replica_count=1. + * If max_replica_count is not set, the default value is min_replica_count. + * The max allowed replica count is 1000. + * Available machine types for SMALL shard: + * e2-standard-2 and all machine types available for MEDIUM and LARGE shard. + * Available machine types for MEDIUM shard: + * e2-standard-16 and all machine types available for LARGE shard. + * Available machine types for LARGE shard: + * e2-highmem-16, n2d-standard-32. + * n1-standard-16 and n1-standard-32 are still available, but we recommend + * e2-standard-16 and e2-highmem-16 for cost efficiency. + * @type bool $enable_access_logging + * Optional. If true, private endpoint's access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each MatchRequest. + * Note that logs may incur a cost, especially if the deployed + * index receives a high queries per second rate (QPS). + * Estimate your costs before enabling this option. + * @type \Google\Cloud\AIPlatform\V1\DeployedIndexAuthConfig $deployed_index_auth_config + * Optional. If set, the authentication is enabled for the private endpoint. + * @type array|\Google\Protobuf\Internal\RepeatedField $reserved_ip_ranges + * Optional. A list of reserved ip ranges under the VPC network that can be + * used for this DeployedIndex. + * If set, we will deploy the index within the provided ip ranges. Otherwise, + * the index might be deployed to any ip ranges under the provided VPC + * network. + * The value should be the name of the address + * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) + * Example: ['vertex-ai-ip-range']. + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. + * @type string $deployment_group + * Optional. The deployment group can be no longer than 64 characters (eg: + * 'test', 'prod'). If not set, we will use the 'default' deployment group. + * Creating `deployment_groups` with `reserved_ip_ranges` is a recommended + * practice when the peered network has multiple peering ranges. This creates + * your deployments from predictable IP spaces for easier traffic + * administration. Also, one deployment_group (except 'default') can only be + * used with the same reserved_ip_ranges which means if the deployment_group + * has been used with reserved_ip_ranges: [a, b, c], using it with [a, b] or + * [d, e] is disallowed. + * Note: we only support up to 5 deployment groups(not including 'default'). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpoint::initOnce(); + parent::__construct($data); + } + + /** + * Required. The user specified ID of the DeployedIndex. + * The ID can be up to 128 characters long and must start with a letter and + * only contain letters, numbers, and underscores. + * The ID must be unique within the project it is created in. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. The user specified ID of the DeployedIndex. + * The ID can be up to 128 characters long and must start with a letter and + * only contain letters, numbers, and underscores. + * The ID must be unique within the project it is created in. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Required. The name of the Index this is the deployment of. + * We may refer to this Index as the DeployedIndex's "original" Index. + * + * Generated from protobuf field string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getIndex() + { + return $this->index; + } + + /** + * Required. The name of the Index this is the deployment of. + * We may refer to this Index as the DeployedIndex's "original" Index. + * + * Generated from protobuf field string index = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setIndex($var) + { + GPBUtil::checkString($var, True); + $this->index = $var; + + return $this; + } + + /** + * The display name of the DeployedIndex. If not provided upon creation, + * the Index's display_name is used. + * + * Generated from protobuf field string display_name = 3; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The display name of the DeployedIndex. If not provided upon creation, + * the Index's display_name is used. + * + * Generated from protobuf field string display_name = 3; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Timestamp when the DeployedIndex was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when the DeployedIndex was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Provides paths for users to send requests directly to the + * deployed index services running on Cloud via private services access. This + * field is populated if + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] is configured. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\AIPlatform\V1\IndexPrivateEndpoints|null + */ + public function getPrivateEndpoints() + { + return $this->private_endpoints; + } + + public function hasPrivateEndpoints() + { + return isset($this->private_endpoints); + } + + public function clearPrivateEndpoints() + { + unset($this->private_endpoints); + } + + /** + * Output only. Provides paths for users to send requests directly to the + * deployed index services running on Cloud via private services access. This + * field is populated if + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] is configured. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexPrivateEndpoints private_endpoints = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\AIPlatform\V1\IndexPrivateEndpoints $var + * @return $this + */ + public function setPrivateEndpoints($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\IndexPrivateEndpoints::class); + $this->private_endpoints = $var; + + return $this; + } + + /** + * Output only. The DeployedIndex may depend on various data on its original + * Index. Additionally when certain changes to the original Index are being + * done (e.g. when what the Index contains is being changed) the DeployedIndex + * may be asynchronously updated in the background to reflect these changes. + * If this timestamp's value is at least the + * [Index.update_time][google.cloud.aiplatform.v1.Index.update_time] of the + * original Index, it means that this DeployedIndex and the original Index are + * in sync. If this timestamp is older, then to see which updates this + * DeployedIndex already contains (and which it does not), one must + * [list][google.longrunning.Operations.ListOperations] the operations that + * are running on the original Index. Only the successfully completed + * Operations with + * [update_time][google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] + * equal or before this sync time are contained in this DeployedIndex. + * + * Generated from protobuf field .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getIndexSyncTime() + { + return $this->index_sync_time; + } + + public function hasIndexSyncTime() + { + return isset($this->index_sync_time); + } + + public function clearIndexSyncTime() + { + unset($this->index_sync_time); + } + + /** + * Output only. The DeployedIndex may depend on various data on its original + * Index. Additionally when certain changes to the original Index are being + * done (e.g. when what the Index contains is being changed) the DeployedIndex + * may be asynchronously updated in the background to reflect these changes. + * If this timestamp's value is at least the + * [Index.update_time][google.cloud.aiplatform.v1.Index.update_time] of the + * original Index, it means that this DeployedIndex and the original Index are + * in sync. If this timestamp is older, then to see which updates this + * DeployedIndex already contains (and which it does not), one must + * [list][google.longrunning.Operations.ListOperations] the operations that + * are running on the original Index. Only the successfully completed + * Operations with + * [update_time][google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] + * equal or before this sync time are contained in this DeployedIndex. + * + * Generated from protobuf field .google.protobuf.Timestamp index_sync_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setIndexSyncTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->index_sync_time = $var; + + return $this; + } + + /** + * Optional. A description of resources that the DeployedIndex uses, which to + * large degree are decided by Vertex AI, and optionally allows only a modest + * additional configuration. + * If min_replica_count is not set, the default value is 2 (we don't provide + * SLA when min_replica_count=1). If max_replica_count is not set, the + * default value is min_replica_count. The max allowed replica count is + * 1000. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\AutomaticResources|null + */ + public function getAutomaticResources() + { + return $this->automatic_resources; + } + + public function hasAutomaticResources() + { + return isset($this->automatic_resources); + } + + public function clearAutomaticResources() + { + unset($this->automatic_resources); + } + + /** + * Optional. A description of resources that the DeployedIndex uses, which to + * large degree are decided by Vertex AI, and optionally allows only a modest + * additional configuration. + * If min_replica_count is not set, the default value is 2 (we don't provide + * SLA when min_replica_count=1). If max_replica_count is not set, the + * default value is min_replica_count. The max allowed replica count is + * 1000. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\AutomaticResources $var + * @return $this + */ + public function setAutomaticResources($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\AutomaticResources::class); + $this->automatic_resources = $var; + + return $this; + } + + /** + * Optional. A description of resources that are dedicated to the + * DeployedIndex, and that need a higher degree of manual configuration. The + * field min_replica_count must be set to a value strictly greater than 0, or + * else validation will fail. We don't provide SLA when min_replica_count=1. + * If max_replica_count is not set, the default value is min_replica_count. + * The max allowed replica count is 1000. + * Available machine types for SMALL shard: + * e2-standard-2 and all machine types available for MEDIUM and LARGE shard. + * Available machine types for MEDIUM shard: + * e2-standard-16 and all machine types available for LARGE shard. + * Available machine types for LARGE shard: + * e2-highmem-16, n2d-standard-32. + * n1-standard-16 and n1-standard-32 are still available, but we recommend + * e2-standard-16 and e2-highmem-16 for cost efficiency. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\DedicatedResources|null + */ + public function getDedicatedResources() + { + return $this->dedicated_resources; + } + + public function hasDedicatedResources() + { + return isset($this->dedicated_resources); + } + + public function clearDedicatedResources() + { + unset($this->dedicated_resources); + } + + /** + * Optional. A description of resources that are dedicated to the + * DeployedIndex, and that need a higher degree of manual configuration. The + * field min_replica_count must be set to a value strictly greater than 0, or + * else validation will fail. We don't provide SLA when min_replica_count=1. + * If max_replica_count is not set, the default value is min_replica_count. + * The max allowed replica count is 1000. + * Available machine types for SMALL shard: + * e2-standard-2 and all machine types available for MEDIUM and LARGE shard. + * Available machine types for MEDIUM shard: + * e2-standard-16 and all machine types available for LARGE shard. + * Available machine types for LARGE shard: + * e2-highmem-16, n2d-standard-32. + * n1-standard-16 and n1-standard-32 are still available, but we recommend + * e2-standard-16 and e2-highmem-16 for cost efficiency. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\DedicatedResources $var + * @return $this + */ + public function setDedicatedResources($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DedicatedResources::class); + $this->dedicated_resources = $var; + + return $this; + } + + /** + * Optional. If true, private endpoint's access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each MatchRequest. + * Note that logs may incur a cost, especially if the deployed + * index receives a high queries per second rate (QPS). + * Estimate your costs before enabling this option. + * + * Generated from protobuf field bool enable_access_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableAccessLogging() + { + return $this->enable_access_logging; + } + + /** + * Optional. If true, private endpoint's access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each MatchRequest. + * Note that logs may incur a cost, especially if the deployed + * index receives a high queries per second rate (QPS). + * Estimate your costs before enabling this option. + * + * Generated from protobuf field bool enable_access_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableAccessLogging($var) + { + GPBUtil::checkBool($var); + $this->enable_access_logging = $var; + + return $this; + } + + /** + * Optional. If set, the authentication is enabled for the private endpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\DeployedIndexAuthConfig|null + */ + public function getDeployedIndexAuthConfig() + { + return $this->deployed_index_auth_config; + } + + public function hasDeployedIndexAuthConfig() + { + return isset($this->deployed_index_auth_config); + } + + public function clearDeployedIndexAuthConfig() + { + unset($this->deployed_index_auth_config); + } + + /** + * Optional. If set, the authentication is enabled for the private endpoint. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndexAuthConfig deployed_index_auth_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\DeployedIndexAuthConfig $var + * @return $this + */ + public function setDeployedIndexAuthConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeployedIndexAuthConfig::class); + $this->deployed_index_auth_config = $var; + + return $this; + } + + /** + * Optional. A list of reserved ip ranges under the VPC network that can be + * used for this DeployedIndex. + * If set, we will deploy the index within the provided ip ranges. Otherwise, + * the index might be deployed to any ip ranges under the provided VPC + * network. + * The value should be the name of the address + * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) + * Example: ['vertex-ai-ip-range']. + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. + * + * Generated from protobuf field repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getReservedIpRanges() + { + return $this->reserved_ip_ranges; + } + + /** + * Optional. A list of reserved ip ranges under the VPC network that can be + * used for this DeployedIndex. + * If set, we will deploy the index within the provided ip ranges. Otherwise, + * the index might be deployed to any ip ranges under the provided VPC + * network. + * The value should be the name of the address + * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) + * Example: ['vertex-ai-ip-range']. + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. + * + * Generated from protobuf field repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setReservedIpRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->reserved_ip_ranges = $arr; + + return $this; + } + + /** + * Optional. The deployment group can be no longer than 64 characters (eg: + * 'test', 'prod'). If not set, we will use the 'default' deployment group. + * Creating `deployment_groups` with `reserved_ip_ranges` is a recommended + * practice when the peered network has multiple peering ranges. This creates + * your deployments from predictable IP spaces for easier traffic + * administration. Also, one deployment_group (except 'default') can only be + * used with the same reserved_ip_ranges which means if the deployment_group + * has been used with reserved_ip_ranges: [a, b, c], using it with [a, b] or + * [d, e] is disallowed. + * Note: we only support up to 5 deployment groups(not including 'default'). + * + * Generated from protobuf field string deployment_group = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDeploymentGroup() + { + return $this->deployment_group; + } + + /** + * Optional. The deployment group can be no longer than 64 characters (eg: + * 'test', 'prod'). If not set, we will use the 'default' deployment group. + * Creating `deployment_groups` with `reserved_ip_ranges` is a recommended + * practice when the peered network has multiple peering ranges. This creates + * your deployments from predictable IP spaces for easier traffic + * administration. Also, one deployment_group (except 'default') can only be + * used with the same reserved_ip_ranges which means if the deployment_group + * has been used with reserved_ip_ranges: [a, b, c], using it with [a, b] or + * [d, e] is disallowed. + * Note: we only support up to 5 deployment groups(not including 'default'). + * + * Generated from protobuf field string deployment_group = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDeploymentGroup($var) + { + GPBUtil::checkString($var, True); + $this->deployment_group = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndexAuthConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndexAuthConfig.php new file mode 100644 index 000000000000..fb9017e62156 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndexAuthConfig.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.DeployedIndexAuthConfig + */ +class DeployedIndexAuthConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Defines the authentication provider that the DeployedIndex uses. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + */ + protected $auth_provider = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\DeployedIndexAuthConfig\AuthProvider $auth_provider + * Defines the authentication provider that the DeployedIndex uses. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpoint::initOnce(); + parent::__construct($data); + } + + /** + * Defines the authentication provider that the DeployedIndex uses. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * @return \Google\Cloud\AIPlatform\V1\DeployedIndexAuthConfig\AuthProvider|null + */ + public function getAuthProvider() + { + return $this->auth_provider; + } + + public function hasAuthProvider() + { + return isset($this->auth_provider); + } + + public function clearAuthProvider() + { + unset($this->auth_provider); + } + + /** + * Defines the authentication provider that the DeployedIndex uses. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider auth_provider = 1; + * @param \Google\Cloud\AIPlatform\V1\DeployedIndexAuthConfig\AuthProvider $var + * @return $this + */ + public function setAuthProvider($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeployedIndexAuthConfig\AuthProvider::class); + $this->auth_provider = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndexAuthConfig/AuthProvider.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndexAuthConfig/AuthProvider.php new file mode 100644 index 000000000000..4397246103e2 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndexAuthConfig/AuthProvider.php @@ -0,0 +1,126 @@ +google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + */ +class AuthProvider extends \Google\Protobuf\Internal\Message +{ + /** + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. + * + * Generated from protobuf field repeated string audiences = 1; + */ + private $audiences; + /** + * A list of allowed JWT issuers. Each entry must be a valid Google + * service account, in the following format: + * `service-account-name@project-id.iam.gserviceaccount.com` + * + * Generated from protobuf field repeated string allowed_issuers = 2; + */ + private $allowed_issuers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $audiences + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. + * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_issuers + * A list of allowed JWT issuers. Each entry must be a valid Google + * service account, in the following format: + * `service-account-name@project-id.iam.gserviceaccount.com` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpoint::initOnce(); + parent::__construct($data); + } + + /** + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. + * + * Generated from protobuf field repeated string audiences = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAudiences() + { + return $this->audiences; + } + + /** + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. + * + * Generated from protobuf field repeated string audiences = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAudiences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->audiences = $arr; + + return $this; + } + + /** + * A list of allowed JWT issuers. Each entry must be a valid Google + * service account, in the following format: + * `service-account-name@project-id.iam.gserviceaccount.com` + * + * Generated from protobuf field repeated string allowed_issuers = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAllowedIssuers() + { + return $this->allowed_issuers; + } + + /** + * A list of allowed JWT issuers. Each entry must be a valid Google + * service account, in the following format: + * `service-account-name@project-id.iam.gserviceaccount.com` + * + * Generated from protobuf field repeated string allowed_issuers = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAllowedIssuers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->allowed_issuers = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AuthProvider::class, \Google\Cloud\AIPlatform\V1\DeployedIndexAuthConfig_AuthProvider::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndexRef.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndexRef.php new file mode 100644 index 000000000000..30d01caf0d51 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedIndexRef.php @@ -0,0 +1,101 @@ +google.cloud.aiplatform.v1.DeployedIndexRef + */ +class DeployedIndexRef extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. A resource name of the IndexEndpoint. + * + * Generated from protobuf field string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $index_endpoint = ''; + /** + * Immutable. The ID of the DeployedIndex in the above IndexEndpoint. + * + * Generated from protobuf field string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $deployed_index_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $index_endpoint + * Immutable. A resource name of the IndexEndpoint. + * @type string $deployed_index_id + * Immutable. The ID of the DeployedIndex in the above IndexEndpoint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DeployedIndexRef::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. A resource name of the IndexEndpoint. + * + * Generated from protobuf field string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getIndexEndpoint() + { + return $this->index_endpoint; + } + + /** + * Immutable. A resource name of the IndexEndpoint. + * + * Generated from protobuf field string index_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setIndexEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->index_endpoint = $var; + + return $this; + } + + /** + * Immutable. The ID of the DeployedIndex in the above IndexEndpoint. + * + * Generated from protobuf field string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getDeployedIndexId() + { + return $this->deployed_index_id; + } + + /** + * Immutable. The ID of the DeployedIndex in the above IndexEndpoint. + * + * Generated from protobuf field string deployed_index_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setDeployedIndexId($var) + { + GPBUtil::checkString($var, True); + $this->deployed_index_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedModel.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedModel.php new file mode 100644 index 000000000000..0a9196eb0e26 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedModel.php @@ -0,0 +1,664 @@ +google.cloud.aiplatform.v1.DeployedModel + */ +class DeployedModel extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $id = ''; + /** + * Required. The resource name of the Model that this is the deployment of. + * Note that the Model may be in a different location than the DeployedModel's + * Endpoint. + * The resource name may contain version id or version alias to specify the + * version. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * if no version is specified, the default version will be deployed. + * + * Generated from protobuf field string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $model = ''; + /** + * Output only. The version ID of the model that is deployed. + * + * Generated from protobuf field string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $model_version_id = ''; + /** + * The display name of the DeployedModel. If not provided upon creation, + * the Model's display_name is used. + * + * Generated from protobuf field string display_name = 3; + */ + protected $display_name = ''; + /** + * Output only. Timestamp when the DeployedModel was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Explanation configuration for this DeployedModel. + * When deploying a Model using + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], + * this value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * are optional in the request. If a field of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * is not populated, the value of the same field of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * will be used for the explanation configuration. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9; + */ + protected $explanation_spec = null; + /** + * The service account that the DeployedModel's container runs as. Specify the + * email address of the service account. If this service account is not + * specified, the container runs as a service account that doesn't have access + * to the resource project. + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * + * Generated from protobuf field string service_account = 11; + */ + protected $service_account = ''; + /** + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * User can disable container logging by setting this flag to true. + * + * Generated from protobuf field bool disable_container_logging = 15; + */ + protected $disable_container_logging = false; + /** + * If true, online prediction access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each prediction request. + * Note that logs may incur a cost, especially if your project + * receives prediction requests at a high queries per second rate (QPS). + * Estimate your costs before enabling this option. + * + * Generated from protobuf field bool enable_access_logging = 13; + */ + protected $enable_access_logging = false; + /** + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_endpoints = null; + protected $prediction_resources; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\DedicatedResources $dedicated_resources + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + * @type \Google\Cloud\AIPlatform\V1\AutomaticResources $automatic_resources + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + * @type string $id + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + * @type string $model + * Required. The resource name of the Model that this is the deployment of. + * Note that the Model may be in a different location than the DeployedModel's + * Endpoint. + * The resource name may contain version id or version alias to specify the + * version. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * if no version is specified, the default version will be deployed. + * @type string $model_version_id + * Output only. The version ID of the model that is deployed. + * @type string $display_name + * The display name of the DeployedModel. If not provided upon creation, + * the Model's display_name is used. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when the DeployedModel was created. + * @type \Google\Cloud\AIPlatform\V1\ExplanationSpec $explanation_spec + * Explanation configuration for this DeployedModel. + * When deploying a Model using + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], + * this value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * are optional in the request. If a field of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * is not populated, the value of the same field of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * will be used for the explanation configuration. + * @type string $service_account + * The service account that the DeployedModel's container runs as. Specify the + * email address of the service account. If this service account is not + * specified, the container runs as a service account that doesn't have access + * to the resource project. + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * @type bool $disable_container_logging + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * User can disable container logging by setting this flag to true. + * @type bool $enable_access_logging + * If true, online prediction access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each prediction request. + * Note that logs may incur a cost, especially if your project + * receives prediction requests at a high queries per second rate (QPS). + * Estimate your costs before enabling this option. + * @type \Google\Cloud\AIPlatform\V1\PrivateEndpoints $private_endpoints + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Endpoint::initOnce(); + parent::__construct($data); + } + + /** + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7; + * @return \Google\Cloud\AIPlatform\V1\DedicatedResources|null + */ + public function getDedicatedResources() + { + return $this->readOneof(7); + } + + public function hasDedicatedResources() + { + return $this->hasOneof(7); + } + + /** + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7; + * @param \Google\Cloud\AIPlatform\V1\DedicatedResources $var + * @return $this + */ + public function setDedicatedResources($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DedicatedResources::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8; + * @return \Google\Cloud\AIPlatform\V1\AutomaticResources|null + */ + public function getAutomaticResources() + { + return $this->readOneof(8); + } + + public function hasAutomaticResources() + { + return $this->hasOneof(8); + } + + /** + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8; + * @param \Google\Cloud\AIPlatform\V1\AutomaticResources $var + * @return $this + */ + public function setAutomaticResources($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\AutomaticResources::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Required. The resource name of the Model that this is the deployment of. + * Note that the Model may be in a different location than the DeployedModel's + * Endpoint. + * The resource name may contain version id or version alias to specify the + * version. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * if no version is specified, the default version will be deployed. + * + * Generated from protobuf field string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getModel() + { + return $this->model; + } + + /** + * Required. The resource name of the Model that this is the deployment of. + * Note that the Model may be in a different location than the DeployedModel's + * Endpoint. + * The resource name may contain version id or version alias to specify the + * version. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * if no version is specified, the default version will be deployed. + * + * Generated from protobuf field string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setModel($var) + { + GPBUtil::checkString($var, True); + $this->model = $var; + + return $this; + } + + /** + * Output only. The version ID of the model that is deployed. + * + * Generated from protobuf field string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getModelVersionId() + { + return $this->model_version_id; + } + + /** + * Output only. The version ID of the model that is deployed. + * + * Generated from protobuf field string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setModelVersionId($var) + { + GPBUtil::checkString($var, True); + $this->model_version_id = $var; + + return $this; + } + + /** + * The display name of the DeployedModel. If not provided upon creation, + * the Model's display_name is used. + * + * Generated from protobuf field string display_name = 3; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The display name of the DeployedModel. If not provided upon creation, + * the Model's display_name is used. + * + * Generated from protobuf field string display_name = 3; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Timestamp when the DeployedModel was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when the DeployedModel was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Explanation configuration for this DeployedModel. + * When deploying a Model using + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], + * this value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * are optional in the request. If a field of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * is not populated, the value of the same field of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * will be used for the explanation configuration. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9; + * @return \Google\Cloud\AIPlatform\V1\ExplanationSpec|null + */ + public function getExplanationSpec() + { + return $this->explanation_spec; + } + + public function hasExplanationSpec() + { + return isset($this->explanation_spec); + } + + public function clearExplanationSpec() + { + unset($this->explanation_spec); + } + + /** + * Explanation configuration for this DeployedModel. + * When deploying a Model using + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], + * this value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * are optional in the request. If a field of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * is not populated, the value of the same field of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * will be used for the explanation configuration. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9; + * @param \Google\Cloud\AIPlatform\V1\ExplanationSpec $var + * @return $this + */ + public function setExplanationSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExplanationSpec::class); + $this->explanation_spec = $var; + + return $this; + } + + /** + * The service account that the DeployedModel's container runs as. Specify the + * email address of the service account. If this service account is not + * specified, the container runs as a service account that doesn't have access + * to the resource project. + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * + * Generated from protobuf field string service_account = 11; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * The service account that the DeployedModel's container runs as. Specify the + * email address of the service account. If this service account is not + * specified, the container runs as a service account that doesn't have access + * to the resource project. + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. + * + * Generated from protobuf field string service_account = 11; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * User can disable container logging by setting this flag to true. + * + * Generated from protobuf field bool disable_container_logging = 15; + * @return bool + */ + public function getDisableContainerLogging() + { + return $this->disable_container_logging; + } + + /** + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * User can disable container logging by setting this flag to true. + * + * Generated from protobuf field bool disable_container_logging = 15; + * @param bool $var + * @return $this + */ + public function setDisableContainerLogging($var) + { + GPBUtil::checkBool($var); + $this->disable_container_logging = $var; + + return $this; + } + + /** + * If true, online prediction access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each prediction request. + * Note that logs may incur a cost, especially if your project + * receives prediction requests at a high queries per second rate (QPS). + * Estimate your costs before enabling this option. + * + * Generated from protobuf field bool enable_access_logging = 13; + * @return bool + */ + public function getEnableAccessLogging() + { + return $this->enable_access_logging; + } + + /** + * If true, online prediction access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each prediction request. + * Note that logs may incur a cost, especially if your project + * receives prediction requests at a high queries per second rate (QPS). + * Estimate your costs before enabling this option. + * + * Generated from protobuf field bool enable_access_logging = 13; + * @param bool $var + * @return $this + */ + public function setEnableAccessLogging($var) + { + GPBUtil::checkBool($var); + $this->enable_access_logging = $var; + + return $this; + } + + /** + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\AIPlatform\V1\PrivateEndpoints|null + */ + public function getPrivateEndpoints() + { + return $this->private_endpoints; + } + + public function hasPrivateEndpoints() + { + return isset($this->private_endpoints); + } + + public function clearPrivateEndpoints() + { + unset($this->private_endpoints); + } + + /** + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\AIPlatform\V1\PrivateEndpoints $var + * @return $this + */ + public function setPrivateEndpoints($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\PrivateEndpoints::class); + $this->private_endpoints = $var; + + return $this; + } + + /** + * @return string + */ + public function getPredictionResources() + { + return $this->whichOneof("prediction_resources"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedModelRef.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedModelRef.php new file mode 100644 index 000000000000..1f270de80921 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DeployedModelRef.php @@ -0,0 +1,101 @@ +google.cloud.aiplatform.v1.DeployedModelRef + */ +class DeployedModelRef extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. A resource name of an Endpoint. + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $endpoint = ''; + /** + * Immutable. An ID of a DeployedModel in the above Endpoint. + * + * Generated from protobuf field string deployed_model_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $deployed_model_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $endpoint + * Immutable. A resource name of an Endpoint. + * @type string $deployed_model_id + * Immutable. An ID of a DeployedModel in the above Endpoint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DeployedModelRef::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. A resource name of an Endpoint. + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * Immutable. A resource name of an Endpoint. + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * Immutable. An ID of a DeployedModel in the above Endpoint. + * + * Generated from protobuf field string deployed_model_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getDeployedModelId() + { + return $this->deployed_model_id; + } + + /** + * Immutable. An ID of a DeployedModel in the above Endpoint. + * + * Generated from protobuf field string deployed_model_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setDeployedModelId($var) + { + GPBUtil::checkString($var, True); + $this->deployed_model_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DestinationFeatureSetting.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DestinationFeatureSetting.php new file mode 100644 index 000000000000..4339ccffe57e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DestinationFeatureSetting.php @@ -0,0 +1,103 @@ +google.cloud.aiplatform.v1.DestinationFeatureSetting + */ +class DestinationFeatureSetting extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID of the Feature to apply the setting to. + * + * Generated from protobuf field string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_id = ''; + /** + * Specify the field name in the export destination. If not specified, + * Feature ID is used. + * + * Generated from protobuf field string destination_field = 2; + */ + protected $destination_field = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $feature_id + * Required. The ID of the Feature to apply the setting to. + * @type string $destination_field + * Specify the field name in the export destination. If not specified, + * Feature ID is used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ID of the Feature to apply the setting to. + * + * Generated from protobuf field string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFeatureId() + { + return $this->feature_id; + } + + /** + * Required. The ID of the Feature to apply the setting to. + * + * Generated from protobuf field string feature_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFeatureId($var) + { + GPBUtil::checkString($var, True); + $this->feature_id = $var; + + return $this; + } + + /** + * Specify the field name in the export destination. If not specified, + * Feature ID is used. + * + * Generated from protobuf field string destination_field = 2; + * @return string + */ + public function getDestinationField() + { + return $this->destination_field; + } + + /** + * Specify the field name in the export destination. If not specified, + * Feature ID is used. + * + * Generated from protobuf field string destination_field = 2; + * @param string $var + * @return $this + */ + public function setDestinationField($var) + { + GPBUtil::checkString($var, True); + $this->destination_field = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DiskSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DiskSpec.php new file mode 100644 index 000000000000..8d4b509db5ee --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DiskSpec.php @@ -0,0 +1,109 @@ +google.cloud.aiplatform.v1.DiskSpec + */ +class DiskSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the boot disk (default is "pd-ssd"). + * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or + * "pd-standard" (Persistent Disk Hard Disk Drive). + * + * Generated from protobuf field string boot_disk_type = 1; + */ + protected $boot_disk_type = ''; + /** + * Size in GB of the boot disk (default is 100GB). + * + * Generated from protobuf field int32 boot_disk_size_gb = 2; + */ + protected $boot_disk_size_gb = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $boot_disk_type + * Type of the boot disk (default is "pd-ssd"). + * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or + * "pd-standard" (Persistent Disk Hard Disk Drive). + * @type int $boot_disk_size_gb + * Size in GB of the boot disk (default is 100GB). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MachineResources::initOnce(); + parent::__construct($data); + } + + /** + * Type of the boot disk (default is "pd-ssd"). + * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or + * "pd-standard" (Persistent Disk Hard Disk Drive). + * + * Generated from protobuf field string boot_disk_type = 1; + * @return string + */ + public function getBootDiskType() + { + return $this->boot_disk_type; + } + + /** + * Type of the boot disk (default is "pd-ssd"). + * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or + * "pd-standard" (Persistent Disk Hard Disk Drive). + * + * Generated from protobuf field string boot_disk_type = 1; + * @param string $var + * @return $this + */ + public function setBootDiskType($var) + { + GPBUtil::checkString($var, True); + $this->boot_disk_type = $var; + + return $this; + } + + /** + * Size in GB of the boot disk (default is 100GB). + * + * Generated from protobuf field int32 boot_disk_size_gb = 2; + * @return int + */ + public function getBootDiskSizeGb() + { + return $this->boot_disk_size_gb; + } + + /** + * Size in GB of the boot disk (default is 100GB). + * + * Generated from protobuf field int32 boot_disk_size_gb = 2; + * @param int $var + * @return $this + */ + public function setBootDiskSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->boot_disk_size_gb = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DoubleArray.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DoubleArray.php new file mode 100644 index 000000000000..d1fb464ed9aa --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/DoubleArray.php @@ -0,0 +1,67 @@ +google.cloud.aiplatform.v1.DoubleArray + */ +class DoubleArray extends \Google\Protobuf\Internal\Message +{ + /** + * A list of double values. + * + * Generated from protobuf field repeated double values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * A list of double values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Types::initOnce(); + parent::__construct($data); + } + + /** + * A list of double values. + * + * Generated from protobuf field repeated double values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * A list of double values. + * + * Generated from protobuf field repeated double values = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EncryptionSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EncryptionSpec.php new file mode 100644 index 000000000000..61554ec16fe9 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EncryptionSpec.php @@ -0,0 +1,84 @@ +google.cloud.aiplatform.v1.EncryptionSpec + */ +class EncryptionSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Cloud KMS resource identifier of the customer managed + * encryption key used to protect a resource. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * The key needs to be in the same region as where the compute resource is + * created. + * + * Generated from protobuf field string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $kms_key_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kms_key_name + * Required. The Cloud KMS resource identifier of the customer managed + * encryption key used to protect a resource. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * The key needs to be in the same region as where the compute resource is + * created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EncryptionSpec::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Cloud KMS resource identifier of the customer managed + * encryption key used to protect a resource. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * The key needs to be in the same region as where the compute resource is + * created. + * + * Generated from protobuf field string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKmsKeyName() + { + return $this->kms_key_name; + } + + /** + * Required. The Cloud KMS resource identifier of the customer managed + * encryption key used to protect a resource. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * The key needs to be in the same region as where the compute resource is + * created. + * + * Generated from protobuf field string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKmsKeyName($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Endpoint.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Endpoint.php new file mode 100644 index 000000000000..344b910c57ef --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Endpoint.php @@ -0,0 +1,711 @@ +google.cloud.aiplatform.v1.Endpoint + */ +class Endpoint extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the Endpoint. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The display name of the Endpoint. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * The description of the Endpoint. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Output only. The models deployed in this Endpoint. + * To add or remove DeployedModels use + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel] + * and + * [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel] + * respectively. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DeployedModel deployed_models = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $deployed_models; + /** + * A map from a DeployedModel's ID to the percentage of this Endpoint's + * traffic that should be forwarded to that DeployedModel. + * If a DeployedModel's ID is not listed in this map, then it receives no + * traffic. + * The traffic percentage values must add up to 100, or map must be empty if + * the Endpoint is to not accept any traffic at a moment. + * + * Generated from protobuf field map traffic_split = 5; + */ + private $traffic_split; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 6; + */ + protected $etag = ''; + /** + * The labels with user-defined metadata to organize your Endpoints. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 7; + */ + private $labels; + /** + * Output only. Timestamp when this Endpoint was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this Endpoint was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Customer-managed encryption key spec for an Endpoint. If set, this + * Endpoint and all sub-resources of this Endpoint will be secured by + * this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 10; + */ + protected $encryption_spec = null; + /** + * Optional. The full name of the Google Compute Engine + * [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks) + * to which the Endpoint should be peered. + * Private services access must already be configured for the network. If left + * unspecified, the Endpoint is not peered with any network. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.Endpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], + * can be set. + * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + * `projects/{project}/global/networks/{network}`. + * Where `{project}` is a project number, as in `12345`, and `{network}` is + * network name. + * + * Generated from protobuf field string network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $network = ''; + /** + * Deprecated: If true, expose the Endpoint via private service connect. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.Endpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], + * can be set. + * + * Generated from protobuf field bool enable_private_service_connect = 17 [deprecated = true]; + * @deprecated + */ + protected $enable_private_service_connect = false; + /** + * Output only. Resource name of the Model Monitoring job associated with this + * Endpoint if monitoring is enabled by + * [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob]. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * + * Generated from protobuf field string model_deployment_monitoring_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $model_deployment_monitoring_job = ''; + /** + * Configures the request-response logging for online prediction. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + */ + protected $predict_request_response_logging_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the Endpoint. + * @type string $display_name + * Required. The display name of the Endpoint. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * @type string $description + * The description of the Endpoint. + * @type array<\Google\Cloud\AIPlatform\V1\DeployedModel>|\Google\Protobuf\Internal\RepeatedField $deployed_models + * Output only. The models deployed in this Endpoint. + * To add or remove DeployedModels use + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel] + * and + * [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel] + * respectively. + * @type array|\Google\Protobuf\Internal\MapField $traffic_split + * A map from a DeployedModel's ID to the percentage of this Endpoint's + * traffic that should be forwarded to that DeployedModel. + * If a DeployedModel's ID is not listed in this map, then it receives no + * traffic. + * The traffic percentage values must add up to 100, or map must be empty if + * the Endpoint is to not accept any traffic at a moment. + * @type string $etag + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize your Endpoints. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this Endpoint was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this Endpoint was last updated. + * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec + * Customer-managed encryption key spec for an Endpoint. If set, this + * Endpoint and all sub-resources of this Endpoint will be secured by + * this key. + * @type string $network + * Optional. The full name of the Google Compute Engine + * [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks) + * to which the Endpoint should be peered. + * Private services access must already be configured for the network. If left + * unspecified, the Endpoint is not peered with any network. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.Endpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], + * can be set. + * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + * `projects/{project}/global/networks/{network}`. + * Where `{project}` is a project number, as in `12345`, and `{network}` is + * network name. + * @type bool $enable_private_service_connect + * Deprecated: If true, expose the Endpoint via private service connect. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.Endpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], + * can be set. + * @type string $model_deployment_monitoring_job + * Output only. Resource name of the Model Monitoring job associated with this + * Endpoint if monitoring is enabled by + * [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob]. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @type \Google\Cloud\AIPlatform\V1\PredictRequestResponseLoggingConfig $predict_request_response_logging_config + * Configures the request-response logging for online prediction. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Endpoint::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the Endpoint. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of the Endpoint. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the Endpoint. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of the Endpoint. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The description of the Endpoint. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the Endpoint. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. The models deployed in this Endpoint. + * To add or remove DeployedModels use + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel] + * and + * [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel] + * respectively. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DeployedModel deployed_models = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeployedModels() + { + return $this->deployed_models; + } + + /** + * Output only. The models deployed in this Endpoint. + * To add or remove DeployedModels use + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel] + * and + * [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel] + * respectively. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DeployedModel deployed_models = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\AIPlatform\V1\DeployedModel>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeployedModels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\DeployedModel::class); + $this->deployed_models = $arr; + + return $this; + } + + /** + * A map from a DeployedModel's ID to the percentage of this Endpoint's + * traffic that should be forwarded to that DeployedModel. + * If a DeployedModel's ID is not listed in this map, then it receives no + * traffic. + * The traffic percentage values must add up to 100, or map must be empty if + * the Endpoint is to not accept any traffic at a moment. + * + * Generated from protobuf field map traffic_split = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTrafficSplit() + { + return $this->traffic_split; + } + + /** + * A map from a DeployedModel's ID to the percentage of this Endpoint's + * traffic that should be forwarded to that DeployedModel. + * If a DeployedModel's ID is not listed in this map, then it receives no + * traffic. + * The traffic percentage values must add up to 100, or map must be empty if + * the Endpoint is to not accept any traffic at a moment. + * + * Generated from protobuf field map traffic_split = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTrafficSplit($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); + $this->traffic_split = $arr; + + return $this; + } + + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 6; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 6; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize your Endpoints. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 7; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize your Endpoints. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 7; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Timestamp when this Endpoint was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this Endpoint was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Endpoint was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this Endpoint was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Customer-managed encryption key spec for an Endpoint. If set, this + * Endpoint and all sub-resources of this Endpoint will be secured by + * this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 10; + * @return \Google\Cloud\AIPlatform\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Customer-managed encryption key spec for an Endpoint. If set, this + * Endpoint and all sub-resources of this Endpoint will be secured by + * this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 10; + * @param \Google\Cloud\AIPlatform\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + + /** + * Optional. The full name of the Google Compute Engine + * [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks) + * to which the Endpoint should be peered. + * Private services access must already be configured for the network. If left + * unspecified, the Endpoint is not peered with any network. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.Endpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], + * can be set. + * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + * `projects/{project}/global/networks/{network}`. + * Where `{project}` is a project number, as in `12345`, and `{network}` is + * network name. + * + * Generated from protobuf field string network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Optional. The full name of the Google Compute Engine + * [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks) + * to which the Endpoint should be peered. + * Private services access must already be configured for the network. If left + * unspecified, the Endpoint is not peered with any network. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.Endpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], + * can be set. + * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + * `projects/{project}/global/networks/{network}`. + * Where `{project}` is a project number, as in `12345`, and `{network}` is + * network name. + * + * Generated from protobuf field string network = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * Deprecated: If true, expose the Endpoint via private service connect. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.Endpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], + * can be set. + * + * Generated from protobuf field bool enable_private_service_connect = 17 [deprecated = true]; + * @return bool + * @deprecated + */ + public function getEnablePrivateServiceConnect() + { + @trigger_error('enable_private_service_connect is deprecated.', E_USER_DEPRECATED); + return $this->enable_private_service_connect; + } + + /** + * Deprecated: If true, expose the Endpoint via private service connect. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.Endpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], + * can be set. + * + * Generated from protobuf field bool enable_private_service_connect = 17 [deprecated = true]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setEnablePrivateServiceConnect($var) + { + @trigger_error('enable_private_service_connect is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->enable_private_service_connect = $var; + + return $this; + } + + /** + * Output only. Resource name of the Model Monitoring job associated with this + * Endpoint if monitoring is enabled by + * [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob]. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * + * Generated from protobuf field string model_deployment_monitoring_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getModelDeploymentMonitoringJob() + { + return $this->model_deployment_monitoring_job; + } + + /** + * Output only. Resource name of the Model Monitoring job associated with this + * Endpoint if monitoring is enabled by + * [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob]. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * + * Generated from protobuf field string model_deployment_monitoring_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setModelDeploymentMonitoringJob($var) + { + GPBUtil::checkString($var, True); + $this->model_deployment_monitoring_job = $var; + + return $this; + } + + /** + * Configures the request-response logging for online prediction. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * @return \Google\Cloud\AIPlatform\V1\PredictRequestResponseLoggingConfig|null + */ + public function getPredictRequestResponseLoggingConfig() + { + return $this->predict_request_response_logging_config; + } + + public function hasPredictRequestResponseLoggingConfig() + { + return isset($this->predict_request_response_logging_config); + } + + public function clearPredictRequestResponseLoggingConfig() + { + unset($this->predict_request_response_logging_config); + } + + /** + * Configures the request-response logging for online prediction. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig predict_request_response_logging_config = 18; + * @param \Google\Cloud\AIPlatform\V1\PredictRequestResponseLoggingConfig $var + * @return $this + */ + public function setPredictRequestResponseLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\PredictRequestResponseLoggingConfig::class); + $this->predict_request_response_logging_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EntityIdSelector.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EntityIdSelector.php new file mode 100644 index 000000000000..46e3c929417c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EntityIdSelector.php @@ -0,0 +1,113 @@ +google.cloud.aiplatform.v1.EntityIdSelector + */ +class EntityIdSelector extends \Google\Protobuf\Internal\Message +{ + /** + * Source column that holds entity IDs. If not provided, entity IDs are + * extracted from the column named entity_id. + * + * Generated from protobuf field string entity_id_field = 5; + */ + protected $entity_id_field = ''; + protected $EntityIdsSource; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\CsvSource $csv_source + * Source of Csv + * @type string $entity_id_field + * Source column that holds entity IDs. If not provided, entity IDs are + * extracted from the column named entity_id. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Source of Csv + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CsvSource csv_source = 3; + * @return \Google\Cloud\AIPlatform\V1\CsvSource|null + */ + public function getCsvSource() + { + return $this->readOneof(3); + } + + public function hasCsvSource() + { + return $this->hasOneof(3); + } + + /** + * Source of Csv + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CsvSource csv_source = 3; + * @param \Google\Cloud\AIPlatform\V1\CsvSource $var + * @return $this + */ + public function setCsvSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CsvSource::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Source column that holds entity IDs. If not provided, entity IDs are + * extracted from the column named entity_id. + * + * Generated from protobuf field string entity_id_field = 5; + * @return string + */ + public function getEntityIdField() + { + return $this->entity_id_field; + } + + /** + * Source column that holds entity IDs. If not provided, entity IDs are + * extracted from the column named entity_id. + * + * Generated from protobuf field string entity_id_field = 5; + * @param string $var + * @return $this + */ + public function setEntityIdField($var) + { + GPBUtil::checkString($var, True); + $this->entity_id_field = $var; + + return $this; + } + + /** + * @return string + */ + public function getEntityIdsSource() + { + return $this->whichOneof("EntityIdsSource"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EntityType.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EntityType.php new file mode 100644 index 000000000000..128f28a9b487 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EntityType.php @@ -0,0 +1,445 @@ +google.cloud.aiplatform.v1.EntityType + */ +class EntityType extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. Name of the EntityType. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * The last part entity_type is assigned by the client. The entity_type can be + * up to 64 characters long and can consist only of ASCII Latin letters A-Z + * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The + * value will be unique given a featurestore. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Optional. Description of the EntityType. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. Timestamp when this EntityType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this EntityType was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. The labels with user-defined metadata to organize your + * EntityTypes. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one EntityType (System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Used to perform a consistent read-modify-write updates. If not + * set, a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. The default monitoring configuration for all Features with value + * type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, + * STRING, DOUBLE or INT64 under this EntityType. + * If this is populated with + * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot + * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is + * disabled. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $monitoring_config = null; + /** + * Optional. Config for data retention policy in offline storage. + * TTL in days for feature values that will be stored in offline storage. + * The Feature Store offline storage periodically removes obsolete feature + * values older than `offline_storage_ttl_days` since the feature generation + * time. If unset (or explicitly set to 0), default to 4000 days TTL. + * + * Generated from protobuf field int32 offline_storage_ttl_days = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $offline_storage_ttl_days = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. Name of the EntityType. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * The last part entity_type is assigned by the client. The entity_type can be + * up to 64 characters long and can consist only of ASCII Latin letters A-Z + * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The + * value will be unique given a featurestore. + * @type string $description + * Optional. Description of the EntityType. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this EntityType was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this EntityType was most recently updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The labels with user-defined metadata to organize your + * EntityTypes. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one EntityType (System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * @type string $etag + * Optional. Used to perform a consistent read-modify-write updates. If not + * set, a blind "overwrite" update happens. + * @type \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig $monitoring_config + * Optional. The default monitoring configuration for all Features with value + * type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, + * STRING, DOUBLE or INT64 under this EntityType. + * If this is populated with + * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot + * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is + * disabled. + * @type int $offline_storage_ttl_days + * Optional. Config for data retention policy in offline storage. + * TTL in days for feature values that will be stored in offline storage. + * The Feature Store offline storage periodically removes obsolete feature + * values older than `offline_storage_ttl_days` since the feature generation + * time. If unset (or explicitly set to 0), default to 4000 days TTL. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EntityType::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. Name of the EntityType. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * The last part entity_type is assigned by the client. The entity_type can be + * up to 64 characters long and can consist only of ASCII Latin letters A-Z + * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The + * value will be unique given a featurestore. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. Name of the EntityType. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * The last part entity_type is assigned by the client. The entity_type can be + * up to 64 characters long and can consist only of ASCII Latin letters A-Z + * and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The + * value will be unique given a featurestore. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Description of the EntityType. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the EntityType. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. Timestamp when this EntityType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this EntityType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this EntityType was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this EntityType was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * EntityTypes. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one EntityType (System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * EntityTypes. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one EntityType (System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Used to perform a consistent read-modify-write updates. If not + * set, a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. Used to perform a consistent read-modify-write updates. If not + * set, a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. The default monitoring configuration for all Features with value + * type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, + * STRING, DOUBLE or INT64 under this EntityType. + * If this is populated with + * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot + * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is + * disabled. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Optional. The default monitoring configuration for all Features with value + * type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, + * STRING, DOUBLE or INT64 under this EntityType. + * If this is populated with + * [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot + * analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is + * disabled. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig monitoring_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + + /** + * Optional. Config for data retention policy in offline storage. + * TTL in days for feature values that will be stored in offline storage. + * The Feature Store offline storage periodically removes obsolete feature + * values older than `offline_storage_ttl_days` since the feature generation + * time. If unset (or explicitly set to 0), default to 4000 days TTL. + * + * Generated from protobuf field int32 offline_storage_ttl_days = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getOfflineStorageTtlDays() + { + return $this->offline_storage_ttl_days; + } + + /** + * Optional. Config for data retention policy in offline storage. + * TTL in days for feature values that will be stored in offline storage. + * The Feature Store offline storage periodically removes obsolete feature + * values older than `offline_storage_ttl_days` since the feature generation + * time. If unset (or explicitly set to 0), default to 4000 days TTL. + * + * Generated from protobuf field int32 offline_storage_ttl_days = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setOfflineStorageTtlDays($var) + { + GPBUtil::checkInt32($var); + $this->offline_storage_ttl_days = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EnvVar.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EnvVar.php new file mode 100644 index 000000000000..a189248f6cfc --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EnvVar.php @@ -0,0 +1,125 @@ +google.cloud.aiplatform.v1.EnvVar + */ +class EnvVar extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the environment variable. Must be a valid C identifier. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. Variables that reference a $(VAR_NAME) are expanded + * using the previous defined environment variables in the container and + * any service environment variables. If a variable cannot be resolved, + * the reference in the input string will be unchanged. The $(VAR_NAME) + * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped + * references will never be expanded, regardless of whether the variable + * exists or not. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the environment variable. Must be a valid C identifier. + * @type string $value + * Required. Variables that reference a $(VAR_NAME) are expanded + * using the previous defined environment variables in the container and + * any service environment variables. If a variable cannot be resolved, + * the reference in the input string will be unchanged. The $(VAR_NAME) + * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped + * references will never be expanded, regardless of whether the variable + * exists or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EnvVar::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the environment variable. Must be a valid C identifier. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the environment variable. Must be a valid C identifier. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Variables that reference a $(VAR_NAME) are expanded + * using the previous defined environment variables in the container and + * any service environment variables. If a variable cannot be resolved, + * the reference in the input string will be unchanged. The $(VAR_NAME) + * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped + * references will never be expanded, regardless of whether the variable + * exists or not. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. Variables that reference a $(VAR_NAME) are expanded + * using the previous defined environment variables in the container and + * any service environment variables. If a variable cannot be resolved, + * the reference in the input string will be unchanged. The $(VAR_NAME) + * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped + * references will never be expanded, regardless of whether the variable + * exists or not. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ErrorAnalysisAnnotation.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ErrorAnalysisAnnotation.php new file mode 100644 index 000000000000..e063ef9eb60a --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ErrorAnalysisAnnotation.php @@ -0,0 +1,177 @@ +google.cloud.aiplatform.v1.ErrorAnalysisAnnotation + */ +class ErrorAnalysisAnnotation extends \Google\Protobuf\Internal\Message +{ + /** + * Attributed items for a given annotation, typically representing neighbors + * from the training sets constrained by the query type. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1; + */ + private $attributed_items; + /** + * The query type used for finding the attributed items. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType query_type = 2; + */ + protected $query_type = 0; + /** + * The outlier score of this annotated item. Usually defined as the min of all + * distances from attributed items. + * + * Generated from protobuf field double outlier_score = 3; + */ + protected $outlier_score = 0.0; + /** + * The threshold used to determine if this annotation is an outlier or not. + * + * Generated from protobuf field double outlier_threshold = 4; + */ + protected $outlier_threshold = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\ErrorAnalysisAnnotation\AttributedItem>|\Google\Protobuf\Internal\RepeatedField $attributed_items + * Attributed items for a given annotation, typically representing neighbors + * from the training sets constrained by the query type. + * @type int $query_type + * The query type used for finding the attributed items. + * @type float $outlier_score + * The outlier score of this annotated item. Usually defined as the min of all + * distances from attributed items. + * @type float $outlier_threshold + * The threshold used to determine if this annotation is an outlier or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluatedAnnotation::initOnce(); + parent::__construct($data); + } + + /** + * Attributed items for a given annotation, typically representing neighbors + * from the training sets constrained by the query type. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributedItems() + { + return $this->attributed_items; + } + + /** + * Attributed items for a given annotation, typically representing neighbors + * from the training sets constrained by the query type. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1; + * @param array<\Google\Cloud\AIPlatform\V1\ErrorAnalysisAnnotation\AttributedItem>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributedItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ErrorAnalysisAnnotation\AttributedItem::class); + $this->attributed_items = $arr; + + return $this; + } + + /** + * The query type used for finding the attributed items. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType query_type = 2; + * @return int + */ + public function getQueryType() + { + return $this->query_type; + } + + /** + * The query type used for finding the attributed items. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType query_type = 2; + * @param int $var + * @return $this + */ + public function setQueryType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\ErrorAnalysisAnnotation\QueryType::class); + $this->query_type = $var; + + return $this; + } + + /** + * The outlier score of this annotated item. Usually defined as the min of all + * distances from attributed items. + * + * Generated from protobuf field double outlier_score = 3; + * @return float + */ + public function getOutlierScore() + { + return $this->outlier_score; + } + + /** + * The outlier score of this annotated item. Usually defined as the min of all + * distances from attributed items. + * + * Generated from protobuf field double outlier_score = 3; + * @param float $var + * @return $this + */ + public function setOutlierScore($var) + { + GPBUtil::checkDouble($var); + $this->outlier_score = $var; + + return $this; + } + + /** + * The threshold used to determine if this annotation is an outlier or not. + * + * Generated from protobuf field double outlier_threshold = 4; + * @return float + */ + public function getOutlierThreshold() + { + return $this->outlier_threshold; + } + + /** + * The threshold used to determine if this annotation is an outlier or not. + * + * Generated from protobuf field double outlier_threshold = 4; + * @param float $var + * @return $this + */ + public function setOutlierThreshold($var) + { + GPBUtil::checkDouble($var); + $this->outlier_threshold = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ErrorAnalysisAnnotation/AttributedItem.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ErrorAnalysisAnnotation/AttributedItem.php new file mode 100644 index 000000000000..4e09cb15a5bd --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ErrorAnalysisAnnotation/AttributedItem.php @@ -0,0 +1,109 @@ +google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem + */ +class AttributedItem extends \Google\Protobuf\Internal\Message +{ + /** + * The unique ID for each annotation. Used by FE to allocate the annotation + * in DB. + * + * Generated from protobuf field string annotation_resource_name = 1; + */ + protected $annotation_resource_name = ''; + /** + * The distance of this item to the annotation. + * + * Generated from protobuf field double distance = 2; + */ + protected $distance = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $annotation_resource_name + * The unique ID for each annotation. Used by FE to allocate the annotation + * in DB. + * @type float $distance + * The distance of this item to the annotation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluatedAnnotation::initOnce(); + parent::__construct($data); + } + + /** + * The unique ID for each annotation. Used by FE to allocate the annotation + * in DB. + * + * Generated from protobuf field string annotation_resource_name = 1; + * @return string + */ + public function getAnnotationResourceName() + { + return $this->annotation_resource_name; + } + + /** + * The unique ID for each annotation. Used by FE to allocate the annotation + * in DB. + * + * Generated from protobuf field string annotation_resource_name = 1; + * @param string $var + * @return $this + */ + public function setAnnotationResourceName($var) + { + GPBUtil::checkString($var, True); + $this->annotation_resource_name = $var; + + return $this; + } + + /** + * The distance of this item to the annotation. + * + * Generated from protobuf field double distance = 2; + * @return float + */ + public function getDistance() + { + return $this->distance; + } + + /** + * The distance of this item to the annotation. + * + * Generated from protobuf field double distance = 2; + * @param float $var + * @return $this + */ + public function setDistance($var) + { + GPBUtil::checkDouble($var); + $this->distance = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AttributedItem::class, \Google\Cloud\AIPlatform\V1\ErrorAnalysisAnnotation_AttributedItem::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ErrorAnalysisAnnotation/QueryType.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ErrorAnalysisAnnotation/QueryType.php new file mode 100644 index 000000000000..35b9e96e64d4 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ErrorAnalysisAnnotation/QueryType.php @@ -0,0 +1,71 @@ +google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType + */ +class QueryType +{ + /** + * Unspecified query type for model error analysis. + * + * Generated from protobuf enum QUERY_TYPE_UNSPECIFIED = 0; + */ + const QUERY_TYPE_UNSPECIFIED = 0; + /** + * Query similar samples across all classes in the dataset. + * + * Generated from protobuf enum ALL_SIMILAR = 1; + */ + const ALL_SIMILAR = 1; + /** + * Query similar samples from the same class of the input sample. + * + * Generated from protobuf enum SAME_CLASS_SIMILAR = 2; + */ + const SAME_CLASS_SIMILAR = 2; + /** + * Query dissimilar samples from the same class of the input sample. + * + * Generated from protobuf enum SAME_CLASS_DISSIMILAR = 3; + */ + const SAME_CLASS_DISSIMILAR = 3; + + private static $valueToName = [ + self::QUERY_TYPE_UNSPECIFIED => 'QUERY_TYPE_UNSPECIFIED', + self::ALL_SIMILAR => 'ALL_SIMILAR', + self::SAME_CLASS_SIMILAR => 'SAME_CLASS_SIMILAR', + self::SAME_CLASS_DISSIMILAR => 'SAME_CLASS_DISSIMILAR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(QueryType::class, \Google\Cloud\AIPlatform\V1\ErrorAnalysisAnnotation_QueryType::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EvaluatedAnnotation.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EvaluatedAnnotation.php new file mode 100644 index 000000000000..ecc61359bd46 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EvaluatedAnnotation.php @@ -0,0 +1,431 @@ +google.cloud.aiplatform.v1.EvaluatedAnnotation + */ +class EvaluatedAnnotation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Type of the EvaluatedAnnotation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + /** + * Output only. The model predicted annotations. + * For true positive, there is one and only one prediction, which matches the + * only one ground truth annotation in + * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. + * For false positive, there is one and only one prediction, which doesn't + * match any ground truth annotation of the corresponding + * [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + * For false negative, there are zero or more predictions which are similar to + * the only ground truth annotation in + * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths] + * but not enough for a match. + * The schema of the prediction is stored in + * [ModelEvaluation.annotation_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.annotation_schema_uri] + * + * Generated from protobuf field repeated .google.protobuf.Value predictions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $predictions; + /** + * Output only. The ground truth Annotations, i.e. the Annotations that exist + * in the test data the Model is evaluated on. + * For true positive, there is one and only one ground truth annotation, which + * matches the only prediction in + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions]. + * For false positive, there are zero or more ground truth annotations that + * are similar to the only prediction in + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], + * but not enough for a match. + * For false negative, there is one and only one ground truth annotation, + * which doesn't match any predictions created by the model. + * The schema of the ground truth is stored in + * [ModelEvaluation.annotation_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.annotation_schema_uri] + * + * Generated from protobuf field repeated .google.protobuf.Value ground_truths = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $ground_truths; + /** + * Output only. The data item payload that the Model predicted this + * EvaluatedAnnotation on. + * + * Generated from protobuf field .google.protobuf.Value data_item_payload = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_item_payload = null; + /** + * Output only. ID of the EvaluatedDataItemView under the same ancestor + * ModelEvaluation. The EvaluatedDataItemView consists of all ground truths + * and predictions on + * [data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. + * + * Generated from protobuf field string evaluated_data_item_view_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $evaluated_data_item_view_id = ''; + /** + * Explanations of + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions]. + * Each element of the explanations indicates the explanation for one + * explanation Method. + * The attributions list in the + * [EvaluatedAnnotationExplanation.explanation][google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.explanation] + * object corresponds to the + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions] + * list. For example, the second element in the attributions list explains the + * second element in the predictions list. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation explanations = 8; + */ + private $explanations; + /** + * Annotations of model error analysis results. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation error_analysis_annotations = 9; + */ + private $error_analysis_annotations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Output only. Type of the EvaluatedAnnotation. + * @type array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $predictions + * Output only. The model predicted annotations. + * For true positive, there is one and only one prediction, which matches the + * only one ground truth annotation in + * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. + * For false positive, there is one and only one prediction, which doesn't + * match any ground truth annotation of the corresponding + * [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + * For false negative, there are zero or more predictions which are similar to + * the only ground truth annotation in + * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths] + * but not enough for a match. + * The schema of the prediction is stored in + * [ModelEvaluation.annotation_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.annotation_schema_uri] + * @type array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $ground_truths + * Output only. The ground truth Annotations, i.e. the Annotations that exist + * in the test data the Model is evaluated on. + * For true positive, there is one and only one ground truth annotation, which + * matches the only prediction in + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions]. + * For false positive, there are zero or more ground truth annotations that + * are similar to the only prediction in + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], + * but not enough for a match. + * For false negative, there is one and only one ground truth annotation, + * which doesn't match any predictions created by the model. + * The schema of the ground truth is stored in + * [ModelEvaluation.annotation_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.annotation_schema_uri] + * @type \Google\Protobuf\Value $data_item_payload + * Output only. The data item payload that the Model predicted this + * EvaluatedAnnotation on. + * @type string $evaluated_data_item_view_id + * Output only. ID of the EvaluatedDataItemView under the same ancestor + * ModelEvaluation. The EvaluatedDataItemView consists of all ground truths + * and predictions on + * [data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. + * @type array<\Google\Cloud\AIPlatform\V1\EvaluatedAnnotationExplanation>|\Google\Protobuf\Internal\RepeatedField $explanations + * Explanations of + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions]. + * Each element of the explanations indicates the explanation for one + * explanation Method. + * The attributions list in the + * [EvaluatedAnnotationExplanation.explanation][google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.explanation] + * object corresponds to the + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions] + * list. For example, the second element in the attributions list explains the + * second element in the predictions list. + * @type array<\Google\Cloud\AIPlatform\V1\ErrorAnalysisAnnotation>|\Google\Protobuf\Internal\RepeatedField $error_analysis_annotations + * Annotations of model error analysis results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluatedAnnotation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Type of the EvaluatedAnnotation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. Type of the EvaluatedAnnotation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\EvaluatedAnnotation\EvaluatedAnnotationType::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. The model predicted annotations. + * For true positive, there is one and only one prediction, which matches the + * only one ground truth annotation in + * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. + * For false positive, there is one and only one prediction, which doesn't + * match any ground truth annotation of the corresponding + * [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + * For false negative, there are zero or more predictions which are similar to + * the only ground truth annotation in + * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths] + * but not enough for a match. + * The schema of the prediction is stored in + * [ModelEvaluation.annotation_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.annotation_schema_uri] + * + * Generated from protobuf field repeated .google.protobuf.Value predictions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPredictions() + { + return $this->predictions; + } + + /** + * Output only. The model predicted annotations. + * For true positive, there is one and only one prediction, which matches the + * only one ground truth annotation in + * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. + * For false positive, there is one and only one prediction, which doesn't + * match any ground truth annotation of the corresponding + * [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + * For false negative, there are zero or more predictions which are similar to + * the only ground truth annotation in + * [ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths] + * but not enough for a match. + * The schema of the prediction is stored in + * [ModelEvaluation.annotation_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.annotation_schema_uri] + * + * Generated from protobuf field repeated .google.protobuf.Value predictions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPredictions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); + $this->predictions = $arr; + + return $this; + } + + /** + * Output only. The ground truth Annotations, i.e. the Annotations that exist + * in the test data the Model is evaluated on. + * For true positive, there is one and only one ground truth annotation, which + * matches the only prediction in + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions]. + * For false positive, there are zero or more ground truth annotations that + * are similar to the only prediction in + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], + * but not enough for a match. + * For false negative, there is one and only one ground truth annotation, + * which doesn't match any predictions created by the model. + * The schema of the ground truth is stored in + * [ModelEvaluation.annotation_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.annotation_schema_uri] + * + * Generated from protobuf field repeated .google.protobuf.Value ground_truths = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGroundTruths() + { + return $this->ground_truths; + } + + /** + * Output only. The ground truth Annotations, i.e. the Annotations that exist + * in the test data the Model is evaluated on. + * For true positive, there is one and only one ground truth annotation, which + * matches the only prediction in + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions]. + * For false positive, there are zero or more ground truth annotations that + * are similar to the only prediction in + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], + * but not enough for a match. + * For false negative, there is one and only one ground truth annotation, + * which doesn't match any predictions created by the model. + * The schema of the ground truth is stored in + * [ModelEvaluation.annotation_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.annotation_schema_uri] + * + * Generated from protobuf field repeated .google.protobuf.Value ground_truths = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGroundTruths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); + $this->ground_truths = $arr; + + return $this; + } + + /** + * Output only. The data item payload that the Model predicted this + * EvaluatedAnnotation on. + * + * Generated from protobuf field .google.protobuf.Value data_item_payload = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Value|null + */ + public function getDataItemPayload() + { + return $this->data_item_payload; + } + + public function hasDataItemPayload() + { + return isset($this->data_item_payload); + } + + public function clearDataItemPayload() + { + unset($this->data_item_payload); + } + + /** + * Output only. The data item payload that the Model predicted this + * EvaluatedAnnotation on. + * + * Generated from protobuf field .google.protobuf.Value data_item_payload = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setDataItemPayload($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->data_item_payload = $var; + + return $this; + } + + /** + * Output only. ID of the EvaluatedDataItemView under the same ancestor + * ModelEvaluation. The EvaluatedDataItemView consists of all ground truths + * and predictions on + * [data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. + * + * Generated from protobuf field string evaluated_data_item_view_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEvaluatedDataItemViewId() + { + return $this->evaluated_data_item_view_id; + } + + /** + * Output only. ID of the EvaluatedDataItemView under the same ancestor + * ModelEvaluation. The EvaluatedDataItemView consists of all ground truths + * and predictions on + * [data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. + * + * Generated from protobuf field string evaluated_data_item_view_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEvaluatedDataItemViewId($var) + { + GPBUtil::checkString($var, True); + $this->evaluated_data_item_view_id = $var; + + return $this; + } + + /** + * Explanations of + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions]. + * Each element of the explanations indicates the explanation for one + * explanation Method. + * The attributions list in the + * [EvaluatedAnnotationExplanation.explanation][google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.explanation] + * object corresponds to the + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions] + * list. For example, the second element in the attributions list explains the + * second element in the predictions list. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation explanations = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExplanations() + { + return $this->explanations; + } + + /** + * Explanations of + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions]. + * Each element of the explanations indicates the explanation for one + * explanation Method. + * The attributions list in the + * [EvaluatedAnnotationExplanation.explanation][google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.explanation] + * object corresponds to the + * [predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions] + * list. For example, the second element in the attributions list explains the + * second element in the predictions list. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation explanations = 8; + * @param array<\Google\Cloud\AIPlatform\V1\EvaluatedAnnotationExplanation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExplanations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\EvaluatedAnnotationExplanation::class); + $this->explanations = $arr; + + return $this; + } + + /** + * Annotations of model error analysis results. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation error_analysis_annotations = 9; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrorAnalysisAnnotations() + { + return $this->error_analysis_annotations; + } + + /** + * Annotations of model error analysis results. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation error_analysis_annotations = 9; + * @param array<\Google\Cloud\AIPlatform\V1\ErrorAnalysisAnnotation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrorAnalysisAnnotations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ErrorAnalysisAnnotation::class); + $this->error_analysis_annotations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EvaluatedAnnotation/EvaluatedAnnotationType.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EvaluatedAnnotation/EvaluatedAnnotationType.php new file mode 100644 index 000000000000..72e695b0d4a6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EvaluatedAnnotation/EvaluatedAnnotationType.php @@ -0,0 +1,74 @@ +google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType + */ +class EvaluatedAnnotationType +{ + /** + * Invalid value. + * + * Generated from protobuf enum EVALUATED_ANNOTATION_TYPE_UNSPECIFIED = 0; + */ + const EVALUATED_ANNOTATION_TYPE_UNSPECIFIED = 0; + /** + * The EvaluatedAnnotation is a true positive. It has a prediction created + * by the Model and a ground truth Annotation which the prediction matches. + * + * Generated from protobuf enum TRUE_POSITIVE = 1; + */ + const TRUE_POSITIVE = 1; + /** + * The EvaluatedAnnotation is false positive. It has a prediction created by + * the Model which does not match any ground truth annotation. + * + * Generated from protobuf enum FALSE_POSITIVE = 2; + */ + const FALSE_POSITIVE = 2; + /** + * The EvaluatedAnnotation is false negative. It has a ground truth + * annotation which is not matched by any of the model created predictions. + * + * Generated from protobuf enum FALSE_NEGATIVE = 3; + */ + const FALSE_NEGATIVE = 3; + + private static $valueToName = [ + self::EVALUATED_ANNOTATION_TYPE_UNSPECIFIED => 'EVALUATED_ANNOTATION_TYPE_UNSPECIFIED', + self::TRUE_POSITIVE => 'TRUE_POSITIVE', + self::FALSE_POSITIVE => 'FALSE_POSITIVE', + self::FALSE_NEGATIVE => 'FALSE_NEGATIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EvaluatedAnnotationType::class, \Google\Cloud\AIPlatform\V1\EvaluatedAnnotation_EvaluatedAnnotationType::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EvaluatedAnnotationExplanation.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EvaluatedAnnotationExplanation.php new file mode 100644 index 000000000000..4752df122154 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/EvaluatedAnnotationExplanation.php @@ -0,0 +1,123 @@ +google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation + */ +class EvaluatedAnnotationExplanation extends \Google\Protobuf\Internal\Message +{ + /** + * Explanation type. + * For AutoML Image Classification models, possible values are: + * * `image-integrated-gradients` + * * `image-xrai` + * + * Generated from protobuf field string explanation_type = 1; + */ + protected $explanation_type = ''; + /** + * Explanation attribution response details. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Explanation explanation = 2; + */ + protected $explanation = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $explanation_type + * Explanation type. + * For AutoML Image Classification models, possible values are: + * * `image-integrated-gradients` + * * `image-xrai` + * @type \Google\Cloud\AIPlatform\V1\Explanation $explanation + * Explanation attribution response details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EvaluatedAnnotation::initOnce(); + parent::__construct($data); + } + + /** + * Explanation type. + * For AutoML Image Classification models, possible values are: + * * `image-integrated-gradients` + * * `image-xrai` + * + * Generated from protobuf field string explanation_type = 1; + * @return string + */ + public function getExplanationType() + { + return $this->explanation_type; + } + + /** + * Explanation type. + * For AutoML Image Classification models, possible values are: + * * `image-integrated-gradients` + * * `image-xrai` + * + * Generated from protobuf field string explanation_type = 1; + * @param string $var + * @return $this + */ + public function setExplanationType($var) + { + GPBUtil::checkString($var, True); + $this->explanation_type = $var; + + return $this; + } + + /** + * Explanation attribution response details. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Explanation explanation = 2; + * @return \Google\Cloud\AIPlatform\V1\Explanation|null + */ + public function getExplanation() + { + return $this->explanation; + } + + public function hasExplanation() + { + return isset($this->explanation); + } + + public function clearExplanation() + { + unset($this->explanation); + } + + /** + * Explanation attribution response details. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Explanation explanation = 2; + * @param \Google\Cloud\AIPlatform\V1\Explanation $var + * @return $this + */ + public function setExplanation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Explanation::class); + $this->explanation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Event.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Event.php new file mode 100644 index 000000000000..665c415849ca --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Event.php @@ -0,0 +1,246 @@ +google.cloud.aiplatform.v1.Event + */ +class Event extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The relative resource name of the Artifact in the Event. + * + * Generated from protobuf field string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $artifact = ''; + /** + * Output only. The relative resource name of the Execution in the Event. + * + * Generated from protobuf field string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $execution = ''; + /** + * Output only. Time the Event occurred. + * + * Generated from protobuf field .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $event_time = null; + /** + * Required. The type of the Event. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = 0; + /** + * The labels with user-defined metadata to annotate Events. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Event (System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 5; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $artifact + * Required. The relative resource name of the Artifact in the Event. + * @type string $execution + * Output only. The relative resource name of the Execution in the Event. + * @type \Google\Protobuf\Timestamp $event_time + * Output only. Time the Event occurred. + * @type int $type + * Required. The type of the Event. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to annotate Events. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Event (System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Event::initOnce(); + parent::__construct($data); + } + + /** + * Required. The relative resource name of the Artifact in the Event. + * + * Generated from protobuf field string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getArtifact() + { + return $this->artifact; + } + + /** + * Required. The relative resource name of the Artifact in the Event. + * + * Generated from protobuf field string artifact = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setArtifact($var) + { + GPBUtil::checkString($var, True); + $this->artifact = $var; + + return $this; + } + + /** + * Output only. The relative resource name of the Execution in the Event. + * + * Generated from protobuf field string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getExecution() + { + return $this->execution; + } + + /** + * Output only. The relative resource name of the Execution in the Event. + * + * Generated from protobuf field string execution = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setExecution($var) + { + GPBUtil::checkString($var, True); + $this->execution = $var; + + return $this; + } + + /** + * Output only. Time the Event occurred. + * + * Generated from protobuf field .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEventTime() + { + return $this->event_time; + } + + public function hasEventTime() + { + return isset($this->event_time); + } + + public function clearEventTime() + { + unset($this->event_time); + } + + /** + * Output only. Time the Event occurred. + * + * Generated from protobuf field .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEventTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->event_time = $var; + + return $this; + } + + /** + * Required. The type of the Event. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The type of the Event. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Event.Type type = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\Event\Type::class); + $this->type = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to annotate Events. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Event (System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to annotate Events. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Event (System + * labels are excluded). + * See https://goo.gl/xmQnxf for more information and examples of labels. + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Event/Type.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Event/Type.php new file mode 100644 index 000000000000..5a8441948304 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Event/Type.php @@ -0,0 +1,64 @@ +google.cloud.aiplatform.v1.Event.Type + */ +class Type +{ + /** + * Unspecified whether input or output of the Execution. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * An input of the Execution. + * + * Generated from protobuf enum INPUT = 1; + */ + const INPUT = 1; + /** + * An output of the Execution. + * + * Generated from protobuf enum OUTPUT = 2; + */ + const OUTPUT = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::INPUT => 'INPUT', + self::OUTPUT => 'OUTPUT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\AIPlatform\V1\Event_Type::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Examples.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Examples.php new file mode 100644 index 000000000000..107491c628eb --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Examples.php @@ -0,0 +1,197 @@ +google.cloud.aiplatform.v1.Examples + */ +class Examples extends \Google\Protobuf\Internal\Message +{ + /** + * The number of neighbors to return when querying for examples. + * + * Generated from protobuf field int32 neighbor_count = 3; + */ + protected $neighbor_count = 0; + protected $source; + protected $config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\Examples\ExampleGcsSource $example_gcs_source + * The Cloud Storage input instances. + * @type \Google\Protobuf\Value $nearest_neighbor_search_config + * The full configuration for the generated index, the semantics are the + * same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should + * match + * [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config). + * @type \Google\Cloud\AIPlatform\V1\Presets $presets + * Simplified preset configuration, which automatically sets configuration + * values based on the desired query speed-precision trade-off and modality. + * @type int $neighbor_count + * The number of neighbors to return when querying for examples. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud Storage input instances. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5; + * @return \Google\Cloud\AIPlatform\V1\Examples\ExampleGcsSource|null + */ + public function getExampleGcsSource() + { + return $this->readOneof(5); + } + + public function hasExampleGcsSource() + { + return $this->hasOneof(5); + } + + /** + * The Cloud Storage input instances. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5; + * @param \Google\Cloud\AIPlatform\V1\Examples\ExampleGcsSource $var + * @return $this + */ + public function setExampleGcsSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Examples\ExampleGcsSource::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The full configuration for the generated index, the semantics are the + * same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should + * match + * [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config). + * + * Generated from protobuf field .google.protobuf.Value nearest_neighbor_search_config = 2; + * @return \Google\Protobuf\Value|null + */ + public function getNearestNeighborSearchConfig() + { + return $this->readOneof(2); + } + + public function hasNearestNeighborSearchConfig() + { + return $this->hasOneof(2); + } + + /** + * The full configuration for the generated index, the semantics are the + * same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should + * match + * [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config). + * + * Generated from protobuf field .google.protobuf.Value nearest_neighbor_search_config = 2; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setNearestNeighborSearchConfig($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Simplified preset configuration, which automatically sets configuration + * values based on the desired query speed-precision trade-off and modality. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Presets presets = 4; + * @return \Google\Cloud\AIPlatform\V1\Presets|null + */ + public function getPresets() + { + return $this->readOneof(4); + } + + public function hasPresets() + { + return $this->hasOneof(4); + } + + /** + * Simplified preset configuration, which automatically sets configuration + * values based on the desired query speed-precision trade-off and modality. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Presets presets = 4; + * @param \Google\Cloud\AIPlatform\V1\Presets $var + * @return $this + */ + public function setPresets($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Presets::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * The number of neighbors to return when querying for examples. + * + * Generated from protobuf field int32 neighbor_count = 3; + * @return int + */ + public function getNeighborCount() + { + return $this->neighbor_count; + } + + /** + * The number of neighbors to return when querying for examples. + * + * Generated from protobuf field int32 neighbor_count = 3; + * @param int $var + * @return $this + */ + public function setNeighborCount($var) + { + GPBUtil::checkInt32($var); + $this->neighbor_count = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + + /** + * @return string + */ + public function getConfig() + { + return $this->whichOneof("config"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Examples/ExampleGcsSource.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Examples/ExampleGcsSource.php new file mode 100644 index 000000000000..260ea83fd996 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Examples/ExampleGcsSource.php @@ -0,0 +1,118 @@ +google.cloud.aiplatform.v1.Examples.ExampleGcsSource + */ +class ExampleGcsSource extends \Google\Protobuf\Internal\Message +{ + /** + * The format in which instances are given, if not specified, assume it's + * JSONL format. Currently only JSONL format is supported. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Examples.ExampleGcsSource.DataFormat data_format = 1; + */ + protected $data_format = 0; + /** + * The Cloud Storage location for the input instances. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + */ + protected $gcs_source = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $data_format + * The format in which instances are given, if not specified, assume it's + * JSONL format. Currently only JSONL format is supported. + * @type \Google\Cloud\AIPlatform\V1\GcsSource $gcs_source + * The Cloud Storage location for the input instances. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * The format in which instances are given, if not specified, assume it's + * JSONL format. Currently only JSONL format is supported. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Examples.ExampleGcsSource.DataFormat data_format = 1; + * @return int + */ + public function getDataFormat() + { + return $this->data_format; + } + + /** + * The format in which instances are given, if not specified, assume it's + * JSONL format. Currently only JSONL format is supported. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Examples.ExampleGcsSource.DataFormat data_format = 1; + * @param int $var + * @return $this + */ + public function setDataFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\Examples\ExampleGcsSource\DataFormat::class); + $this->data_format = $var; + + return $this; + } + + /** + * The Cloud Storage location for the input instances. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + * @return \Google\Cloud\AIPlatform\V1\GcsSource|null + */ + public function getGcsSource() + { + return $this->gcs_source; + } + + public function hasGcsSource() + { + return isset($this->gcs_source); + } + + public function clearGcsSource() + { + unset($this->gcs_source); + } + + /** + * The Cloud Storage location for the input instances. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + * @param \Google\Cloud\AIPlatform\V1\GcsSource $var + * @return $this + */ + public function setGcsSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GcsSource::class); + $this->gcs_source = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ExampleGcsSource::class, \Google\Cloud\AIPlatform\V1\Examples_ExampleGcsSource::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Examples/ExampleGcsSource/DataFormat.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Examples/ExampleGcsSource/DataFormat.php new file mode 100644 index 000000000000..e6c5c7ca42bf --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Examples/ExampleGcsSource/DataFormat.php @@ -0,0 +1,57 @@ +google.cloud.aiplatform.v1.Examples.ExampleGcsSource.DataFormat + */ +class DataFormat +{ + /** + * Format unspecified, used when unset. + * + * Generated from protobuf enum DATA_FORMAT_UNSPECIFIED = 0; + */ + const DATA_FORMAT_UNSPECIFIED = 0; + /** + * Examples are stored in JSONL files. + * + * Generated from protobuf enum JSONL = 1; + */ + const JSONL = 1; + + private static $valueToName = [ + self::DATA_FORMAT_UNSPECIFIED => 'DATA_FORMAT_UNSPECIFIED', + self::JSONL => 'JSONL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DataFormat::class, \Google\Cloud\AIPlatform\V1\Examples_ExampleGcsSource_DataFormat::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExamplesOverride.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExamplesOverride.php new file mode 100644 index 000000000000..b08bb3b5152b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExamplesOverride.php @@ -0,0 +1,203 @@ +google.cloud.aiplatform.v1.ExamplesOverride + */ +class ExamplesOverride extends \Google\Protobuf\Internal\Message +{ + /** + * The number of neighbors to return. + * + * Generated from protobuf field int32 neighbor_count = 1; + */ + protected $neighbor_count = 0; + /** + * The number of neighbors to return that have the same crowding tag. + * + * Generated from protobuf field int32 crowding_count = 2; + */ + protected $crowding_count = 0; + /** + * Restrict the resulting nearest neighbors to respect these constraints. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + */ + private $restrictions; + /** + * If true, return the embeddings instead of neighbors. + * + * Generated from protobuf field bool return_embeddings = 4; + */ + protected $return_embeddings = false; + /** + * The format of the data being provided with each call. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + */ + protected $data_format = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $neighbor_count + * The number of neighbors to return. + * @type int $crowding_count + * The number of neighbors to return that have the same crowding tag. + * @type array<\Google\Cloud\AIPlatform\V1\ExamplesRestrictionsNamespace>|\Google\Protobuf\Internal\RepeatedField $restrictions + * Restrict the resulting nearest neighbors to respect these constraints. + * @type bool $return_embeddings + * If true, return the embeddings instead of neighbors. + * @type int $data_format + * The format of the data being provided with each call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * The number of neighbors to return. + * + * Generated from protobuf field int32 neighbor_count = 1; + * @return int + */ + public function getNeighborCount() + { + return $this->neighbor_count; + } + + /** + * The number of neighbors to return. + * + * Generated from protobuf field int32 neighbor_count = 1; + * @param int $var + * @return $this + */ + public function setNeighborCount($var) + { + GPBUtil::checkInt32($var); + $this->neighbor_count = $var; + + return $this; + } + + /** + * The number of neighbors to return that have the same crowding tag. + * + * Generated from protobuf field int32 crowding_count = 2; + * @return int + */ + public function getCrowdingCount() + { + return $this->crowding_count; + } + + /** + * The number of neighbors to return that have the same crowding tag. + * + * Generated from protobuf field int32 crowding_count = 2; + * @param int $var + * @return $this + */ + public function setCrowdingCount($var) + { + GPBUtil::checkInt32($var); + $this->crowding_count = $var; + + return $this; + } + + /** + * Restrict the resulting nearest neighbors to respect these constraints. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRestrictions() + { + return $this->restrictions; + } + + /** + * Restrict the resulting nearest neighbors to respect these constraints. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * @param array<\Google\Cloud\AIPlatform\V1\ExamplesRestrictionsNamespace>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRestrictions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ExamplesRestrictionsNamespace::class); + $this->restrictions = $arr; + + return $this; + } + + /** + * If true, return the embeddings instead of neighbors. + * + * Generated from protobuf field bool return_embeddings = 4; + * @return bool + */ + public function getReturnEmbeddings() + { + return $this->return_embeddings; + } + + /** + * If true, return the embeddings instead of neighbors. + * + * Generated from protobuf field bool return_embeddings = 4; + * @param bool $var + * @return $this + */ + public function setReturnEmbeddings($var) + { + GPBUtil::checkBool($var); + $this->return_embeddings = $var; + + return $this; + } + + /** + * The format of the data being provided with each call. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * @return int + */ + public function getDataFormat() + { + return $this->data_format; + } + + /** + * The format of the data being provided with each call. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * @param int $var + * @return $this + */ + public function setDataFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\ExamplesOverride\DataFormat::class); + $this->data_format = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExamplesOverride/DataFormat.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExamplesOverride/DataFormat.php new file mode 100644 index 000000000000..77678de20eda --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExamplesOverride/DataFormat.php @@ -0,0 +1,64 @@ +google.cloud.aiplatform.v1.ExamplesOverride.DataFormat + */ +class DataFormat +{ + /** + * Unspecified format. Must not be used. + * + * Generated from protobuf enum DATA_FORMAT_UNSPECIFIED = 0; + */ + const DATA_FORMAT_UNSPECIFIED = 0; + /** + * Provided data is a set of model inputs. + * + * Generated from protobuf enum INSTANCES = 1; + */ + const INSTANCES = 1; + /** + * Provided data is a set of embeddings. + * + * Generated from protobuf enum EMBEDDINGS = 2; + */ + const EMBEDDINGS = 2; + + private static $valueToName = [ + self::DATA_FORMAT_UNSPECIFIED => 'DATA_FORMAT_UNSPECIFIED', + self::INSTANCES => 'INSTANCES', + self::EMBEDDINGS => 'EMBEDDINGS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DataFormat::class, \Google\Cloud\AIPlatform\V1\ExamplesOverride_DataFormat::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExamplesRestrictionsNamespace.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExamplesRestrictionsNamespace.php new file mode 100644 index 000000000000..07d719058697 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExamplesRestrictionsNamespace.php @@ -0,0 +1,135 @@ +google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + */ +class ExamplesRestrictionsNamespace extends \Google\Protobuf\Internal\Message +{ + /** + * The namespace name. + * + * Generated from protobuf field string namespace_name = 1; + */ + protected $namespace_name = ''; + /** + * The list of allowed tags. + * + * Generated from protobuf field repeated string allow = 2; + */ + private $allow; + /** + * The list of deny tags. + * + * Generated from protobuf field repeated string deny = 3; + */ + private $deny; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $namespace_name + * The namespace name. + * @type array|\Google\Protobuf\Internal\RepeatedField $allow + * The list of allowed tags. + * @type array|\Google\Protobuf\Internal\RepeatedField $deny + * The list of deny tags. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * The namespace name. + * + * Generated from protobuf field string namespace_name = 1; + * @return string + */ + public function getNamespaceName() + { + return $this->namespace_name; + } + + /** + * The namespace name. + * + * Generated from protobuf field string namespace_name = 1; + * @param string $var + * @return $this + */ + public function setNamespaceName($var) + { + GPBUtil::checkString($var, True); + $this->namespace_name = $var; + + return $this; + } + + /** + * The list of allowed tags. + * + * Generated from protobuf field repeated string allow = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAllow() + { + return $this->allow; + } + + /** + * The list of allowed tags. + * + * Generated from protobuf field repeated string allow = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAllow($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->allow = $arr; + + return $this; + } + + /** + * The list of deny tags. + * + * Generated from protobuf field repeated string deny = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeny() + { + return $this->deny; + } + + /** + * The list of deny tags. + * + * Generated from protobuf field repeated string deny = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeny($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->deny = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Execution.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Execution.php new file mode 100644 index 000000000000..42bf6f6e07ca --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Execution.php @@ -0,0 +1,509 @@ +google.cloud.aiplatform.v1.Execution + */ +class Execution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the Execution. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * User provided display name of the Execution. + * May be up to 128 Unicode characters. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * The state of this Execution. This is a property of the Execution, and does + * not imply or capture any ongoing process. This property is managed by + * clients (such as Vertex AI Pipelines) and the system does not prescribe + * or check the validity of state transitions. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Execution.State state = 6; + */ + protected $state = 0; + /** + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 9; + */ + protected $etag = ''; + /** + * The labels with user-defined metadata to organize your Executions. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Execution (System + * labels are excluded). + * + * Generated from protobuf field map labels = 10; + */ + private $labels; + /** + * Output only. Timestamp when this Execution was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this Execution was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_title = 13; + */ + protected $schema_title = ''; + /** + * The version of the schema in `schema_title` to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_version = 14; + */ + protected $schema_version = ''; + /** + * Properties of the Execution. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * + * Generated from protobuf field .google.protobuf.Struct metadata = 15; + */ + protected $metadata = null; + /** + * Description of the Execution + * + * Generated from protobuf field string description = 16; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the Execution. + * @type string $display_name + * User provided display name of the Execution. + * May be up to 128 Unicode characters. + * @type int $state + * The state of this Execution. This is a property of the Execution, and does + * not imply or capture any ongoing process. This property is managed by + * clients (such as Vertex AI Pipelines) and the system does not prescribe + * or check the validity of state transitions. + * @type string $etag + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize your Executions. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Execution (System + * labels are excluded). + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this Execution was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this Execution was last updated. + * @type string $schema_title + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * @type string $schema_version + * The version of the schema in `schema_title` to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * @type \Google\Protobuf\Struct $metadata + * Properties of the Execution. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * @type string $description + * Description of the Execution + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Execution::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the Execution. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of the Execution. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * User provided display name of the Execution. + * May be up to 128 Unicode characters. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * User provided display name of the Execution. + * May be up to 128 Unicode characters. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The state of this Execution. This is a property of the Execution, and does + * not imply or capture any ongoing process. This property is managed by + * clients (such as Vertex AI Pipelines) and the system does not prescribe + * or check the validity of state transitions. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Execution.State state = 6; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The state of this Execution. This is a property of the Execution, and does + * not imply or capture any ongoing process. This property is managed by + * clients (such as Vertex AI Pipelines) and the system does not prescribe + * or check the validity of state transitions. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Execution.State state = 6; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\Execution\State::class); + $this->state = $var; + + return $this; + } + + /** + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 9; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * An eTag used to perform consistent read-modify-write updates. If not set, a + * blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 9; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize your Executions. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Execution (System + * labels are excluded). + * + * Generated from protobuf field map labels = 10; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize your Executions. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * No more than 64 user labels can be associated with one Execution (System + * labels are excluded). + * + * Generated from protobuf field map labels = 10; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Timestamp when this Execution was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this Execution was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Execution was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this Execution was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_title = 13; + * @return string + */ + public function getSchemaTitle() + { + return $this->schema_title; + } + + /** + * The title of the schema describing the metadata. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_title = 13; + * @param string $var + * @return $this + */ + public function setSchemaTitle($var) + { + GPBUtil::checkString($var, True); + $this->schema_title = $var; + + return $this; + } + + /** + * The version of the schema in `schema_title` to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_version = 14; + * @return string + */ + public function getSchemaVersion() + { + return $this->schema_version; + } + + /** + * The version of the schema in `schema_title` to use. + * Schema title and version is expected to be registered in earlier Create + * Schema calls. And both are used together as unique identifiers to identify + * schemas within the local metadata store. + * + * Generated from protobuf field string schema_version = 14; + * @param string $var + * @return $this + */ + public function setSchemaVersion($var) + { + GPBUtil::checkString($var, True); + $this->schema_version = $var; + + return $this; + } + + /** + * Properties of the Execution. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * + * Generated from protobuf field .google.protobuf.Struct metadata = 15; + * @return \Google\Protobuf\Struct|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Properties of the Execution. + * Top level metadata keys' heading and trailing spaces will be trimmed. + * The size of this field should not exceed 200KB. + * + * Generated from protobuf field .google.protobuf.Struct metadata = 15; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->metadata = $var; + + return $this; + } + + /** + * Description of the Execution + * + * Generated from protobuf field string description = 16; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the Execution + * + * Generated from protobuf field string description = 16; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Execution/State.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Execution/State.php new file mode 100644 index 000000000000..93eb6a80419a --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Execution/State.php @@ -0,0 +1,96 @@ +google.cloud.aiplatform.v1.Execution.State + */ +class State +{ + /** + * Unspecified Execution state + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The Execution is new + * + * Generated from protobuf enum NEW = 1; + */ + const PBNEW = 1; + /** + * The Execution is running + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The Execution has finished running + * + * Generated from protobuf enum COMPLETE = 3; + */ + const COMPLETE = 3; + /** + * The Execution has failed + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + /** + * The Execution completed through Cache hit. + * + * Generated from protobuf enum CACHED = 5; + */ + const CACHED = 5; + /** + * The Execution was cancelled. + * + * Generated from protobuf enum CANCELLED = 6; + */ + const CANCELLED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PBNEW => 'NEW', + self::RUNNING => 'RUNNING', + self::COMPLETE => 'COMPLETE', + self::FAILED => 'FAILED', + self::CACHED => 'CACHED', + self::CANCELLED => 'CANCELLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\AIPlatform\V1\Execution_State::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplainRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplainRequest.php new file mode 100644 index 000000000000..d953774b600f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplainRequest.php @@ -0,0 +1,352 @@ +google.cloud.aiplatform.v1.ExplainRequest + */ +class ExplainRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Endpoint requested to serve the explanation. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $endpoint = ''; + /** + * Required. The instances that are the input to the explanation call. + * A DeployedModel may have an upper limit on the number of instances it + * supports per request, and when it is exceeded the explanation call errors + * in case of AutoML Models, or, in case of customer created Models, the + * behaviour is as documented by that Model. + * The schema of any single instance may be specified via Endpoint's + * DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * + * Generated from protobuf field repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $instances; + /** + * The parameters that govern the prediction. The schema of the parameters may + * be specified via Endpoint's DeployedModels' [Model's + * ][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value parameters = 4; + */ + protected $parameters = null; + /** + * If specified, overrides the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * of the DeployedModel. Can be used for explaining prediction results with + * different configurations, such as: + * - Explaining top-5 predictions results as opposed to top-1; + * - Increasing path count or step count of the attribution methods to reduce + * approximate errors; + * - Using different baselines for explaining the prediction results. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationSpecOverride explanation_spec_override = 5; + */ + protected $explanation_spec_override = null; + /** + * If specified, this ExplainRequest will be served by the chosen + * DeployedModel, overriding + * [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split]. + * + * Generated from protobuf field string deployed_model_id = 3; + */ + protected $deployed_model_id = ''; + + /** + * @param string $endpoint Required. The name of the Endpoint requested to serve the explanation. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Please see {@see PredictionServiceClient::endpointName()} for help formatting this field. + * @param \Google\Protobuf\Value[] $instances Required. The instances that are the input to the explanation call. + * A DeployedModel may have an upper limit on the number of instances it + * supports per request, and when it is exceeded the explanation call errors + * in case of AutoML Models, or, in case of customer created Models, the + * behaviour is as documented by that Model. + * The schema of any single instance may be specified via Endpoint's + * DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * @param \Google\Protobuf\Value $parameters The parameters that govern the prediction. The schema of the parameters may + * be specified via Endpoint's DeployedModels' [Model's + * ][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + * @param string $deployedModelId If specified, this ExplainRequest will be served by the chosen + * DeployedModel, overriding + * [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split]. + * + * @return \Google\Cloud\AIPlatform\V1\ExplainRequest + * + * @experimental + */ + public static function build(string $endpoint, array $instances, \Google\Protobuf\Value $parameters, string $deployedModelId): self + { + return (new self()) + ->setEndpoint($endpoint) + ->setInstances($instances) + ->setParameters($parameters) + ->setDeployedModelId($deployedModelId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $endpoint + * Required. The name of the Endpoint requested to serve the explanation. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @type array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $instances + * Required. The instances that are the input to the explanation call. + * A DeployedModel may have an upper limit on the number of instances it + * supports per request, and when it is exceeded the explanation call errors + * in case of AutoML Models, or, in case of customer created Models, the + * behaviour is as documented by that Model. + * The schema of any single instance may be specified via Endpoint's + * DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * @type \Google\Protobuf\Value $parameters + * The parameters that govern the prediction. The schema of the parameters may + * be specified via Endpoint's DeployedModels' [Model's + * ][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + * @type \Google\Cloud\AIPlatform\V1\ExplanationSpecOverride $explanation_spec_override + * If specified, overrides the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * of the DeployedModel. Can be used for explaining prediction results with + * different configurations, such as: + * - Explaining top-5 predictions results as opposed to top-1; + * - Increasing path count or step count of the attribution methods to reduce + * approximate errors; + * - Using different baselines for explaining the prediction results. + * @type string $deployed_model_id + * If specified, this ExplainRequest will be served by the chosen + * DeployedModel, overriding + * [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PredictionService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Endpoint requested to serve the explanation. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * Required. The name of the Endpoint requested to serve the explanation. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * Required. The instances that are the input to the explanation call. + * A DeployedModel may have an upper limit on the number of instances it + * supports per request, and when it is exceeded the explanation call errors + * in case of AutoML Models, or, in case of customer created Models, the + * behaviour is as documented by that Model. + * The schema of any single instance may be specified via Endpoint's + * DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * + * Generated from protobuf field repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInstances() + { + return $this->instances; + } + + /** + * Required. The instances that are the input to the explanation call. + * A DeployedModel may have an upper limit on the number of instances it + * supports per request, and when it is exceeded the explanation call errors + * in case of AutoML Models, or, in case of customer created Models, the + * behaviour is as documented by that Model. + * The schema of any single instance may be specified via Endpoint's + * DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * + * Generated from protobuf field repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInstances($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); + $this->instances = $arr; + + return $this; + } + + /** + * The parameters that govern the prediction. The schema of the parameters may + * be specified via Endpoint's DeployedModels' [Model's + * ][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value parameters = 4; + * @return \Google\Protobuf\Value|null + */ + public function getParameters() + { + return $this->parameters; + } + + public function hasParameters() + { + return isset($this->parameters); + } + + public function clearParameters() + { + unset($this->parameters); + } + + /** + * The parameters that govern the prediction. The schema of the parameters may + * be specified via Endpoint's DeployedModels' [Model's + * ][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value parameters = 4; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setParameters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->parameters = $var; + + return $this; + } + + /** + * If specified, overrides the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * of the DeployedModel. Can be used for explaining prediction results with + * different configurations, such as: + * - Explaining top-5 predictions results as opposed to top-1; + * - Increasing path count or step count of the attribution methods to reduce + * approximate errors; + * - Using different baselines for explaining the prediction results. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationSpecOverride explanation_spec_override = 5; + * @return \Google\Cloud\AIPlatform\V1\ExplanationSpecOverride|null + */ + public function getExplanationSpecOverride() + { + return $this->explanation_spec_override; + } + + public function hasExplanationSpecOverride() + { + return isset($this->explanation_spec_override); + } + + public function clearExplanationSpecOverride() + { + unset($this->explanation_spec_override); + } + + /** + * If specified, overrides the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * of the DeployedModel. Can be used for explaining prediction results with + * different configurations, such as: + * - Explaining top-5 predictions results as opposed to top-1; + * - Increasing path count or step count of the attribution methods to reduce + * approximate errors; + * - Using different baselines for explaining the prediction results. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationSpecOverride explanation_spec_override = 5; + * @param \Google\Cloud\AIPlatform\V1\ExplanationSpecOverride $var + * @return $this + */ + public function setExplanationSpecOverride($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExplanationSpecOverride::class); + $this->explanation_spec_override = $var; + + return $this; + } + + /** + * If specified, this ExplainRequest will be served by the chosen + * DeployedModel, overriding + * [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split]. + * + * Generated from protobuf field string deployed_model_id = 3; + * @return string + */ + public function getDeployedModelId() + { + return $this->deployed_model_id; + } + + /** + * If specified, this ExplainRequest will be served by the chosen + * DeployedModel, overriding + * [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split]. + * + * Generated from protobuf field string deployed_model_id = 3; + * @param string $var + * @return $this + */ + public function setDeployedModelId($var) + { + GPBUtil::checkString($var, True); + $this->deployed_model_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplainResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplainResponse.php new file mode 100644 index 000000000000..41d2fa09856e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplainResponse.php @@ -0,0 +1,160 @@ +google.cloud.aiplatform.v1.ExplainResponse + */ +class ExplainResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The explanations of the Model's + * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. + * It has the same number of elements as + * [instances][google.cloud.aiplatform.v1.ExplainRequest.instances] to be + * explained. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Explanation explanations = 1; + */ + private $explanations; + /** + * ID of the Endpoint's DeployedModel that served this explanation. + * + * Generated from protobuf field string deployed_model_id = 2; + */ + protected $deployed_model_id = ''; + /** + * The predictions that are the output of the predictions call. + * Same as + * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. + * + * Generated from protobuf field repeated .google.protobuf.Value predictions = 3; + */ + private $predictions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\Explanation>|\Google\Protobuf\Internal\RepeatedField $explanations + * The explanations of the Model's + * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. + * It has the same number of elements as + * [instances][google.cloud.aiplatform.v1.ExplainRequest.instances] to be + * explained. + * @type string $deployed_model_id + * ID of the Endpoint's DeployedModel that served this explanation. + * @type array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $predictions + * The predictions that are the output of the predictions call. + * Same as + * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PredictionService::initOnce(); + parent::__construct($data); + } + + /** + * The explanations of the Model's + * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. + * It has the same number of elements as + * [instances][google.cloud.aiplatform.v1.ExplainRequest.instances] to be + * explained. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Explanation explanations = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExplanations() + { + return $this->explanations; + } + + /** + * The explanations of the Model's + * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. + * It has the same number of elements as + * [instances][google.cloud.aiplatform.v1.ExplainRequest.instances] to be + * explained. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Explanation explanations = 1; + * @param array<\Google\Cloud\AIPlatform\V1\Explanation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExplanations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\Explanation::class); + $this->explanations = $arr; + + return $this; + } + + /** + * ID of the Endpoint's DeployedModel that served this explanation. + * + * Generated from protobuf field string deployed_model_id = 2; + * @return string + */ + public function getDeployedModelId() + { + return $this->deployed_model_id; + } + + /** + * ID of the Endpoint's DeployedModel that served this explanation. + * + * Generated from protobuf field string deployed_model_id = 2; + * @param string $var + * @return $this + */ + public function setDeployedModelId($var) + { + GPBUtil::checkString($var, True); + $this->deployed_model_id = $var; + + return $this; + } + + /** + * The predictions that are the output of the predictions call. + * Same as + * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. + * + * Generated from protobuf field repeated .google.protobuf.Value predictions = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPredictions() + { + return $this->predictions; + } + + /** + * The predictions that are the output of the predictions call. + * Same as + * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. + * + * Generated from protobuf field repeated .google.protobuf.Value predictions = 3; + * @param array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPredictions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); + $this->predictions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Explanation.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Explanation.php new file mode 100644 index 000000000000..0b7c76e9ec4b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Explanation.php @@ -0,0 +1,176 @@ +google.cloud.aiplatform.v1.Explanation + */ +class Explanation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Feature attributions grouped by predicted outputs. + * For Models that predict only one output, such as regression Models that + * predict only one score, there is only one attibution that explains the + * predicted output. For Models that predict multiple outputs, such as + * multiclass Models that predict multiple classes, each element explains one + * specific item. + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * can be used to identify which output this attribution is explaining. + * If users set + * [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], + * the attributions are sorted by + * [instance_output_value][Attributions.instance_output_value] in descending + * order. If + * [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] + * is specified, the attributions are stored by + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * in the same order as they appear in the output_indices. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Attribution attributions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $attributions; + /** + * Output only. List of the nearest neighbors for example-based explanations. + * For models deployed with the examples explanations feature enabled, the + * attributions field is empty and instead the neighbors field is populated. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $neighbors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\Attribution>|\Google\Protobuf\Internal\RepeatedField $attributions + * Output only. Feature attributions grouped by predicted outputs. + * For Models that predict only one output, such as regression Models that + * predict only one score, there is only one attibution that explains the + * predicted output. For Models that predict multiple outputs, such as + * multiclass Models that predict multiple classes, each element explains one + * specific item. + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * can be used to identify which output this attribution is explaining. + * If users set + * [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], + * the attributions are sorted by + * [instance_output_value][Attributions.instance_output_value] in descending + * order. If + * [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] + * is specified, the attributions are stored by + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * in the same order as they appear in the output_indices. + * @type array<\Google\Cloud\AIPlatform\V1\Neighbor>|\Google\Protobuf\Internal\RepeatedField $neighbors + * Output only. List of the nearest neighbors for example-based explanations. + * For models deployed with the examples explanations feature enabled, the + * attributions field is empty and instead the neighbors field is populated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Feature attributions grouped by predicted outputs. + * For Models that predict only one output, such as regression Models that + * predict only one score, there is only one attibution that explains the + * predicted output. For Models that predict multiple outputs, such as + * multiclass Models that predict multiple classes, each element explains one + * specific item. + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * can be used to identify which output this attribution is explaining. + * If users set + * [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], + * the attributions are sorted by + * [instance_output_value][Attributions.instance_output_value] in descending + * order. If + * [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] + * is specified, the attributions are stored by + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * in the same order as they appear in the output_indices. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Attribution attributions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttributions() + { + return $this->attributions; + } + + /** + * Output only. Feature attributions grouped by predicted outputs. + * For Models that predict only one output, such as regression Models that + * predict only one score, there is only one attibution that explains the + * predicted output. For Models that predict multiple outputs, such as + * multiclass Models that predict multiple classes, each element explains one + * specific item. + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * can be used to identify which output this attribution is explaining. + * If users set + * [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], + * the attributions are sorted by + * [instance_output_value][Attributions.instance_output_value] in descending + * order. If + * [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] + * is specified, the attributions are stored by + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * in the same order as they appear in the output_indices. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Attribution attributions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\AIPlatform\V1\Attribution>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttributions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\Attribution::class); + $this->attributions = $arr; + + return $this; + } + + /** + * Output only. List of the nearest neighbors for example-based explanations. + * For models deployed with the examples explanations feature enabled, the + * attributions field is empty and instead the neighbors field is populated. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNeighbors() + { + return $this->neighbors; + } + + /** + * Output only. List of the nearest neighbors for example-based explanations. + * For models deployed with the examples explanations feature enabled, the + * attributions field is empty and instead the neighbors field is populated. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\AIPlatform\V1\Neighbor>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNeighbors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\Neighbor::class); + $this->neighbors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata.php new file mode 100644 index 000000000000..4fe06824724e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata.php @@ -0,0 +1,265 @@ +google.cloud.aiplatform.v1.ExplanationMetadata + */ +class ExplanationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Map from feature names to feature input metadata. Keys are the + * name of the features. Values are the specification of the feature. + * An empty InputMetadata is valid. It describes a text feature which has the + * name specified as the key in + * [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The baseline of the empty feature is chosen by Vertex AI. + * For Vertex AI-provided Tensorflow images, the key can be any friendly + * name of the feature. Once specified, + * [featureAttributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + * are keyed by this key (if not grouped with another feature). + * For custom images, the key must match with the key in + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances]. + * + * Generated from protobuf field map inputs = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $inputs; + /** + * Required. Map from output names to output metadata. + * For Vertex AI-provided Tensorflow images, keys can be any user defined + * string that consists of any UTF-8 characters. + * For custom images, keys are the name of the output field in the prediction + * to be explained. + * Currently only one key is allowed. + * + * Generated from protobuf field map outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $outputs; + /** + * Points to a YAML file stored on Google Cloud Storage describing the format + * of the [feature + * attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML tabular Models always have this field populated by Vertex AI. + * Note: The URI given on output may be different, including the URI scheme, + * than the one given on input. The output URI will point to a location where + * the user only has a read access. + * + * Generated from protobuf field string feature_attributions_schema_uri = 3; + */ + protected $feature_attributions_schema_uri = ''; + /** + * Name of the source to generate embeddings for example based explanations. + * + * Generated from protobuf field string latent_space_source = 5; + */ + protected $latent_space_source = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $inputs + * Required. Map from feature names to feature input metadata. Keys are the + * name of the features. Values are the specification of the feature. + * An empty InputMetadata is valid. It describes a text feature which has the + * name specified as the key in + * [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The baseline of the empty feature is chosen by Vertex AI. + * For Vertex AI-provided Tensorflow images, the key can be any friendly + * name of the feature. Once specified, + * [featureAttributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + * are keyed by this key (if not grouped with another feature). + * For custom images, the key must match with the key in + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances]. + * @type array|\Google\Protobuf\Internal\MapField $outputs + * Required. Map from output names to output metadata. + * For Vertex AI-provided Tensorflow images, keys can be any user defined + * string that consists of any UTF-8 characters. + * For custom images, keys are the name of the output field in the prediction + * to be explained. + * Currently only one key is allowed. + * @type string $feature_attributions_schema_uri + * Points to a YAML file stored on Google Cloud Storage describing the format + * of the [feature + * attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML tabular Models always have this field populated by Vertex AI. + * Note: The URI given on output may be different, including the URI scheme, + * than the one given on input. The output URI will point to a location where + * the user only has a read access. + * @type string $latent_space_source + * Name of the source to generate embeddings for example based explanations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ExplanationMetadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. Map from feature names to feature input metadata. Keys are the + * name of the features. Values are the specification of the feature. + * An empty InputMetadata is valid. It describes a text feature which has the + * name specified as the key in + * [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The baseline of the empty feature is chosen by Vertex AI. + * For Vertex AI-provided Tensorflow images, the key can be any friendly + * name of the feature. Once specified, + * [featureAttributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + * are keyed by this key (if not grouped with another feature). + * For custom images, the key must match with the key in + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances]. + * + * Generated from protobuf field map inputs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getInputs() + { + return $this->inputs; + } + + /** + * Required. Map from feature names to feature input metadata. Keys are the + * name of the features. Values are the specification of the feature. + * An empty InputMetadata is valid. It describes a text feature which has the + * name specified as the key in + * [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * The baseline of the empty feature is chosen by Vertex AI. + * For Vertex AI-provided Tensorflow images, the key can be any friendly + * name of the feature. Once specified, + * [featureAttributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + * are keyed by this key (if not grouped with another feature). + * For custom images, the key must match with the key in + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances]. + * + * Generated from protobuf field map inputs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setInputs($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata::class); + $this->inputs = $arr; + + return $this; + } + + /** + * Required. Map from output names to output metadata. + * For Vertex AI-provided Tensorflow images, keys can be any user defined + * string that consists of any UTF-8 characters. + * For custom images, keys are the name of the output field in the prediction + * to be explained. + * Currently only one key is allowed. + * + * Generated from protobuf field map outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getOutputs() + { + return $this->outputs; + } + + /** + * Required. Map from output names to output metadata. + * For Vertex AI-provided Tensorflow images, keys can be any user defined + * string that consists of any UTF-8 characters. + * For custom images, keys are the name of the output field in the prediction + * to be explained. + * Currently only one key is allowed. + * + * Generated from protobuf field map outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setOutputs($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ExplanationMetadata\OutputMetadata::class); + $this->outputs = $arr; + + return $this; + } + + /** + * Points to a YAML file stored on Google Cloud Storage describing the format + * of the [feature + * attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML tabular Models always have this field populated by Vertex AI. + * Note: The URI given on output may be different, including the URI scheme, + * than the one given on input. The output URI will point to a location where + * the user only has a read access. + * + * Generated from protobuf field string feature_attributions_schema_uri = 3; + * @return string + */ + public function getFeatureAttributionsSchemaUri() + { + return $this->feature_attributions_schema_uri; + } + + /** + * Points to a YAML file stored on Google Cloud Storage describing the format + * of the [feature + * attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. + * The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * AutoML tabular Models always have this field populated by Vertex AI. + * Note: The URI given on output may be different, including the URI scheme, + * than the one given on input. The output URI will point to a location where + * the user only has a read access. + * + * Generated from protobuf field string feature_attributions_schema_uri = 3; + * @param string $var + * @return $this + */ + public function setFeatureAttributionsSchemaUri($var) + { + GPBUtil::checkString($var, True); + $this->feature_attributions_schema_uri = $var; + + return $this; + } + + /** + * Name of the source to generate embeddings for example based explanations. + * + * Generated from protobuf field string latent_space_source = 5; + * @return string + */ + public function getLatentSpaceSource() + { + return $this->latent_space_source; + } + + /** + * Name of the source to generate embeddings for example based explanations. + * + * Generated from protobuf field string latent_space_source = 5; + * @param string $var + * @return $this + */ + public function setLatentSpaceSource($var) + { + GPBUtil::checkString($var, True); + $this->latent_space_source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata.php new file mode 100644 index 000000000000..7ffdb548a91e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata.php @@ -0,0 +1,636 @@ +google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata + */ +class InputMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Baseline inputs for this feature. + * If no baseline is specified, Vertex AI chooses the baseline for this + * feature. If multiple baselines are specified, Vertex AI returns the + * average attributions across them in + * [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. + * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape + * of each baseline must match the shape of the input tensor. If a scalar is + * provided, we broadcast to the same shape as the input tensor. + * For custom images, the element of the baselines must be in the same + * format as the feature's input in the + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances][]. The + * schema of any single instance may be specified via Endpoint's + * DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * + * Generated from protobuf field repeated .google.protobuf.Value input_baselines = 1; + */ + private $input_baselines; + /** + * Name of the input tensor for this feature. Required and is only + * applicable to Vertex AI-provided images for Tensorflow. + * + * Generated from protobuf field string input_tensor_name = 2; + */ + protected $input_tensor_name = ''; + /** + * Defines how the feature is encoded into the input tensor. Defaults to + * IDENTITY. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding encoding = 3; + */ + protected $encoding = 0; + /** + * Modality of the feature. Valid values are: numeric, image. Defaults to + * numeric. + * + * Generated from protobuf field string modality = 4; + */ + protected $modality = ''; + /** + * The domain details of the input feature value. Like min/max, original + * mean or standard deviation if normalized. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.FeatureValueDomain feature_value_domain = 5; + */ + protected $feature_value_domain = null; + /** + * Specifies the index of the values of the input tensor. + * Required when the input tensor is a sparse representation. Refer to + * Tensorflow documentation for more details: + * https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor. + * + * Generated from protobuf field string indices_tensor_name = 6; + */ + protected $indices_tensor_name = ''; + /** + * Specifies the shape of the values of the input if the input is a sparse + * representation. Refer to Tensorflow documentation for more details: + * https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor. + * + * Generated from protobuf field string dense_shape_tensor_name = 7; + */ + protected $dense_shape_tensor_name = ''; + /** + * A list of feature names for each index in the input tensor. + * Required when the input + * [InputMetadata.encoding][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoding] + * is BAG_OF_FEATURES, BAG_OF_FEATURES_SPARSE, INDICATOR. + * + * Generated from protobuf field repeated string index_feature_mapping = 8; + */ + private $index_feature_mapping; + /** + * Encoded tensor is a transformation of the input tensor. Must be provided + * if choosing + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution] + * or [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution] + * and the input tensor is not differentiable. + * An encoded tensor is generated if the input tensor is encoded by a lookup + * table. + * + * Generated from protobuf field string encoded_tensor_name = 9; + */ + protected $encoded_tensor_name = ''; + /** + * A list of baselines for the encoded tensor. + * The shape of each baseline should match the shape of the encoded tensor. + * If a scalar is provided, Vertex AI broadcasts to the same shape as the + * encoded tensor. + * + * Generated from protobuf field repeated .google.protobuf.Value encoded_baselines = 10; + */ + private $encoded_baselines; + /** + * Visualization configurations for image explanation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization visualization = 11; + */ + protected $visualization = null; + /** + * Name of the group that the input belongs to. Features with the same group + * name will be treated as one feature when computing attributions. Features + * grouped together can have different shapes in value. If provided, there + * will be one single attribution generated in + * [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions], + * keyed by the group name. + * + * Generated from protobuf field string group_name = 12; + */ + protected $group_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $input_baselines + * Baseline inputs for this feature. + * If no baseline is specified, Vertex AI chooses the baseline for this + * feature. If multiple baselines are specified, Vertex AI returns the + * average attributions across them in + * [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. + * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape + * of each baseline must match the shape of the input tensor. If a scalar is + * provided, we broadcast to the same shape as the input tensor. + * For custom images, the element of the baselines must be in the same + * format as the feature's input in the + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances][]. The + * schema of any single instance may be specified via Endpoint's + * DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * @type string $input_tensor_name + * Name of the input tensor for this feature. Required and is only + * applicable to Vertex AI-provided images for Tensorflow. + * @type int $encoding + * Defines how the feature is encoded into the input tensor. Defaults to + * IDENTITY. + * @type string $modality + * Modality of the feature. Valid values are: numeric, image. Defaults to + * numeric. + * @type \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\FeatureValueDomain $feature_value_domain + * The domain details of the input feature value. Like min/max, original + * mean or standard deviation if normalized. + * @type string $indices_tensor_name + * Specifies the index of the values of the input tensor. + * Required when the input tensor is a sparse representation. Refer to + * Tensorflow documentation for more details: + * https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor. + * @type string $dense_shape_tensor_name + * Specifies the shape of the values of the input if the input is a sparse + * representation. Refer to Tensorflow documentation for more details: + * https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor. + * @type array|\Google\Protobuf\Internal\RepeatedField $index_feature_mapping + * A list of feature names for each index in the input tensor. + * Required when the input + * [InputMetadata.encoding][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoding] + * is BAG_OF_FEATURES, BAG_OF_FEATURES_SPARSE, INDICATOR. + * @type string $encoded_tensor_name + * Encoded tensor is a transformation of the input tensor. Must be provided + * if choosing + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution] + * or [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution] + * and the input tensor is not differentiable. + * An encoded tensor is generated if the input tensor is encoded by a lookup + * table. + * @type array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $encoded_baselines + * A list of baselines for the encoded tensor. + * The shape of each baseline should match the shape of the encoded tensor. + * If a scalar is provided, Vertex AI broadcasts to the same shape as the + * encoded tensor. + * @type \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\Visualization $visualization + * Visualization configurations for image explanation. + * @type string $group_name + * Name of the group that the input belongs to. Features with the same group + * name will be treated as one feature when computing attributions. Features + * grouped together can have different shapes in value. If provided, there + * will be one single attribution generated in + * [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions], + * keyed by the group name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ExplanationMetadata::initOnce(); + parent::__construct($data); + } + + /** + * Baseline inputs for this feature. + * If no baseline is specified, Vertex AI chooses the baseline for this + * feature. If multiple baselines are specified, Vertex AI returns the + * average attributions across them in + * [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. + * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape + * of each baseline must match the shape of the input tensor. If a scalar is + * provided, we broadcast to the same shape as the input tensor. + * For custom images, the element of the baselines must be in the same + * format as the feature's input in the + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances][]. The + * schema of any single instance may be specified via Endpoint's + * DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * + * Generated from protobuf field repeated .google.protobuf.Value input_baselines = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInputBaselines() + { + return $this->input_baselines; + } + + /** + * Baseline inputs for this feature. + * If no baseline is specified, Vertex AI chooses the baseline for this + * feature. If multiple baselines are specified, Vertex AI returns the + * average attributions across them in + * [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. + * For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape + * of each baseline must match the shape of the input tensor. If a scalar is + * provided, we broadcast to the same shape as the input tensor. + * For custom images, the element of the baselines must be in the same + * format as the feature's input in the + * [instance][google.cloud.aiplatform.v1.ExplainRequest.instances][]. The + * schema of any single instance may be specified via Endpoint's + * DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + * [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + * [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + * + * Generated from protobuf field repeated .google.protobuf.Value input_baselines = 1; + * @param array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInputBaselines($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); + $this->input_baselines = $arr; + + return $this; + } + + /** + * Name of the input tensor for this feature. Required and is only + * applicable to Vertex AI-provided images for Tensorflow. + * + * Generated from protobuf field string input_tensor_name = 2; + * @return string + */ + public function getInputTensorName() + { + return $this->input_tensor_name; + } + + /** + * Name of the input tensor for this feature. Required and is only + * applicable to Vertex AI-provided images for Tensorflow. + * + * Generated from protobuf field string input_tensor_name = 2; + * @param string $var + * @return $this + */ + public function setInputTensorName($var) + { + GPBUtil::checkString($var, True); + $this->input_tensor_name = $var; + + return $this; + } + + /** + * Defines how the feature is encoded into the input tensor. Defaults to + * IDENTITY. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding encoding = 3; + * @return int + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Defines how the feature is encoded into the input tensor. Defaults to + * IDENTITY. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding encoding = 3; + * @param int $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\Encoding::class); + $this->encoding = $var; + + return $this; + } + + /** + * Modality of the feature. Valid values are: numeric, image. Defaults to + * numeric. + * + * Generated from protobuf field string modality = 4; + * @return string + */ + public function getModality() + { + return $this->modality; + } + + /** + * Modality of the feature. Valid values are: numeric, image. Defaults to + * numeric. + * + * Generated from protobuf field string modality = 4; + * @param string $var + * @return $this + */ + public function setModality($var) + { + GPBUtil::checkString($var, True); + $this->modality = $var; + + return $this; + } + + /** + * The domain details of the input feature value. Like min/max, original + * mean or standard deviation if normalized. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.FeatureValueDomain feature_value_domain = 5; + * @return \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\FeatureValueDomain|null + */ + public function getFeatureValueDomain() + { + return $this->feature_value_domain; + } + + public function hasFeatureValueDomain() + { + return isset($this->feature_value_domain); + } + + public function clearFeatureValueDomain() + { + unset($this->feature_value_domain); + } + + /** + * The domain details of the input feature value. Like min/max, original + * mean or standard deviation if normalized. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.FeatureValueDomain feature_value_domain = 5; + * @param \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\FeatureValueDomain $var + * @return $this + */ + public function setFeatureValueDomain($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\FeatureValueDomain::class); + $this->feature_value_domain = $var; + + return $this; + } + + /** + * Specifies the index of the values of the input tensor. + * Required when the input tensor is a sparse representation. Refer to + * Tensorflow documentation for more details: + * https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor. + * + * Generated from protobuf field string indices_tensor_name = 6; + * @return string + */ + public function getIndicesTensorName() + { + return $this->indices_tensor_name; + } + + /** + * Specifies the index of the values of the input tensor. + * Required when the input tensor is a sparse representation. Refer to + * Tensorflow documentation for more details: + * https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor. + * + * Generated from protobuf field string indices_tensor_name = 6; + * @param string $var + * @return $this + */ + public function setIndicesTensorName($var) + { + GPBUtil::checkString($var, True); + $this->indices_tensor_name = $var; + + return $this; + } + + /** + * Specifies the shape of the values of the input if the input is a sparse + * representation. Refer to Tensorflow documentation for more details: + * https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor. + * + * Generated from protobuf field string dense_shape_tensor_name = 7; + * @return string + */ + public function getDenseShapeTensorName() + { + return $this->dense_shape_tensor_name; + } + + /** + * Specifies the shape of the values of the input if the input is a sparse + * representation. Refer to Tensorflow documentation for more details: + * https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor. + * + * Generated from protobuf field string dense_shape_tensor_name = 7; + * @param string $var + * @return $this + */ + public function setDenseShapeTensorName($var) + { + GPBUtil::checkString($var, True); + $this->dense_shape_tensor_name = $var; + + return $this; + } + + /** + * A list of feature names for each index in the input tensor. + * Required when the input + * [InputMetadata.encoding][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoding] + * is BAG_OF_FEATURES, BAG_OF_FEATURES_SPARSE, INDICATOR. + * + * Generated from protobuf field repeated string index_feature_mapping = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIndexFeatureMapping() + { + return $this->index_feature_mapping; + } + + /** + * A list of feature names for each index in the input tensor. + * Required when the input + * [InputMetadata.encoding][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoding] + * is BAG_OF_FEATURES, BAG_OF_FEATURES_SPARSE, INDICATOR. + * + * Generated from protobuf field repeated string index_feature_mapping = 8; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIndexFeatureMapping($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->index_feature_mapping = $arr; + + return $this; + } + + /** + * Encoded tensor is a transformation of the input tensor. Must be provided + * if choosing + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution] + * or [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution] + * and the input tensor is not differentiable. + * An encoded tensor is generated if the input tensor is encoded by a lookup + * table. + * + * Generated from protobuf field string encoded_tensor_name = 9; + * @return string + */ + public function getEncodedTensorName() + { + return $this->encoded_tensor_name; + } + + /** + * Encoded tensor is a transformation of the input tensor. Must be provided + * if choosing + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution] + * or [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution] + * and the input tensor is not differentiable. + * An encoded tensor is generated if the input tensor is encoded by a lookup + * table. + * + * Generated from protobuf field string encoded_tensor_name = 9; + * @param string $var + * @return $this + */ + public function setEncodedTensorName($var) + { + GPBUtil::checkString($var, True); + $this->encoded_tensor_name = $var; + + return $this; + } + + /** + * A list of baselines for the encoded tensor. + * The shape of each baseline should match the shape of the encoded tensor. + * If a scalar is provided, Vertex AI broadcasts to the same shape as the + * encoded tensor. + * + * Generated from protobuf field repeated .google.protobuf.Value encoded_baselines = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEncodedBaselines() + { + return $this->encoded_baselines; + } + + /** + * A list of baselines for the encoded tensor. + * The shape of each baseline should match the shape of the encoded tensor. + * If a scalar is provided, Vertex AI broadcasts to the same shape as the + * encoded tensor. + * + * Generated from protobuf field repeated .google.protobuf.Value encoded_baselines = 10; + * @param array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEncodedBaselines($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); + $this->encoded_baselines = $arr; + + return $this; + } + + /** + * Visualization configurations for image explanation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization visualization = 11; + * @return \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\Visualization|null + */ + public function getVisualization() + { + return $this->visualization; + } + + public function hasVisualization() + { + return isset($this->visualization); + } + + public function clearVisualization() + { + unset($this->visualization); + } + + /** + * Visualization configurations for image explanation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization visualization = 11; + * @param \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\Visualization $var + * @return $this + */ + public function setVisualization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\Visualization::class); + $this->visualization = $var; + + return $this; + } + + /** + * Name of the group that the input belongs to. Features with the same group + * name will be treated as one feature when computing attributions. Features + * grouped together can have different shapes in value. If provided, there + * will be one single attribution generated in + * [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions], + * keyed by the group name. + * + * Generated from protobuf field string group_name = 12; + * @return string + */ + public function getGroupName() + { + return $this->group_name; + } + + /** + * Name of the group that the input belongs to. Features with the same group + * name will be treated as one feature when computing attributions. Features + * grouped together can have different shapes in value. If provided, there + * will be one single attribution generated in + * [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions], + * keyed by the group name. + * + * Generated from protobuf field string group_name = 12; + * @param string $var + * @return $this + */ + public function setGroupName($var) + { + GPBUtil::checkString($var, True); + $this->group_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InputMetadata::class, \Google\Cloud\AIPlatform\V1\ExplanationMetadata_InputMetadata::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Encoding.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Encoding.php new file mode 100644 index 000000000000..93ea792c4a57 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Encoding.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding + */ +class Encoding +{ + /** + * Default value. This is the same as IDENTITY. + * + * Generated from protobuf enum ENCODING_UNSPECIFIED = 0; + */ + const ENCODING_UNSPECIFIED = 0; + /** + * The tensor represents one feature. + * + * Generated from protobuf enum IDENTITY = 1; + */ + const IDENTITY = 1; + /** + * The tensor represents a bag of features where each index maps to + * a feature. + * [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping] + * must be provided for this encoding. For example: + * ``` + * input = [27, 6.0, 150] + * index_feature_mapping = ["age", "height", "weight"] + * ``` + * + * Generated from protobuf enum BAG_OF_FEATURES = 2; + */ + const BAG_OF_FEATURES = 2; + /** + * The tensor represents a bag of features where each index maps to a + * feature. Zero values in the tensor indicates feature being + * non-existent. + * [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping] + * must be provided for this encoding. For example: + * ``` + * input = [2, 0, 5, 0, 1] + * index_feature_mapping = ["a", "b", "c", "d", "e"] + * ``` + * + * Generated from protobuf enum BAG_OF_FEATURES_SPARSE = 3; + */ + const BAG_OF_FEATURES_SPARSE = 3; + /** + * The tensor is a list of binaries representing whether a feature exists + * or not (1 indicates existence). + * [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping] + * must be provided for this encoding. For example: + * ``` + * input = [1, 0, 1, 0, 1] + * index_feature_mapping = ["a", "b", "c", "d", "e"] + * ``` + * + * Generated from protobuf enum INDICATOR = 4; + */ + const INDICATOR = 4; + /** + * The tensor is encoded into a 1-dimensional array represented by an + * encoded tensor. + * [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoded_tensor_name] + * must be provided for this encoding. For example: + * ``` + * input = ["This", "is", "a", "test", "."] + * encoded = [0.1, 0.2, 0.3, 0.4, 0.5] + * ``` + * + * Generated from protobuf enum COMBINED_EMBEDDING = 5; + */ + const COMBINED_EMBEDDING = 5; + /** + * Select this encoding when the input tensor is encoded into a + * 2-dimensional array represented by an encoded tensor. + * [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoded_tensor_name] + * must be provided for this encoding. The first dimension of the encoded + * tensor's shape is the same as the input tensor's shape. For example: + * ``` + * input = ["This", "is", "a", "test", "."] + * encoded = [[0.1, 0.2, 0.3, 0.4, 0.5], + * [0.2, 0.1, 0.4, 0.3, 0.5], + * [0.5, 0.1, 0.3, 0.5, 0.4], + * [0.5, 0.3, 0.1, 0.2, 0.4], + * [0.4, 0.3, 0.2, 0.5, 0.1]] + * ``` + * + * Generated from protobuf enum CONCAT_EMBEDDING = 6; + */ + const CONCAT_EMBEDDING = 6; + + private static $valueToName = [ + self::ENCODING_UNSPECIFIED => 'ENCODING_UNSPECIFIED', + self::IDENTITY => 'IDENTITY', + self::BAG_OF_FEATURES => 'BAG_OF_FEATURES', + self::BAG_OF_FEATURES_SPARSE => 'BAG_OF_FEATURES_SPARSE', + self::INDICATOR => 'INDICATOR', + self::COMBINED_EMBEDDING => 'COMBINED_EMBEDDING', + self::CONCAT_EMBEDDING => 'CONCAT_EMBEDDING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Encoding::class, \Google\Cloud\AIPlatform\V1\ExplanationMetadata_InputMetadata_Encoding::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/FeatureValueDomain.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/FeatureValueDomain.php new file mode 100644 index 000000000000..2c727cadfa08 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/FeatureValueDomain.php @@ -0,0 +1,195 @@ +google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.FeatureValueDomain + */ +class FeatureValueDomain extends \Google\Protobuf\Internal\Message +{ + /** + * The minimum permissible value for this feature. + * + * Generated from protobuf field float min_value = 1; + */ + protected $min_value = 0.0; + /** + * The maximum permissible value for this feature. + * + * Generated from protobuf field float max_value = 2; + */ + protected $max_value = 0.0; + /** + * If this input feature has been normalized to a mean value of 0, + * the original_mean specifies the mean value of the domain prior to + * normalization. + * + * Generated from protobuf field float original_mean = 3; + */ + protected $original_mean = 0.0; + /** + * If this input feature has been normalized to a standard deviation of + * 1.0, the original_stddev specifies the standard deviation of the domain + * prior to normalization. + * + * Generated from protobuf field float original_stddev = 4; + */ + protected $original_stddev = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $min_value + * The minimum permissible value for this feature. + * @type float $max_value + * The maximum permissible value for this feature. + * @type float $original_mean + * If this input feature has been normalized to a mean value of 0, + * the original_mean specifies the mean value of the domain prior to + * normalization. + * @type float $original_stddev + * If this input feature has been normalized to a standard deviation of + * 1.0, the original_stddev specifies the standard deviation of the domain + * prior to normalization. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ExplanationMetadata::initOnce(); + parent::__construct($data); + } + + /** + * The minimum permissible value for this feature. + * + * Generated from protobuf field float min_value = 1; + * @return float + */ + public function getMinValue() + { + return $this->min_value; + } + + /** + * The minimum permissible value for this feature. + * + * Generated from protobuf field float min_value = 1; + * @param float $var + * @return $this + */ + public function setMinValue($var) + { + GPBUtil::checkFloat($var); + $this->min_value = $var; + + return $this; + } + + /** + * The maximum permissible value for this feature. + * + * Generated from protobuf field float max_value = 2; + * @return float + */ + public function getMaxValue() + { + return $this->max_value; + } + + /** + * The maximum permissible value for this feature. + * + * Generated from protobuf field float max_value = 2; + * @param float $var + * @return $this + */ + public function setMaxValue($var) + { + GPBUtil::checkFloat($var); + $this->max_value = $var; + + return $this; + } + + /** + * If this input feature has been normalized to a mean value of 0, + * the original_mean specifies the mean value of the domain prior to + * normalization. + * + * Generated from protobuf field float original_mean = 3; + * @return float + */ + public function getOriginalMean() + { + return $this->original_mean; + } + + /** + * If this input feature has been normalized to a mean value of 0, + * the original_mean specifies the mean value of the domain prior to + * normalization. + * + * Generated from protobuf field float original_mean = 3; + * @param float $var + * @return $this + */ + public function setOriginalMean($var) + { + GPBUtil::checkFloat($var); + $this->original_mean = $var; + + return $this; + } + + /** + * If this input feature has been normalized to a standard deviation of + * 1.0, the original_stddev specifies the standard deviation of the domain + * prior to normalization. + * + * Generated from protobuf field float original_stddev = 4; + * @return float + */ + public function getOriginalStddev() + { + return $this->original_stddev; + } + + /** + * If this input feature has been normalized to a standard deviation of + * 1.0, the original_stddev specifies the standard deviation of the domain + * prior to normalization. + * + * Generated from protobuf field float original_stddev = 4; + * @param float $var + * @return $this + */ + public function setOriginalStddev($var) + { + GPBUtil::checkFloat($var); + $this->original_stddev = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FeatureValueDomain::class, \Google\Cloud\AIPlatform\V1\ExplanationMetadata_InputMetadata_FeatureValueDomain::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization.php new file mode 100644 index 000000000000..d64573ba6675 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization.php @@ -0,0 +1,324 @@ +google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization + */ +class Visualization extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the image visualization. Only applicable to + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution]. + * OUTLINES shows regions of attribution, while PIXELS shows per-pixel + * attribution. Defaults to OUTLINES. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type type = 1; + */ + protected $type = 0; + /** + * Whether to only highlight pixels with positive contributions, negative + * or both. Defaults to POSITIVE. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2; + */ + protected $polarity = 0; + /** + * The color scheme used for the highlighted areas. + * Defaults to PINK_GREEN for + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], + * which shows positive attributions in green and negative in pink. + * Defaults to VIRIDIS for + * [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], + * which highlights the most influential regions in yellow and the least + * influential in blue. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.ColorMap color_map = 3; + */ + protected $color_map = 0; + /** + * Excludes attributions above the specified percentile from the + * highlighted areas. Using the clip_percent_upperbound and + * clip_percent_lowerbound together can be useful for filtering out noise + * and making it easier to see areas of strong attribution. Defaults to + * 99.9. + * + * Generated from protobuf field float clip_percent_upperbound = 4; + */ + protected $clip_percent_upperbound = 0.0; + /** + * Excludes attributions below the specified percentile, from the + * highlighted areas. Defaults to 62. + * + * Generated from protobuf field float clip_percent_lowerbound = 5; + */ + protected $clip_percent_lowerbound = 0.0; + /** + * How the original image is displayed in the visualization. + * Adjusting the overlay can help increase visual clarity if the original + * image makes it difficult to view the visualization. Defaults to NONE. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.OverlayType overlay_type = 6; + */ + protected $overlay_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Type of the image visualization. Only applicable to + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution]. + * OUTLINES shows regions of attribution, while PIXELS shows per-pixel + * attribution. Defaults to OUTLINES. + * @type int $polarity + * Whether to only highlight pixels with positive contributions, negative + * or both. Defaults to POSITIVE. + * @type int $color_map + * The color scheme used for the highlighted areas. + * Defaults to PINK_GREEN for + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], + * which shows positive attributions in green and negative in pink. + * Defaults to VIRIDIS for + * [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], + * which highlights the most influential regions in yellow and the least + * influential in blue. + * @type float $clip_percent_upperbound + * Excludes attributions above the specified percentile from the + * highlighted areas. Using the clip_percent_upperbound and + * clip_percent_lowerbound together can be useful for filtering out noise + * and making it easier to see areas of strong attribution. Defaults to + * 99.9. + * @type float $clip_percent_lowerbound + * Excludes attributions below the specified percentile, from the + * highlighted areas. Defaults to 62. + * @type int $overlay_type + * How the original image is displayed in the visualization. + * Adjusting the overlay can help increase visual clarity if the original + * image makes it difficult to view the visualization. Defaults to NONE. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ExplanationMetadata::initOnce(); + parent::__construct($data); + } + + /** + * Type of the image visualization. Only applicable to + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution]. + * OUTLINES shows regions of attribution, while PIXELS shows per-pixel + * attribution. Defaults to OUTLINES. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of the image visualization. Only applicable to + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution]. + * OUTLINES shows regions of attribution, while PIXELS shows per-pixel + * attribution. Defaults to OUTLINES. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\Visualization\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Whether to only highlight pixels with positive contributions, negative + * or both. Defaults to POSITIVE. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2; + * @return int + */ + public function getPolarity() + { + return $this->polarity; + } + + /** + * Whether to only highlight pixels with positive contributions, negative + * or both. Defaults to POSITIVE. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2; + * @param int $var + * @return $this + */ + public function setPolarity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\Visualization\Polarity::class); + $this->polarity = $var; + + return $this; + } + + /** + * The color scheme used for the highlighted areas. + * Defaults to PINK_GREEN for + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], + * which shows positive attributions in green and negative in pink. + * Defaults to VIRIDIS for + * [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], + * which highlights the most influential regions in yellow and the least + * influential in blue. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.ColorMap color_map = 3; + * @return int + */ + public function getColorMap() + { + return $this->color_map; + } + + /** + * The color scheme used for the highlighted areas. + * Defaults to PINK_GREEN for + * [Integrated Gradients + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], + * which shows positive attributions in green and negative in pink. + * Defaults to VIRIDIS for + * [XRAI + * attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], + * which highlights the most influential regions in yellow and the least + * influential in blue. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.ColorMap color_map = 3; + * @param int $var + * @return $this + */ + public function setColorMap($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\Visualization\ColorMap::class); + $this->color_map = $var; + + return $this; + } + + /** + * Excludes attributions above the specified percentile from the + * highlighted areas. Using the clip_percent_upperbound and + * clip_percent_lowerbound together can be useful for filtering out noise + * and making it easier to see areas of strong attribution. Defaults to + * 99.9. + * + * Generated from protobuf field float clip_percent_upperbound = 4; + * @return float + */ + public function getClipPercentUpperbound() + { + return $this->clip_percent_upperbound; + } + + /** + * Excludes attributions above the specified percentile from the + * highlighted areas. Using the clip_percent_upperbound and + * clip_percent_lowerbound together can be useful for filtering out noise + * and making it easier to see areas of strong attribution. Defaults to + * 99.9. + * + * Generated from protobuf field float clip_percent_upperbound = 4; + * @param float $var + * @return $this + */ + public function setClipPercentUpperbound($var) + { + GPBUtil::checkFloat($var); + $this->clip_percent_upperbound = $var; + + return $this; + } + + /** + * Excludes attributions below the specified percentile, from the + * highlighted areas. Defaults to 62. + * + * Generated from protobuf field float clip_percent_lowerbound = 5; + * @return float + */ + public function getClipPercentLowerbound() + { + return $this->clip_percent_lowerbound; + } + + /** + * Excludes attributions below the specified percentile, from the + * highlighted areas. Defaults to 62. + * + * Generated from protobuf field float clip_percent_lowerbound = 5; + * @param float $var + * @return $this + */ + public function setClipPercentLowerbound($var) + { + GPBUtil::checkFloat($var); + $this->clip_percent_lowerbound = $var; + + return $this; + } + + /** + * How the original image is displayed in the visualization. + * Adjusting the overlay can help increase visual clarity if the original + * image makes it difficult to view the visualization. Defaults to NONE. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.OverlayType overlay_type = 6; + * @return int + */ + public function getOverlayType() + { + return $this->overlay_type; + } + + /** + * How the original image is displayed in the visualization. + * Adjusting the overlay can help increase visual clarity if the original + * image makes it difficult to view the visualization. Defaults to NONE. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.OverlayType overlay_type = 6; + * @param int $var + * @return $this + */ + public function setOverlayType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\ExplanationMetadata\InputMetadata\Visualization\OverlayType::class); + $this->overlay_type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Visualization::class, \Google\Cloud\AIPlatform\V1\ExplanationMetadata_InputMetadata_Visualization::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/ColorMap.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/ColorMap.php new file mode 100644 index 000000000000..913b6cf9b630 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/ColorMap.php @@ -0,0 +1,94 @@ +google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.ColorMap + */ +class ColorMap +{ + /** + * Should not be used. + * + * Generated from protobuf enum COLOR_MAP_UNSPECIFIED = 0; + */ + const COLOR_MAP_UNSPECIFIED = 0; + /** + * Positive: green. Negative: pink. + * + * Generated from protobuf enum PINK_GREEN = 1; + */ + const PINK_GREEN = 1; + /** + * Viridis color map: A perceptually uniform color mapping which is + * easier to see by those with colorblindness and progresses from yellow + * to green to blue. Positive: yellow. Negative: blue. + * + * Generated from protobuf enum VIRIDIS = 2; + */ + const VIRIDIS = 2; + /** + * Positive: red. Negative: red. + * + * Generated from protobuf enum RED = 3; + */ + const RED = 3; + /** + * Positive: green. Negative: green. + * + * Generated from protobuf enum GREEN = 4; + */ + const GREEN = 4; + /** + * Positive: green. Negative: red. + * + * Generated from protobuf enum RED_GREEN = 6; + */ + const RED_GREEN = 6; + /** + * PiYG palette. + * + * Generated from protobuf enum PINK_WHITE_GREEN = 5; + */ + const PINK_WHITE_GREEN = 5; + + private static $valueToName = [ + self::COLOR_MAP_UNSPECIFIED => 'COLOR_MAP_UNSPECIFIED', + self::PINK_GREEN => 'PINK_GREEN', + self::VIRIDIS => 'VIRIDIS', + self::RED => 'RED', + self::GREEN => 'GREEN', + self::RED_GREEN => 'RED_GREEN', + self::PINK_WHITE_GREEN => 'PINK_WHITE_GREEN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ColorMap::class, \Google\Cloud\AIPlatform\V1\ExplanationMetadata_InputMetadata_Visualization_ColorMap::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/OverlayType.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/OverlayType.php new file mode 100644 index 000000000000..3e01b829207e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/OverlayType.php @@ -0,0 +1,80 @@ +google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.OverlayType + */ +class OverlayType +{ + /** + * Default value. This is the same as NONE. + * + * Generated from protobuf enum OVERLAY_TYPE_UNSPECIFIED = 0; + */ + const OVERLAY_TYPE_UNSPECIFIED = 0; + /** + * No overlay. + * + * Generated from protobuf enum NONE = 1; + */ + const NONE = 1; + /** + * The attributions are shown on top of the original image. + * + * Generated from protobuf enum ORIGINAL = 2; + */ + const ORIGINAL = 2; + /** + * The attributions are shown on top of grayscaled version of the + * original image. + * + * Generated from protobuf enum GRAYSCALE = 3; + */ + const GRAYSCALE = 3; + /** + * The attributions are used as a mask to reveal predictive parts of + * the image and hide the un-predictive parts. + * + * Generated from protobuf enum MASK_BLACK = 4; + */ + const MASK_BLACK = 4; + + private static $valueToName = [ + self::OVERLAY_TYPE_UNSPECIFIED => 'OVERLAY_TYPE_UNSPECIFIED', + self::NONE => 'NONE', + self::ORIGINAL => 'ORIGINAL', + self::GRAYSCALE => 'GRAYSCALE', + self::MASK_BLACK => 'MASK_BLACK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OverlayType::class, \Google\Cloud\AIPlatform\V1\ExplanationMetadata_InputMetadata_Visualization_OverlayType::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/Polarity.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/Polarity.php new file mode 100644 index 000000000000..f4383506a80c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/Polarity.php @@ -0,0 +1,74 @@ +google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Polarity + */ +class Polarity +{ + /** + * Default value. This is the same as POSITIVE. + * + * Generated from protobuf enum POLARITY_UNSPECIFIED = 0; + */ + const POLARITY_UNSPECIFIED = 0; + /** + * Highlights the pixels/outlines that were most influential to the + * model's prediction. + * + * Generated from protobuf enum POSITIVE = 1; + */ + const POSITIVE = 1; + /** + * Setting polarity to negative highlights areas that does not lead to + * the models's current prediction. + * + * Generated from protobuf enum NEGATIVE = 2; + */ + const NEGATIVE = 2; + /** + * Shows both positive and negative attributions. + * + * Generated from protobuf enum BOTH = 3; + */ + const BOTH = 3; + + private static $valueToName = [ + self::POLARITY_UNSPECIFIED => 'POLARITY_UNSPECIFIED', + self::POSITIVE => 'POSITIVE', + self::NEGATIVE => 'NEGATIVE', + self::BOTH => 'BOTH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Polarity::class, \Google\Cloud\AIPlatform\V1\ExplanationMetadata_InputMetadata_Visualization_Polarity::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/Type.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/Type.php new file mode 100644 index 000000000000..6b932a0a4282 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/InputMetadata/Visualization/Type.php @@ -0,0 +1,67 @@ +google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type + */ +class Type +{ + /** + * Should not be used. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Shows which pixel contributed to the image prediction. + * + * Generated from protobuf enum PIXELS = 1; + */ + const PIXELS = 1; + /** + * Shows which region contributed to the image prediction by outlining + * the region. + * + * Generated from protobuf enum OUTLINES = 2; + */ + const OUTLINES = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::PIXELS => 'PIXELS', + self::OUTLINES => 'OUTLINES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\AIPlatform\V1\ExplanationMetadata_InputMetadata_Visualization_Type::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/OutputMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/OutputMetadata.php new file mode 100644 index 000000000000..d7c203c5f865 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadata/OutputMetadata.php @@ -0,0 +1,197 @@ +google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata + */ +class OutputMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the output tensor. Required and is only applicable to Vertex + * AI provided images for Tensorflow. + * + * Generated from protobuf field string output_tensor_name = 3; + */ + protected $output_tensor_name = ''; + protected $display_name_mapping; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Value $index_display_name_mapping + * Static mapping between the index and display name. + * Use this if the outputs are a deterministic n-dimensional array, e.g. a + * list of scores of all the classes in a pre-defined order for a + * multi-classification Model. It's not feasible if the outputs are + * non-deterministic, e.g. the Model produces top-k classes or sort the + * outputs by their values. + * The shape of the value must be an n-dimensional array of strings. The + * number of dimensions must match that of the outputs to be explained. + * The + * [Attribution.output_display_name][google.cloud.aiplatform.v1.Attribution.output_display_name] + * is populated by locating in the mapping with + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * @type string $display_name_mapping_key + * Specify a field name in the prediction to look for the display name. + * Use this if the prediction contains the display names for the outputs. + * The display names in the prediction must have the same shape of the + * outputs, so that it can be located by + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * for a specific output. + * @type string $output_tensor_name + * Name of the output tensor. Required and is only applicable to Vertex + * AI provided images for Tensorflow. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ExplanationMetadata::initOnce(); + parent::__construct($data); + } + + /** + * Static mapping between the index and display name. + * Use this if the outputs are a deterministic n-dimensional array, e.g. a + * list of scores of all the classes in a pre-defined order for a + * multi-classification Model. It's not feasible if the outputs are + * non-deterministic, e.g. the Model produces top-k classes or sort the + * outputs by their values. + * The shape of the value must be an n-dimensional array of strings. The + * number of dimensions must match that of the outputs to be explained. + * The + * [Attribution.output_display_name][google.cloud.aiplatform.v1.Attribution.output_display_name] + * is populated by locating in the mapping with + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * + * Generated from protobuf field .google.protobuf.Value index_display_name_mapping = 1; + * @return \Google\Protobuf\Value|null + */ + public function getIndexDisplayNameMapping() + { + return $this->readOneof(1); + } + + public function hasIndexDisplayNameMapping() + { + return $this->hasOneof(1); + } + + /** + * Static mapping between the index and display name. + * Use this if the outputs are a deterministic n-dimensional array, e.g. a + * list of scores of all the classes in a pre-defined order for a + * multi-classification Model. It's not feasible if the outputs are + * non-deterministic, e.g. the Model produces top-k classes or sort the + * outputs by their values. + * The shape of the value must be an n-dimensional array of strings. The + * number of dimensions must match that of the outputs to be explained. + * The + * [Attribution.output_display_name][google.cloud.aiplatform.v1.Attribution.output_display_name] + * is populated by locating in the mapping with + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + * + * Generated from protobuf field .google.protobuf.Value index_display_name_mapping = 1; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setIndexDisplayNameMapping($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Specify a field name in the prediction to look for the display name. + * Use this if the prediction contains the display names for the outputs. + * The display names in the prediction must have the same shape of the + * outputs, so that it can be located by + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * for a specific output. + * + * Generated from protobuf field string display_name_mapping_key = 2; + * @return string + */ + public function getDisplayNameMappingKey() + { + return $this->readOneof(2); + } + + public function hasDisplayNameMappingKey() + { + return $this->hasOneof(2); + } + + /** + * Specify a field name in the prediction to look for the display name. + * Use this if the prediction contains the display names for the outputs. + * The display names in the prediction must have the same shape of the + * outputs, so that it can be located by + * [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * for a specific output. + * + * Generated from protobuf field string display_name_mapping_key = 2; + * @param string $var + * @return $this + */ + public function setDisplayNameMappingKey($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Name of the output tensor. Required and is only applicable to Vertex + * AI provided images for Tensorflow. + * + * Generated from protobuf field string output_tensor_name = 3; + * @return string + */ + public function getOutputTensorName() + { + return $this->output_tensor_name; + } + + /** + * Name of the output tensor. Required and is only applicable to Vertex + * AI provided images for Tensorflow. + * + * Generated from protobuf field string output_tensor_name = 3; + * @param string $var + * @return $this + */ + public function setOutputTensorName($var) + { + GPBUtil::checkString($var, True); + $this->output_tensor_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getDisplayNameMapping() + { + return $this->whichOneof("display_name_mapping"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OutputMetadata::class, \Google\Cloud\AIPlatform\V1\ExplanationMetadata_OutputMetadata::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadataOverride.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadataOverride.php new file mode 100644 index 000000000000..3529db4dc1c2 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadataOverride.php @@ -0,0 +1,89 @@ +google.cloud.aiplatform.v1.ExplanationMetadataOverride + */ +class ExplanationMetadataOverride extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Overrides the [input + * metadata][google.cloud.aiplatform.v1.ExplanationMetadata.inputs] of the + * features. The key is the name of the feature to be overridden. The keys + * specified here must exist in the input metadata to be overridden. If a + * feature is not specified here, the corresponding feature's input metadata + * is not overridden. + * + * Generated from protobuf field map inputs = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $inputs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $inputs + * Required. Overrides the [input + * metadata][google.cloud.aiplatform.v1.ExplanationMetadata.inputs] of the + * features. The key is the name of the feature to be overridden. The keys + * specified here must exist in the input metadata to be overridden. If a + * feature is not specified here, the corresponding feature's input metadata + * is not overridden. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * Required. Overrides the [input + * metadata][google.cloud.aiplatform.v1.ExplanationMetadata.inputs] of the + * features. The key is the name of the feature to be overridden. The keys + * specified here must exist in the input metadata to be overridden. If a + * feature is not specified here, the corresponding feature's input metadata + * is not overridden. + * + * Generated from protobuf field map inputs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getInputs() + { + return $this->inputs; + } + + /** + * Required. Overrides the [input + * metadata][google.cloud.aiplatform.v1.ExplanationMetadata.inputs] of the + * features. The key is the name of the feature to be overridden. The keys + * specified here must exist in the input metadata to be overridden. If a + * feature is not specified here, the corresponding feature's input metadata + * is not overridden. + * + * Generated from protobuf field map inputs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setInputs($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ExplanationMetadataOverride\InputMetadataOverride::class); + $this->inputs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadataOverride/InputMetadataOverride.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadataOverride/InputMetadataOverride.php new file mode 100644 index 000000000000..eda3137a2e75 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationMetadataOverride/InputMetadataOverride.php @@ -0,0 +1,88 @@ +google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride + */ +class InputMetadataOverride extends \Google\Protobuf\Internal\Message +{ + /** + * Baseline inputs for this feature. + * This overrides the `input_baseline` field of the + * [ExplanationMetadata.InputMetadata][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata] + * object of the corresponding feature's input metadata. If it's not + * specified, the original baselines are not overridden. + * + * Generated from protobuf field repeated .google.protobuf.Value input_baselines = 1; + */ + private $input_baselines; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $input_baselines + * Baseline inputs for this feature. + * This overrides the `input_baseline` field of the + * [ExplanationMetadata.InputMetadata][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata] + * object of the corresponding feature's input metadata. If it's not + * specified, the original baselines are not overridden. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * Baseline inputs for this feature. + * This overrides the `input_baseline` field of the + * [ExplanationMetadata.InputMetadata][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata] + * object of the corresponding feature's input metadata. If it's not + * specified, the original baselines are not overridden. + * + * Generated from protobuf field repeated .google.protobuf.Value input_baselines = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInputBaselines() + { + return $this->input_baselines; + } + + /** + * Baseline inputs for this feature. + * This overrides the `input_baseline` field of the + * [ExplanationMetadata.InputMetadata][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata] + * object of the corresponding feature's input metadata. If it's not + * specified, the original baselines are not overridden. + * + * Generated from protobuf field repeated .google.protobuf.Value input_baselines = 1; + * @param array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInputBaselines($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); + $this->input_baselines = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InputMetadataOverride::class, \Google\Cloud\AIPlatform\V1\ExplanationMetadataOverride_InputMetadataOverride::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationParameters.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationParameters.php new file mode 100644 index 000000000000..c134d7f06b87 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationParameters.php @@ -0,0 +1,339 @@ +google.cloud.aiplatform.v1.ExplanationParameters + */ +class ExplanationParameters extends \Google\Protobuf\Internal\Message +{ + /** + * If populated, returns attributions for top K indices of outputs + * (defaults to 1). Only applies to Models that predicts more than one outputs + * (e,g, multi-class Models). When set to -1, returns explanations for all + * outputs. + * + * Generated from protobuf field int32 top_k = 4; + */ + protected $top_k = 0; + /** + * If populated, only returns attributions that have + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * contained in output_indices. It must be an ndarray of integers, with the + * same shape of the output it's explaining. + * If not populated, returns attributions for + * [top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k] indices of + * outputs. If neither top_k nor output_indices is populated, returns the + * argmax index of the outputs. + * Only applicable to Models that predict multiple outputs (e,g, multi-class + * Models that predict multiple classes). + * + * Generated from protobuf field .google.protobuf.ListValue output_indices = 5; + */ + protected $output_indices = null; + protected $method; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\SampledShapleyAttribution $sampled_shapley_attribution + * An attribution method that approximates Shapley values for features that + * contribute to the label being predicted. A sampling strategy is used to + * approximate the value rather than considering all subsets of features. + * Refer to this paper for model details: https://arxiv.org/abs/1306.4265. + * @type \Google\Cloud\AIPlatform\V1\IntegratedGradientsAttribution $integrated_gradients_attribution + * An attribution method that computes Aumann-Shapley values taking + * advantage of the model's fully differentiable structure. Refer to this + * paper for more details: https://arxiv.org/abs/1703.01365 + * @type \Google\Cloud\AIPlatform\V1\XraiAttribution $xrai_attribution + * An attribution method that redistributes Integrated Gradients + * attribution to segmented regions, taking advantage of the model's fully + * differentiable structure. Refer to this paper for + * more details: https://arxiv.org/abs/1906.02825 + * XRAI currently performs better on natural images, like a picture of a + * house or an animal. If the images are taken in artificial environments, + * like a lab or manufacturing line, or from diagnostic equipment, like + * x-rays or quality-control cameras, use Integrated Gradients instead. + * @type \Google\Cloud\AIPlatform\V1\Examples $examples + * Example-based explanations that returns the nearest neighbors from the + * provided dataset. + * @type int $top_k + * If populated, returns attributions for top K indices of outputs + * (defaults to 1). Only applies to Models that predicts more than one outputs + * (e,g, multi-class Models). When set to -1, returns explanations for all + * outputs. + * @type \Google\Protobuf\ListValue $output_indices + * If populated, only returns attributions that have + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * contained in output_indices. It must be an ndarray of integers, with the + * same shape of the output it's explaining. + * If not populated, returns attributions for + * [top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k] indices of + * outputs. If neither top_k nor output_indices is populated, returns the + * argmax index of the outputs. + * Only applicable to Models that predict multiple outputs (e,g, multi-class + * Models that predict multiple classes). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * An attribution method that approximates Shapley values for features that + * contribute to the label being predicted. A sampling strategy is used to + * approximate the value rather than considering all subsets of features. + * Refer to this paper for model details: https://arxiv.org/abs/1306.4265. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.SampledShapleyAttribution sampled_shapley_attribution = 1; + * @return \Google\Cloud\AIPlatform\V1\SampledShapleyAttribution|null + */ + public function getSampledShapleyAttribution() + { + return $this->readOneof(1); + } + + public function hasSampledShapleyAttribution() + { + return $this->hasOneof(1); + } + + /** + * An attribution method that approximates Shapley values for features that + * contribute to the label being predicted. A sampling strategy is used to + * approximate the value rather than considering all subsets of features. + * Refer to this paper for model details: https://arxiv.org/abs/1306.4265. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.SampledShapleyAttribution sampled_shapley_attribution = 1; + * @param \Google\Cloud\AIPlatform\V1\SampledShapleyAttribution $var + * @return $this + */ + public function setSampledShapleyAttribution($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\SampledShapleyAttribution::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * An attribution method that computes Aumann-Shapley values taking + * advantage of the model's fully differentiable structure. Refer to this + * paper for more details: https://arxiv.org/abs/1703.01365 + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IntegratedGradientsAttribution integrated_gradients_attribution = 2; + * @return \Google\Cloud\AIPlatform\V1\IntegratedGradientsAttribution|null + */ + public function getIntegratedGradientsAttribution() + { + return $this->readOneof(2); + } + + public function hasIntegratedGradientsAttribution() + { + return $this->hasOneof(2); + } + + /** + * An attribution method that computes Aumann-Shapley values taking + * advantage of the model's fully differentiable structure. Refer to this + * paper for more details: https://arxiv.org/abs/1703.01365 + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IntegratedGradientsAttribution integrated_gradients_attribution = 2; + * @param \Google\Cloud\AIPlatform\V1\IntegratedGradientsAttribution $var + * @return $this + */ + public function setIntegratedGradientsAttribution($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\IntegratedGradientsAttribution::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * An attribution method that redistributes Integrated Gradients + * attribution to segmented regions, taking advantage of the model's fully + * differentiable structure. Refer to this paper for + * more details: https://arxiv.org/abs/1906.02825 + * XRAI currently performs better on natural images, like a picture of a + * house or an animal. If the images are taken in artificial environments, + * like a lab or manufacturing line, or from diagnostic equipment, like + * x-rays or quality-control cameras, use Integrated Gradients instead. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.XraiAttribution xrai_attribution = 3; + * @return \Google\Cloud\AIPlatform\V1\XraiAttribution|null + */ + public function getXraiAttribution() + { + return $this->readOneof(3); + } + + public function hasXraiAttribution() + { + return $this->hasOneof(3); + } + + /** + * An attribution method that redistributes Integrated Gradients + * attribution to segmented regions, taking advantage of the model's fully + * differentiable structure. Refer to this paper for + * more details: https://arxiv.org/abs/1906.02825 + * XRAI currently performs better on natural images, like a picture of a + * house or an animal. If the images are taken in artificial environments, + * like a lab or manufacturing line, or from diagnostic equipment, like + * x-rays or quality-control cameras, use Integrated Gradients instead. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.XraiAttribution xrai_attribution = 3; + * @param \Google\Cloud\AIPlatform\V1\XraiAttribution $var + * @return $this + */ + public function setXraiAttribution($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\XraiAttribution::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Example-based explanations that returns the nearest neighbors from the + * provided dataset. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Examples examples = 7; + * @return \Google\Cloud\AIPlatform\V1\Examples|null + */ + public function getExamples() + { + return $this->readOneof(7); + } + + public function hasExamples() + { + return $this->hasOneof(7); + } + + /** + * Example-based explanations that returns the nearest neighbors from the + * provided dataset. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Examples examples = 7; + * @param \Google\Cloud\AIPlatform\V1\Examples $var + * @return $this + */ + public function setExamples($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Examples::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * If populated, returns attributions for top K indices of outputs + * (defaults to 1). Only applies to Models that predicts more than one outputs + * (e,g, multi-class Models). When set to -1, returns explanations for all + * outputs. + * + * Generated from protobuf field int32 top_k = 4; + * @return int + */ + public function getTopK() + { + return $this->top_k; + } + + /** + * If populated, returns attributions for top K indices of outputs + * (defaults to 1). Only applies to Models that predicts more than one outputs + * (e,g, multi-class Models). When set to -1, returns explanations for all + * outputs. + * + * Generated from protobuf field int32 top_k = 4; + * @param int $var + * @return $this + */ + public function setTopK($var) + { + GPBUtil::checkInt32($var); + $this->top_k = $var; + + return $this; + } + + /** + * If populated, only returns attributions that have + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * contained in output_indices. It must be an ndarray of integers, with the + * same shape of the output it's explaining. + * If not populated, returns attributions for + * [top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k] indices of + * outputs. If neither top_k nor output_indices is populated, returns the + * argmax index of the outputs. + * Only applicable to Models that predict multiple outputs (e,g, multi-class + * Models that predict multiple classes). + * + * Generated from protobuf field .google.protobuf.ListValue output_indices = 5; + * @return \Google\Protobuf\ListValue|null + */ + public function getOutputIndices() + { + return $this->output_indices; + } + + public function hasOutputIndices() + { + return isset($this->output_indices); + } + + public function clearOutputIndices() + { + unset($this->output_indices); + } + + /** + * If populated, only returns attributions that have + * [output_index][google.cloud.aiplatform.v1.Attribution.output_index] + * contained in output_indices. It must be an ndarray of integers, with the + * same shape of the output it's explaining. + * If not populated, returns attributions for + * [top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k] indices of + * outputs. If neither top_k nor output_indices is populated, returns the + * argmax index of the outputs. + * Only applicable to Models that predict multiple outputs (e,g, multi-class + * Models that predict multiple classes). + * + * Generated from protobuf field .google.protobuf.ListValue output_indices = 5; + * @param \Google\Protobuf\ListValue $var + * @return $this + */ + public function setOutputIndices($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\ListValue::class); + $this->output_indices = $var; + + return $this; + } + + /** + * @return string + */ + public function getMethod() + { + return $this->whichOneof("method"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationSpec.php new file mode 100644 index 000000000000..d3a7c34016a6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationSpec.php @@ -0,0 +1,121 @@ +google.cloud.aiplatform.v1.ExplanationSpec + */ +class ExplanationSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parameters that configure explaining of the Model's predictions. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationParameters parameters = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parameters = null; + /** + * Optional. Metadata describing the Model's input and output for explanation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\ExplanationParameters $parameters + * Required. Parameters that configure explaining of the Model's predictions. + * @type \Google\Cloud\AIPlatform\V1\ExplanationMetadata $metadata + * Optional. Metadata describing the Model's input and output for explanation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parameters that configure explaining of the Model's predictions. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationParameters parameters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\ExplanationParameters|null + */ + public function getParameters() + { + return $this->parameters; + } + + public function hasParameters() + { + return isset($this->parameters); + } + + public function clearParameters() + { + unset($this->parameters); + } + + /** + * Required. Parameters that configure explaining of the Model's predictions. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationParameters parameters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\ExplanationParameters $var + * @return $this + */ + public function setParameters($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExplanationParameters::class); + $this->parameters = $var; + + return $this; + } + + /** + * Optional. Metadata describing the Model's input and output for explanation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\ExplanationMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Optional. Metadata describing the Model's input and output for explanation. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadata metadata = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\ExplanationMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExplanationMetadata::class); + $this->metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationSpecOverride.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationSpecOverride.php new file mode 100644 index 000000000000..92a3b9487912 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExplanationSpecOverride.php @@ -0,0 +1,175 @@ +google.cloud.aiplatform.v1.ExplanationSpecOverride + */ +class ExplanationSpecOverride extends \Google\Protobuf\Internal\Message +{ + /** + * The parameters to be overridden. Note that the + * attribution method cannot be changed. If not specified, + * no parameter is overridden. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationParameters parameters = 1; + */ + protected $parameters = null; + /** + * The metadata to be overridden. If not specified, no metadata is overridden. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadataOverride metadata = 2; + */ + protected $metadata = null; + /** + * The example-based explanations parameter overrides. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + */ + protected $examples_override = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\ExplanationParameters $parameters + * The parameters to be overridden. Note that the + * attribution method cannot be changed. If not specified, + * no parameter is overridden. + * @type \Google\Cloud\AIPlatform\V1\ExplanationMetadataOverride $metadata + * The metadata to be overridden. If not specified, no metadata is overridden. + * @type \Google\Cloud\AIPlatform\V1\ExamplesOverride $examples_override + * The example-based explanations parameter overrides. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * The parameters to be overridden. Note that the + * attribution method cannot be changed. If not specified, + * no parameter is overridden. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationParameters parameters = 1; + * @return \Google\Cloud\AIPlatform\V1\ExplanationParameters|null + */ + public function getParameters() + { + return $this->parameters; + } + + public function hasParameters() + { + return isset($this->parameters); + } + + public function clearParameters() + { + unset($this->parameters); + } + + /** + * The parameters to be overridden. Note that the + * attribution method cannot be changed. If not specified, + * no parameter is overridden. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationParameters parameters = 1; + * @param \Google\Cloud\AIPlatform\V1\ExplanationParameters $var + * @return $this + */ + public function setParameters($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExplanationParameters::class); + $this->parameters = $var; + + return $this; + } + + /** + * The metadata to be overridden. If not specified, no metadata is overridden. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadataOverride metadata = 2; + * @return \Google\Cloud\AIPlatform\V1\ExplanationMetadataOverride|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * The metadata to be overridden. If not specified, no metadata is overridden. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExplanationMetadataOverride metadata = 2; + * @param \Google\Cloud\AIPlatform\V1\ExplanationMetadataOverride $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExplanationMetadataOverride::class); + $this->metadata = $var; + + return $this; + } + + /** + * The example-based explanations parameter overrides. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + * @return \Google\Cloud\AIPlatform\V1\ExamplesOverride|null + */ + public function getExamplesOverride() + { + return $this->examples_override; + } + + public function hasExamplesOverride() + { + return isset($this->examples_override); + } + + public function clearExamplesOverride() + { + unset($this->examples_override); + } + + /** + * The example-based explanations parameter overrides. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + * @param \Google\Cloud\AIPlatform\V1\ExamplesOverride $var + * @return $this + */ + public function setExamplesOverride($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExamplesOverride::class); + $this->examples_override = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataConfig.php new file mode 100644 index 000000000000..135f857ea2d9 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataConfig.php @@ -0,0 +1,188 @@ +google.cloud.aiplatform.v1.ExportDataConfig + */ +class ExportDataConfig extends \Google\Protobuf\Internal\Message +{ + /** + * An expression for filtering what part of the Dataset is to be exported. + * Only Annotations that match this filter will be exported. The filter syntax + * is the same as in + * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. + * + * Generated from protobuf field string annotations_filter = 2; + */ + protected $annotations_filter = ''; + protected $destination; + protected $split; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GcsDestination $gcs_destination + * The Google Cloud Storage location where the output is to be written to. + * In the given directory a new directory will be created with name: + * `export-data--` where + * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export + * output will be written into that directory. Inside that directory, + * annotations with the same schema will be grouped into sub directories + * which are named with the corresponding annotations' schema title. Inside + * these sub directories, a schema.yaml will be created to describe the + * output format. + * @type \Google\Cloud\AIPlatform\V1\ExportFractionSplit $fraction_split + * Split based on fractions defining the size of each set. + * @type string $annotations_filter + * An expression for filtering what part of the Dataset is to be exported. + * Only Annotations that match this filter will be exported. The filter syntax + * is the same as in + * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Dataset::initOnce(); + parent::__construct($data); + } + + /** + * The Google Cloud Storage location where the output is to be written to. + * In the given directory a new directory will be created with name: + * `export-data--` where + * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export + * output will be written into that directory. Inside that directory, + * annotations with the same schema will be grouped into sub directories + * which are named with the corresponding annotations' schema title. Inside + * these sub directories, a schema.yaml will be created to describe the + * output format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination gcs_destination = 1; + * @return \Google\Cloud\AIPlatform\V1\GcsDestination|null + */ + public function getGcsDestination() + { + return $this->readOneof(1); + } + + public function hasGcsDestination() + { + return $this->hasOneof(1); + } + + /** + * The Google Cloud Storage location where the output is to be written to. + * In the given directory a new directory will be created with name: + * `export-data--` where + * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export + * output will be written into that directory. Inside that directory, + * annotations with the same schema will be grouped into sub directories + * which are named with the corresponding annotations' schema title. Inside + * these sub directories, a schema.yaml will be created to describe the + * output format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination gcs_destination = 1; + * @param \Google\Cloud\AIPlatform\V1\GcsDestination $var + * @return $this + */ + public function setGcsDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GcsDestination::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Split based on fractions defining the size of each set. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportFractionSplit fraction_split = 5; + * @return \Google\Cloud\AIPlatform\V1\ExportFractionSplit|null + */ + public function getFractionSplit() + { + return $this->readOneof(5); + } + + public function hasFractionSplit() + { + return $this->hasOneof(5); + } + + /** + * Split based on fractions defining the size of each set. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportFractionSplit fraction_split = 5; + * @param \Google\Cloud\AIPlatform\V1\ExportFractionSplit $var + * @return $this + */ + public function setFractionSplit($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExportFractionSplit::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * An expression for filtering what part of the Dataset is to be exported. + * Only Annotations that match this filter will be exported. The filter syntax + * is the same as in + * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. + * + * Generated from protobuf field string annotations_filter = 2; + * @return string + */ + public function getAnnotationsFilter() + { + return $this->annotations_filter; + } + + /** + * An expression for filtering what part of the Dataset is to be exported. + * Only Annotations that match this filter will be exported. The filter syntax + * is the same as in + * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. + * + * Generated from protobuf field string annotations_filter = 2; + * @param string $var + * @return $this + */ + public function setAnnotationsFilter($var) + { + GPBUtil::checkString($var, True); + $this->annotations_filter = $var; + + return $this; + } + + /** + * @return string + */ + public function getDestination() + { + return $this->whichOneof("destination"); + } + + /** + * @return string + */ + public function getSplit() + { + return $this->whichOneof("split"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataOperationMetadata.php new file mode 100644 index 000000000000..42cce5b8a65d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataOperationMetadata.php @@ -0,0 +1,116 @@ +google.cloud.aiplatform.v1.ExportDataOperationMetadata + */ +class ExportDataOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + /** + * A Google Cloud Storage directory which path ends with '/'. The exported + * data is stored in the directory. + * + * Generated from protobuf field string gcs_output_directory = 2; + */ + protected $gcs_output_directory = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The common part of the operation metadata. + * @type string $gcs_output_directory + * A Google Cloud Storage directory which path ends with '/'. The exported + * data is stored in the directory. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + + /** + * A Google Cloud Storage directory which path ends with '/'. The exported + * data is stored in the directory. + * + * Generated from protobuf field string gcs_output_directory = 2; + * @return string + */ + public function getGcsOutputDirectory() + { + return $this->gcs_output_directory; + } + + /** + * A Google Cloud Storage directory which path ends with '/'. The exported + * data is stored in the directory. + * + * Generated from protobuf field string gcs_output_directory = 2; + * @param string $var + * @return $this + */ + public function setGcsOutputDirectory($var) + { + GPBUtil::checkString($var, True); + $this->gcs_output_directory = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataRequest.php new file mode 100644 index 000000000000..f228564f8a9d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataRequest.php @@ -0,0 +1,138 @@ +google.cloud.aiplatform.v1.ExportDataRequest + */ +class ExportDataRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The desired output location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportDataConfig export_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $export_config = null; + + /** + * @param string $name Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * Please see {@see DatasetServiceClient::datasetName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\ExportDataConfig $exportConfig Required. The desired output location. + * + * @return \Google\Cloud\AIPlatform\V1\ExportDataRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\AIPlatform\V1\ExportDataConfig $exportConfig): self + { + return (new self()) + ->setName($name) + ->setExportConfig($exportConfig); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @type \Google\Cloud\AIPlatform\V1\ExportDataConfig $export_config + * Required. The desired output location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The desired output location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportDataConfig export_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\ExportDataConfig|null + */ + public function getExportConfig() + { + return $this->export_config; + } + + public function hasExportConfig() + { + return isset($this->export_config); + } + + public function clearExportConfig() + { + unset($this->export_config); + } + + /** + * Required. The desired output location. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportDataConfig export_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\ExportDataConfig $var + * @return $this + */ + public function setExportConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExportDataConfig::class); + $this->export_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataResponse.php new file mode 100644 index 000000000000..ca56f0384e7d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportDataResponse.php @@ -0,0 +1,68 @@ +google.cloud.aiplatform.v1.ExportDataResponse + */ +class ExportDataResponse extends \Google\Protobuf\Internal\Message +{ + /** + * All of the files that are exported in this export operation. + * + * Generated from protobuf field repeated string exported_files = 1; + */ + private $exported_files; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $exported_files + * All of the files that are exported in this export operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * All of the files that are exported in this export operation. + * + * Generated from protobuf field repeated string exported_files = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExportedFiles() + { + return $this->exported_files; + } + + /** + * All of the files that are exported in this export operation. + * + * Generated from protobuf field repeated string exported_files = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExportedFiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->exported_files = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesOperationMetadata.php new file mode 100644 index 000000000000..5899b28bf347 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesOperationMetadata.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + */ +class ExportFeatureValuesOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for Featurestore export Feature values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for Featurestore export Feature values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for Featurestore export Feature values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for Featurestore export Feature values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesRequest.php new file mode 100644 index 000000000000..d9dca89595c7 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesRequest.php @@ -0,0 +1,295 @@ +google.cloud.aiplatform.v1.ExportFeatureValuesRequest + */ +class ExportFeatureValuesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntityType from which to export Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $entity_type = ''; + /** + * Required. Specifies destination location and format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $destination = null; + /** + * Required. Selects Features to export values of. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_selector = null; + /** + * Per-Feature export settings. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DestinationFeatureSetting settings = 6; + */ + private $settings; + protected $mode; + + /** + * @param string $entityType Required. The resource name of the EntityType from which to export Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Please see {@see FeaturestoreServiceClient::entityTypeName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest + * + * @experimental + */ + public static function build(string $entityType): self + { + return (new self()) + ->setEntityType($entityType); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest\SnapshotExport $snapshot_export + * Exports the latest Feature values of all entities of the EntityType + * within a time range. + * @type \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest\FullExport $full_export + * Exports all historical values of all entities of the EntityType within a + * time range + * @type string $entity_type + * Required. The resource name of the EntityType from which to export Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * @type \Google\Cloud\AIPlatform\V1\FeatureValueDestination $destination + * Required. Specifies destination location and format. + * @type \Google\Cloud\AIPlatform\V1\FeatureSelector $feature_selector + * Required. Selects Features to export values of. + * @type array<\Google\Cloud\AIPlatform\V1\DestinationFeatureSetting>|\Google\Protobuf\Internal\RepeatedField $settings + * Per-Feature export settings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Exports the latest Feature values of all entities of the EntityType + * within a time range. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * @return \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest\SnapshotExport|null + */ + public function getSnapshotExport() + { + return $this->readOneof(3); + } + + public function hasSnapshotExport() + { + return $this->hasOneof(3); + } + + /** + * Exports the latest Feature values of all entities of the EntityType + * within a time range. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport snapshot_export = 3; + * @param \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest\SnapshotExport $var + * @return $this + */ + public function setSnapshotExport($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest\SnapshotExport::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Exports all historical values of all entities of the EntityType within a + * time range + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport full_export = 7; + * @return \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest\FullExport|null + */ + public function getFullExport() + { + return $this->readOneof(7); + } + + public function hasFullExport() + { + return $this->hasOneof(7); + } + + /** + * Exports all historical values of all entities of the EntityType within a + * time range + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport full_export = 7; + * @param \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest\FullExport $var + * @return $this + */ + public function setFullExport($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest\FullExport::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Required. The resource name of the EntityType from which to export Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEntityType() + { + return $this->entity_type; + } + + /** + * Required. The resource name of the EntityType from which to export Feature + * values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntityType($var) + { + GPBUtil::checkString($var, True); + $this->entity_type = $var; + + return $this; + } + + /** + * Required. Specifies destination location and format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\FeatureValueDestination|null + */ + public function getDestination() + { + return $this->destination; + } + + public function hasDestination() + { + return isset($this->destination); + } + + public function clearDestination() + { + unset($this->destination); + } + + /** + * Required. Specifies destination location and format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\FeatureValueDestination $var + * @return $this + */ + public function setDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureValueDestination::class); + $this->destination = $var; + + return $this; + } + + /** + * Required. Selects Features to export values of. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\FeatureSelector|null + */ + public function getFeatureSelector() + { + return $this->feature_selector; + } + + public function hasFeatureSelector() + { + return isset($this->feature_selector); + } + + public function clearFeatureSelector() + { + unset($this->feature_selector); + } + + /** + * Required. Selects Features to export values of. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureSelector feature_selector = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\FeatureSelector $var + * @return $this + */ + public function setFeatureSelector($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureSelector::class); + $this->feature_selector = $var; + + return $this; + } + + /** + * Per-Feature export settings. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DestinationFeatureSetting settings = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSettings() + { + return $this->settings; + } + + /** + * Per-Feature export settings. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DestinationFeatureSetting settings = 6; + * @param array<\Google\Cloud\AIPlatform\V1\DestinationFeatureSetting>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\DestinationFeatureSetting::class); + $this->settings = $arr; + + return $this; + } + + /** + * @return string + */ + public function getMode() + { + return $this->whichOneof("mode"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesRequest/FullExport.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesRequest/FullExport.php new file mode 100644 index 000000000000..f713dc04956b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesRequest/FullExport.php @@ -0,0 +1,141 @@ +google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport + */ +class FullExport extends \Google\Protobuf\Internal\Message +{ + /** + * Excludes Feature values with feature generation timestamp before this + * timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * Exports Feature values as of this timestamp. If not set, + * retrieve values as of now. Timestamp, if present, must not have higher + * than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 1; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $start_time + * Excludes Feature values with feature generation timestamp before this + * timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * @type \Google\Protobuf\Timestamp $end_time + * Exports Feature values as of this timestamp. If not set, + * retrieve values as of now. Timestamp, if present, must not have higher + * than millisecond precision. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Excludes Feature values with feature generation timestamp before this + * timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Excludes Feature values with feature generation timestamp before this + * timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Exports Feature values as of this timestamp. If not set, + * retrieve values as of now. Timestamp, if present, must not have higher + * than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Exports Feature values as of this timestamp. If not set, + * retrieve values as of now. Timestamp, if present, must not have higher + * than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FullExport::class, \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest_FullExport::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesRequest/SnapshotExport.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesRequest/SnapshotExport.php new file mode 100644 index 000000000000..9bca5403eaf1 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesRequest/SnapshotExport.php @@ -0,0 +1,141 @@ +google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport + */ +class SnapshotExport extends \Google\Protobuf\Internal\Message +{ + /** + * Exports Feature values as of this timestamp. If not set, + * retrieve values as of now. Timestamp, if present, must not have higher + * than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 1; + */ + protected $snapshot_time = null; + /** + * Excludes Feature values with feature generation timestamp before this + * timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $snapshot_time + * Exports Feature values as of this timestamp. If not set, + * retrieve values as of now. Timestamp, if present, must not have higher + * than millisecond precision. + * @type \Google\Protobuf\Timestamp $start_time + * Excludes Feature values with feature generation timestamp before this + * timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Exports Feature values as of this timestamp. If not set, + * retrieve values as of now. Timestamp, if present, must not have higher + * than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSnapshotTime() + { + return $this->snapshot_time; + } + + public function hasSnapshotTime() + { + return isset($this->snapshot_time); + } + + public function clearSnapshotTime() + { + unset($this->snapshot_time); + } + + /** + * Exports Feature values as of this timestamp. If not set, + * retrieve values as of now. Timestamp, if present, must not have higher + * than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSnapshotTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->snapshot_time = $var; + + return $this; + } + + /** + * Excludes Feature values with feature generation timestamp before this + * timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Excludes Feature values with feature generation timestamp before this + * timestamp. If not set, retrieve oldest values kept in Feature Store. + * Timestamp, if present, must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SnapshotExport::class, \Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest_SnapshotExport::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesResponse.php new file mode 100644 index 000000000000..fd563ca57cdb --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFeatureValuesResponse.php @@ -0,0 +1,34 @@ +google.cloud.aiplatform.v1.ExportFeatureValuesResponse + */ +class ExportFeatureValuesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFractionSplit.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFractionSplit.php new file mode 100644 index 000000000000..5d54b7f05e07 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportFractionSplit.php @@ -0,0 +1,140 @@ +google.cloud.aiplatform.v1.ExportFractionSplit + */ +class ExportFractionSplit extends \Google\Protobuf\Internal\Message +{ + /** + * The fraction of the input data that is to be used to train the Model. + * + * Generated from protobuf field double training_fraction = 1; + */ + protected $training_fraction = 0.0; + /** + * The fraction of the input data that is to be used to validate the Model. + * + * Generated from protobuf field double validation_fraction = 2; + */ + protected $validation_fraction = 0.0; + /** + * The fraction of the input data that is to be used to evaluate the Model. + * + * Generated from protobuf field double test_fraction = 3; + */ + protected $test_fraction = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $training_fraction + * The fraction of the input data that is to be used to train the Model. + * @type float $validation_fraction + * The fraction of the input data that is to be used to validate the Model. + * @type float $test_fraction + * The fraction of the input data that is to be used to evaluate the Model. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Dataset::initOnce(); + parent::__construct($data); + } + + /** + * The fraction of the input data that is to be used to train the Model. + * + * Generated from protobuf field double training_fraction = 1; + * @return float + */ + public function getTrainingFraction() + { + return $this->training_fraction; + } + + /** + * The fraction of the input data that is to be used to train the Model. + * + * Generated from protobuf field double training_fraction = 1; + * @param float $var + * @return $this + */ + public function setTrainingFraction($var) + { + GPBUtil::checkDouble($var); + $this->training_fraction = $var; + + return $this; + } + + /** + * The fraction of the input data that is to be used to validate the Model. + * + * Generated from protobuf field double validation_fraction = 2; + * @return float + */ + public function getValidationFraction() + { + return $this->validation_fraction; + } + + /** + * The fraction of the input data that is to be used to validate the Model. + * + * Generated from protobuf field double validation_fraction = 2; + * @param float $var + * @return $this + */ + public function setValidationFraction($var) + { + GPBUtil::checkDouble($var); + $this->validation_fraction = $var; + + return $this; + } + + /** + * The fraction of the input data that is to be used to evaluate the Model. + * + * Generated from protobuf field double test_fraction = 3; + * @return float + */ + public function getTestFraction() + { + return $this->test_fraction; + } + + /** + * The fraction of the input data that is to be used to evaluate the Model. + * + * Generated from protobuf field double test_fraction = 3; + * @param float $var + * @return $this + */ + public function setTestFraction($var) + { + GPBUtil::checkDouble($var); + $this->test_fraction = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelOperationMetadata.php new file mode 100644 index 000000000000..20ea6285c14d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelOperationMetadata.php @@ -0,0 +1,127 @@ +google.cloud.aiplatform.v1.ExportModelOperationMetadata + */ +class ExportModelOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + /** + * Output only. Information further describing the output of this Model + * export. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo output_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $output_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The common part of the operation metadata. + * @type \Google\Cloud\AIPlatform\V1\ExportModelOperationMetadata\OutputInfo $output_info + * Output only. Information further describing the output of this Model + * export. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + + /** + * Output only. Information further describing the output of this Model + * export. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo output_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\AIPlatform\V1\ExportModelOperationMetadata\OutputInfo|null + */ + public function getOutputInfo() + { + return $this->output_info; + } + + public function hasOutputInfo() + { + return isset($this->output_info); + } + + public function clearOutputInfo() + { + unset($this->output_info); + } + + /** + * Output only. Information further describing the output of this Model + * export. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo output_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\AIPlatform\V1\ExportModelOperationMetadata\OutputInfo $var + * @return $this + */ + public function setOutputInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExportModelOperationMetadata\OutputInfo::class); + $this->output_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelOperationMetadata/OutputInfo.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelOperationMetadata/OutputInfo.php new file mode 100644 index 000000000000..19d80412c2f6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelOperationMetadata/OutputInfo.php @@ -0,0 +1,117 @@ +google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + */ +class OutputInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. If the Model artifact is being exported to Google Cloud + * Storage this is the full path of the directory created, into which the + * Model files are being written to. + * + * Generated from protobuf field string artifact_output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $artifact_output_uri = ''; + /** + * Output only. If the Model image is being exported to Google Container + * Registry or Artifact Registry this is the full path of the image created. + * + * Generated from protobuf field string image_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $image_output_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $artifact_output_uri + * Output only. If the Model artifact is being exported to Google Cloud + * Storage this is the full path of the directory created, into which the + * Model files are being written to. + * @type string $image_output_uri + * Output only. If the Model image is being exported to Google Container + * Registry or Artifact Registry this is the full path of the image created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. If the Model artifact is being exported to Google Cloud + * Storage this is the full path of the directory created, into which the + * Model files are being written to. + * + * Generated from protobuf field string artifact_output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getArtifactOutputUri() + { + return $this->artifact_output_uri; + } + + /** + * Output only. If the Model artifact is being exported to Google Cloud + * Storage this is the full path of the directory created, into which the + * Model files are being written to. + * + * Generated from protobuf field string artifact_output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setArtifactOutputUri($var) + { + GPBUtil::checkString($var, True); + $this->artifact_output_uri = $var; + + return $this; + } + + /** + * Output only. If the Model image is being exported to Google Container + * Registry or Artifact Registry this is the full path of the image created. + * + * Generated from protobuf field string image_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getImageOutputUri() + { + return $this->image_output_uri; + } + + /** + * Output only. If the Model image is being exported to Google Container + * Registry or Artifact Registry this is the full path of the image created. + * + * Generated from protobuf field string image_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setImageOutputUri($var) + { + GPBUtil::checkString($var, True); + $this->image_output_uri = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OutputInfo::class, \Google\Cloud\AIPlatform\V1\ExportModelOperationMetadata_OutputInfo::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelRequest.php new file mode 100644 index 000000000000..a5b3b13d0766 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelRequest.php @@ -0,0 +1,138 @@ +google.cloud.aiplatform.v1.ExportModelRequest + */ +class ExportModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Model to export. + * The resource name may contain version id or version alias to specify the + * version, if no version is specified, the default version will be exported. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The desired output location and configuration. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $output_config = null; + + /** + * @param string $name Required. The resource name of the Model to export. + * The resource name may contain version id or version alias to specify the + * version, if no version is specified, the default version will be exported. Please see + * {@see ModelServiceClient::modelName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\ExportModelRequest\OutputConfig $outputConfig Required. The desired output location and configuration. + * + * @return \Google\Cloud\AIPlatform\V1\ExportModelRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\AIPlatform\V1\ExportModelRequest\OutputConfig $outputConfig): self + { + return (new self()) + ->setName($name) + ->setOutputConfig($outputConfig); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Model to export. + * The resource name may contain version id or version alias to specify the + * version, if no version is specified, the default version will be exported. + * @type \Google\Cloud\AIPlatform\V1\ExportModelRequest\OutputConfig $output_config + * Required. The desired output location and configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Model to export. + * The resource name may contain version id or version alias to specify the + * version, if no version is specified, the default version will be exported. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Model to export. + * The resource name may contain version id or version alias to specify the + * version, if no version is specified, the default version will be exported. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The desired output location and configuration. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\ExportModelRequest\OutputConfig|null + */ + public function getOutputConfig() + { + return $this->output_config; + } + + public function hasOutputConfig() + { + return isset($this->output_config); + } + + public function clearOutputConfig() + { + unset($this->output_config); + } + + /** + * Required. The desired output location and configuration. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\ExportModelRequest\OutputConfig $var + * @return $this + */ + public function setOutputConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ExportModelRequest\OutputConfig::class); + $this->output_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelRequest/OutputConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelRequest/OutputConfig.php new file mode 100644 index 000000000000..285f72edb1f7 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelRequest/OutputConfig.php @@ -0,0 +1,214 @@ +google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + */ +class OutputConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the format in which the Model must be exported. Each Model + * lists the [export formats it + * supports][google.cloud.aiplatform.v1.Model.supported_export_formats]. If + * no value is provided here, then the first from the list of the Model's + * supported formats is used by default. + * + * Generated from protobuf field string export_format_id = 1; + */ + protected $export_format_id = ''; + /** + * The Cloud Storage location where the Model artifact is to be + * written to. Under the directory given as the destination a new one with + * name "`model-export--`", + * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, + * will be created. Inside, the Model and any of its supporting files + * will be written. + * This field should only be set when the `exportableContent` field of the + * [Model.supported_export_formats] object contains `ARTIFACT`. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 3; + */ + protected $artifact_destination = null; + /** + * The Google Container Registry or Artifact Registry uri where the + * Model container image will be copied to. + * This field should only be set when the `exportableContent` field of the + * [Model.supported_export_formats] object contains `IMAGE`. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ContainerRegistryDestination image_destination = 4; + */ + protected $image_destination = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $export_format_id + * The ID of the format in which the Model must be exported. Each Model + * lists the [export formats it + * supports][google.cloud.aiplatform.v1.Model.supported_export_formats]. If + * no value is provided here, then the first from the list of the Model's + * supported formats is used by default. + * @type \Google\Cloud\AIPlatform\V1\GcsDestination $artifact_destination + * The Cloud Storage location where the Model artifact is to be + * written to. Under the directory given as the destination a new one with + * name "`model-export--`", + * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, + * will be created. Inside, the Model and any of its supporting files + * will be written. + * This field should only be set when the `exportableContent` field of the + * [Model.supported_export_formats] object contains `ARTIFACT`. + * @type \Google\Cloud\AIPlatform\V1\ContainerRegistryDestination $image_destination + * The Google Container Registry or Artifact Registry uri where the + * Model container image will be copied to. + * This field should only be set when the `exportableContent` field of the + * [Model.supported_export_formats] object contains `IMAGE`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the format in which the Model must be exported. Each Model + * lists the [export formats it + * supports][google.cloud.aiplatform.v1.Model.supported_export_formats]. If + * no value is provided here, then the first from the list of the Model's + * supported formats is used by default. + * + * Generated from protobuf field string export_format_id = 1; + * @return string + */ + public function getExportFormatId() + { + return $this->export_format_id; + } + + /** + * The ID of the format in which the Model must be exported. Each Model + * lists the [export formats it + * supports][google.cloud.aiplatform.v1.Model.supported_export_formats]. If + * no value is provided here, then the first from the list of the Model's + * supported formats is used by default. + * + * Generated from protobuf field string export_format_id = 1; + * @param string $var + * @return $this + */ + public function setExportFormatId($var) + { + GPBUtil::checkString($var, True); + $this->export_format_id = $var; + + return $this; + } + + /** + * The Cloud Storage location where the Model artifact is to be + * written to. Under the directory given as the destination a new one with + * name "`model-export--`", + * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, + * will be created. Inside, the Model and any of its supporting files + * will be written. + * This field should only be set when the `exportableContent` field of the + * [Model.supported_export_formats] object contains `ARTIFACT`. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 3; + * @return \Google\Cloud\AIPlatform\V1\GcsDestination|null + */ + public function getArtifactDestination() + { + return $this->artifact_destination; + } + + public function hasArtifactDestination() + { + return isset($this->artifact_destination); + } + + public function clearArtifactDestination() + { + unset($this->artifact_destination); + } + + /** + * The Cloud Storage location where the Model artifact is to be + * written to. Under the directory given as the destination a new one with + * name "`model-export--`", + * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, + * will be created. Inside, the Model and any of its supporting files + * will be written. + * This field should only be set when the `exportableContent` field of the + * [Model.supported_export_formats] object contains `ARTIFACT`. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 3; + * @param \Google\Cloud\AIPlatform\V1\GcsDestination $var + * @return $this + */ + public function setArtifactDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GcsDestination::class); + $this->artifact_destination = $var; + + return $this; + } + + /** + * The Google Container Registry or Artifact Registry uri where the + * Model container image will be copied to. + * This field should only be set when the `exportableContent` field of the + * [Model.supported_export_formats] object contains `IMAGE`. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ContainerRegistryDestination image_destination = 4; + * @return \Google\Cloud\AIPlatform\V1\ContainerRegistryDestination|null + */ + public function getImageDestination() + { + return $this->image_destination; + } + + public function hasImageDestination() + { + return isset($this->image_destination); + } + + public function clearImageDestination() + { + unset($this->image_destination); + } + + /** + * The Google Container Registry or Artifact Registry uri where the + * Model container image will be copied to. + * This field should only be set when the `exportableContent` field of the + * [Model.supported_export_formats] object contains `IMAGE`. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ContainerRegistryDestination image_destination = 4; + * @param \Google\Cloud\AIPlatform\V1\ContainerRegistryDestination $var + * @return $this + */ + public function setImageDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ContainerRegistryDestination::class); + $this->image_destination = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OutputConfig::class, \Google\Cloud\AIPlatform\V1\ExportModelRequest_OutputConfig::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelResponse.php new file mode 100644 index 000000000000..81110a3fb6f0 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportModelResponse.php @@ -0,0 +1,35 @@ +google.cloud.aiplatform.v1.ExportModelResponse + */ +class ExportModelResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportTensorboardTimeSeriesDataRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportTensorboardTimeSeriesDataRequest.php new file mode 100644 index 000000000000..7951fd4cd072 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportTensorboardTimeSeriesDataRequest.php @@ -0,0 +1,264 @@ +google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest + */ +class ExportTensorboardTimeSeriesDataRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the TensorboardTimeSeries to export data + * from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $tensorboard_time_series = ''; + /** + * Exports the TensorboardTimeSeries' data that match the filter expression. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * The maximum number of data points to return per page. + * The default page_size is 1000. Values must be between 1 and 10000. + * Values above 10000 are coerced to 10000. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * A page token, received from a previous + * [ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * [ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData] + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + /** + * Field to use to sort the TensorboardTimeSeries' data. + * By default, TensorboardTimeSeries' data is returned in a pseudo random + * order. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * @param string $tensorboardTimeSeries Required. The resource name of the TensorboardTimeSeries to export data + * from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * Please see {@see TensorboardServiceClient::tensorboardTimeSeriesName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\ExportTensorboardTimeSeriesDataRequest + * + * @experimental + */ + public static function build(string $tensorboardTimeSeries): self + { + return (new self()) + ->setTensorboardTimeSeries($tensorboardTimeSeries); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $tensorboard_time_series + * Required. The resource name of the TensorboardTimeSeries to export data + * from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * @type string $filter + * Exports the TensorboardTimeSeries' data that match the filter expression. + * @type int $page_size + * The maximum number of data points to return per page. + * The default page_size is 1000. Values must be between 1 and 10000. + * Values above 10000 are coerced to 10000. + * @type string $page_token + * A page token, received from a previous + * [ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * [ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData] + * must match the call that provided the page token. + * @type string $order_by + * Field to use to sort the TensorboardTimeSeries' data. + * By default, TensorboardTimeSeries' data is returned in a pseudo random + * order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the TensorboardTimeSeries to export data + * from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTensorboardTimeSeries() + { + return $this->tensorboard_time_series; + } + + /** + * Required. The resource name of the TensorboardTimeSeries to export data + * from. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field string tensorboard_time_series = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTensorboardTimeSeries($var) + { + GPBUtil::checkString($var, True); + $this->tensorboard_time_series = $var; + + return $this; + } + + /** + * Exports the TensorboardTimeSeries' data that match the filter expression. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Exports the TensorboardTimeSeries' data that match the filter expression. + * + * Generated from protobuf field string filter = 2; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * The maximum number of data points to return per page. + * The default page_size is 1000. Values must be between 1 and 10000. + * Values above 10000 are coerced to 10000. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of data points to return per page. + * The default page_size is 1000. Values must be between 1 and 10000. + * Values above 10000 are coerced to 10000. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous + * [ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * [ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData] + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous + * [ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * [ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData] + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Field to use to sort the TensorboardTimeSeries' data. + * By default, TensorboardTimeSeries' data is returned in a pseudo random + * order. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Field to use to sort the TensorboardTimeSeries' data. + * By default, TensorboardTimeSeries' data is returned in a pseudo random + * order. + * + * Generated from protobuf field string order_by = 5; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportTensorboardTimeSeriesDataResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportTensorboardTimeSeriesDataResponse.php new file mode 100644 index 000000000000..664be2910658 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ExportTensorboardTimeSeriesDataResponse.php @@ -0,0 +1,114 @@ +google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse + */ +class ExportTensorboardTimeSeriesDataResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The returned time series data points. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TimeSeriesDataPoint time_series_data_points = 1; + */ + private $time_series_data_points; + /** + * A token, which can be sent as + * [page_token][google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.page_token] + * to retrieve the next page. If this field is omitted, there are no + * subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\TimeSeriesDataPoint>|\Google\Protobuf\Internal\RepeatedField $time_series_data_points + * The returned time series data points. + * @type string $next_page_token + * A token, which can be sent as + * [page_token][google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.page_token] + * to retrieve the next page. If this field is omitted, there are no + * subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * The returned time series data points. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TimeSeriesDataPoint time_series_data_points = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTimeSeriesDataPoints() + { + return $this->time_series_data_points; + } + + /** + * The returned time series data points. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.TimeSeriesDataPoint time_series_data_points = 1; + * @param array<\Google\Cloud\AIPlatform\V1\TimeSeriesDataPoint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTimeSeriesDataPoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\TimeSeriesDataPoint::class); + $this->time_series_data_points = $arr; + + return $this; + } + + /** + * A token, which can be sent as + * [page_token][google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.page_token] + * to retrieve the next page. If this field is omitted, there are no + * subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as + * [page_token][google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.page_token] + * to retrieve the next page. If this field is omitted, there are no + * subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature.php new file mode 100644 index 000000000000..62cdba605885 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature.php @@ -0,0 +1,510 @@ +google.cloud.aiplatform.v1.Feature + */ +class Feature extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. Name of the Feature. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * The last part feature is assigned by the client. The feature can be up to + * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, + * underscore(_), and ASCII digits 0-9 starting with a letter. The value will + * be unique given an entity type. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Description of the Feature. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * Immutable. Only applicable for Vertex AI Feature Store (Legacy). + * Type of Feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $value_type = 0; + /** + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * Timestamp when this EntityType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * Timestamp when this EntityType was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. The labels with user-defined metadata to organize your Features. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one Feature (System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Used to perform a consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 7; + */ + protected $etag = ''; + /** + * Optional. Only applicable for Vertex AI Feature Store (Legacy). + * If not set, use the monitoring_config defined for the EntityType this + * Feature belongs to. + * Only Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, + * STRING, DOUBLE or INT64 can enable monitoring. + * If set to true, all types of data monitoring are disabled despite the + * config on EntityType. + * + * Generated from protobuf field bool disable_monitoring = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disable_monitoring = false; + /** + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * The list of historical stats and anomalies with specified objectives. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly monitoring_stats_anomalies = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $monitoring_stats_anomalies; + /** + * Only applicable for Vertex AI Feature Store. + * The name of the BigQuery Table/View columnn hosting data for this version. + * If no value is provided, will use feature_id. + * + * Generated from protobuf field string version_column_name = 106; + */ + protected $version_column_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. Name of the Feature. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * The last part feature is assigned by the client. The feature can be up to + * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, + * underscore(_), and ASCII digits 0-9 starting with a letter. The value will + * be unique given an entity type. + * @type string $description + * Description of the Feature. + * @type int $value_type + * Immutable. Only applicable for Vertex AI Feature Store (Legacy). + * Type of Feature value. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * Timestamp when this EntityType was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * Timestamp when this EntityType was most recently updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The labels with user-defined metadata to organize your Features. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one Feature (System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * @type string $etag + * Used to perform a consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * @type bool $disable_monitoring + * Optional. Only applicable for Vertex AI Feature Store (Legacy). + * If not set, use the monitoring_config defined for the EntityType this + * Feature belongs to. + * Only Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, + * STRING, DOUBLE or INT64 can enable monitoring. + * If set to true, all types of data monitoring are disabled despite the + * config on EntityType. + * @type array<\Google\Cloud\AIPlatform\V1\Feature\MonitoringStatsAnomaly>|\Google\Protobuf\Internal\RepeatedField $monitoring_stats_anomalies + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * The list of historical stats and anomalies with specified objectives. + * @type string $version_column_name + * Only applicable for Vertex AI Feature Store. + * The name of the BigQuery Table/View columnn hosting data for this version. + * If no value is provided, will use feature_id. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Feature::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. Name of the Feature. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * The last part feature is assigned by the client. The feature can be up to + * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, + * underscore(_), and ASCII digits 0-9 starting with a letter. The value will + * be unique given an entity type. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. Name of the Feature. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * The last part feature is assigned by the client. The feature can be up to + * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, + * underscore(_), and ASCII digits 0-9 starting with a letter. The value will + * be unique given an entity type. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Description of the Feature. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the Feature. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Immutable. Only applicable for Vertex AI Feature Store (Legacy). + * Type of Feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getValueType() + { + return $this->value_type; + } + + /** + * Immutable. Only applicable for Vertex AI Feature Store (Legacy). + * Type of Feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Feature.ValueType value_type = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setValueType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\Feature\ValueType::class); + $this->value_type = $var; + + return $this; + } + + /** + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * Timestamp when this EntityType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * Timestamp when this EntityType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * Timestamp when this EntityType was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * Timestamp when this EntityType was most recently updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. The labels with user-defined metadata to organize your Features. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one Feature (System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The labels with user-defined metadata to organize your Features. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one Feature (System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Used to perform a consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 7; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Used to perform a consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 7; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Only applicable for Vertex AI Feature Store (Legacy). + * If not set, use the monitoring_config defined for the EntityType this + * Feature belongs to. + * Only Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, + * STRING, DOUBLE or INT64 can enable monitoring. + * If set to true, all types of data monitoring are disabled despite the + * config on EntityType. + * + * Generated from protobuf field bool disable_monitoring = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisableMonitoring() + { + return $this->disable_monitoring; + } + + /** + * Optional. Only applicable for Vertex AI Feature Store (Legacy). + * If not set, use the monitoring_config defined for the EntityType this + * Feature belongs to. + * Only Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, + * STRING, DOUBLE or INT64 can enable monitoring. + * If set to true, all types of data monitoring are disabled despite the + * config on EntityType. + * + * Generated from protobuf field bool disable_monitoring = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisableMonitoring($var) + { + GPBUtil::checkBool($var); + $this->disable_monitoring = $var; + + return $this; + } + + /** + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * The list of historical stats and anomalies with specified objectives. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly monitoring_stats_anomalies = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMonitoringStatsAnomalies() + { + return $this->monitoring_stats_anomalies; + } + + /** + * Output only. Only applicable for Vertex AI Feature Store (Legacy). + * The list of historical stats and anomalies with specified objectives. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly monitoring_stats_anomalies = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\AIPlatform\V1\Feature\MonitoringStatsAnomaly>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMonitoringStatsAnomalies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\Feature\MonitoringStatsAnomaly::class); + $this->monitoring_stats_anomalies = $arr; + + return $this; + } + + /** + * Only applicable for Vertex AI Feature Store. + * The name of the BigQuery Table/View columnn hosting data for this version. + * If no value is provided, will use feature_id. + * + * Generated from protobuf field string version_column_name = 106; + * @return string + */ + public function getVersionColumnName() + { + return $this->version_column_name; + } + + /** + * Only applicable for Vertex AI Feature Store. + * The name of the BigQuery Table/View columnn hosting data for this version. + * If no value is provided, will use feature_id. + * + * Generated from protobuf field string version_column_name = 106; + * @param string $var + * @return $this + */ + public function setVersionColumnName($var) + { + GPBUtil::checkString($var, True); + $this->version_column_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature/MonitoringStatsAnomaly.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature/MonitoringStatsAnomaly.php new file mode 100644 index 000000000000..2c67039741a5 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature/MonitoringStatsAnomaly.php @@ -0,0 +1,120 @@ +google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly + */ +class MonitoringStatsAnomaly extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The objective for each stats. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective objective = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $objective = 0; + /** + * Output only. The stats and anomalies generated at specific timestamp. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureStatsAnomaly feature_stats_anomaly = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $feature_stats_anomaly = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $objective + * Output only. The objective for each stats. + * @type \Google\Cloud\AIPlatform\V1\FeatureStatsAnomaly $feature_stats_anomaly + * Output only. The stats and anomalies generated at specific timestamp. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Feature::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The objective for each stats. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective objective = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getObjective() + { + return $this->objective; + } + + /** + * Output only. The objective for each stats. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective objective = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setObjective($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\Feature\MonitoringStatsAnomaly\Objective::class); + $this->objective = $var; + + return $this; + } + + /** + * Output only. The stats and anomalies generated at specific timestamp. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureStatsAnomaly feature_stats_anomaly = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\AIPlatform\V1\FeatureStatsAnomaly|null + */ + public function getFeatureStatsAnomaly() + { + return $this->feature_stats_anomaly; + } + + public function hasFeatureStatsAnomaly() + { + return isset($this->feature_stats_anomaly); + } + + public function clearFeatureStatsAnomaly() + { + unset($this->feature_stats_anomaly); + } + + /** + * Output only. The stats and anomalies generated at specific timestamp. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureStatsAnomaly feature_stats_anomaly = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\AIPlatform\V1\FeatureStatsAnomaly $var + * @return $this + */ + public function setFeatureStatsAnomaly($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureStatsAnomaly::class); + $this->feature_stats_anomaly = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MonitoringStatsAnomaly::class, \Google\Cloud\AIPlatform\V1\Feature_MonitoringStatsAnomaly::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature/MonitoringStatsAnomaly/Objective.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature/MonitoringStatsAnomaly/Objective.php new file mode 100644 index 000000000000..0b58bdcd70f3 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature/MonitoringStatsAnomaly/Objective.php @@ -0,0 +1,67 @@ +google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective + */ +class Objective +{ + /** + * If it's OBJECTIVE_UNSPECIFIED, monitoring_stats will be empty. + * + * Generated from protobuf enum OBJECTIVE_UNSPECIFIED = 0; + */ + const OBJECTIVE_UNSPECIFIED = 0; + /** + * Stats are generated by Import Feature Analysis. + * + * Generated from protobuf enum IMPORT_FEATURE_ANALYSIS = 1; + */ + const IMPORT_FEATURE_ANALYSIS = 1; + /** + * Stats are generated by Snapshot Analysis. + * + * Generated from protobuf enum SNAPSHOT_ANALYSIS = 2; + */ + const SNAPSHOT_ANALYSIS = 2; + + private static $valueToName = [ + self::OBJECTIVE_UNSPECIFIED => 'OBJECTIVE_UNSPECIFIED', + self::IMPORT_FEATURE_ANALYSIS => 'IMPORT_FEATURE_ANALYSIS', + self::SNAPSHOT_ANALYSIS => 'SNAPSHOT_ANALYSIS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Objective::class, \Google\Cloud\AIPlatform\V1\Feature_MonitoringStatsAnomaly_Objective::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature/ValueType.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature/ValueType.php new file mode 100644 index 000000000000..4c001fbbf020 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Feature/ValueType.php @@ -0,0 +1,114 @@ +google.cloud.aiplatform.v1.Feature.ValueType + */ +class ValueType +{ + /** + * The value type is unspecified. + * + * Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0; + */ + const VALUE_TYPE_UNSPECIFIED = 0; + /** + * Used for Feature that is a boolean. + * + * Generated from protobuf enum BOOL = 1; + */ + const BOOL = 1; + /** + * Used for Feature that is a list of boolean. + * + * Generated from protobuf enum BOOL_ARRAY = 2; + */ + const BOOL_ARRAY = 2; + /** + * Used for Feature that is double. + * + * Generated from protobuf enum DOUBLE = 3; + */ + const DOUBLE = 3; + /** + * Used for Feature that is a list of double. + * + * Generated from protobuf enum DOUBLE_ARRAY = 4; + */ + const DOUBLE_ARRAY = 4; + /** + * Used for Feature that is INT64. + * + * Generated from protobuf enum INT64 = 9; + */ + const INT64 = 9; + /** + * Used for Feature that is a list of INT64. + * + * Generated from protobuf enum INT64_ARRAY = 10; + */ + const INT64_ARRAY = 10; + /** + * Used for Feature that is string. + * + * Generated from protobuf enum STRING = 11; + */ + const STRING = 11; + /** + * Used for Feature that is a list of String. + * + * Generated from protobuf enum STRING_ARRAY = 12; + */ + const STRING_ARRAY = 12; + /** + * Used for Feature that is bytes. + * + * Generated from protobuf enum BYTES = 13; + */ + const BYTES = 13; + + private static $valueToName = [ + self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED', + self::BOOL => 'BOOL', + self::BOOL_ARRAY => 'BOOL_ARRAY', + self::DOUBLE => 'DOUBLE', + self::DOUBLE_ARRAY => 'DOUBLE_ARRAY', + self::INT64 => 'INT64', + self::INT64_ARRAY => 'INT64_ARRAY', + self::STRING => 'STRING', + self::STRING_ARRAY => 'STRING_ARRAY', + self::BYTES => 'BYTES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ValueType::class, \Google\Cloud\AIPlatform\V1\Feature_ValueType::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureGroup.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureGroup.php new file mode 100644 index 000000000000..11b5f895c902 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureGroup.php @@ -0,0 +1,348 @@ +google.cloud.aiplatform.v1.FeatureGroup + */ +class FeatureGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the FeatureGroup. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Timestamp when this FeatureGroup was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this FeatureGroup was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. The labels with user-defined metadata to organize your + * FeatureGroup. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureGroup(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Description of the FeatureGroup. + * + * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\FeatureGroup\BigQuery $big_query + * Indicates that features for this group come from BigQuery Table/View. + * By default treats the source as a sparse time series source, which is + * required to have an entity_id and a feature_timestamp column in the + * source. + * @type string $name + * Output only. Name of the FeatureGroup. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this FeatureGroup was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this FeatureGroup was last updated. + * @type string $etag + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The labels with user-defined metadata to organize your + * FeatureGroup. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureGroup(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * @type string $description + * Optional. Description of the FeatureGroup. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureGroup::initOnce(); + parent::__construct($data); + } + + /** + * Indicates that features for this group come from BigQuery Table/View. + * By default treats the source as a sparse time series source, which is + * required to have an entity_id and a feature_timestamp column in the + * source. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureGroup.BigQuery big_query = 7; + * @return \Google\Cloud\AIPlatform\V1\FeatureGroup\BigQuery|null + */ + public function getBigQuery() + { + return $this->readOneof(7); + } + + public function hasBigQuery() + { + return $this->hasOneof(7); + } + + /** + * Indicates that features for this group come from BigQuery Table/View. + * By default treats the source as a sparse time series source, which is + * required to have an entity_id and a feature_timestamp column in the + * source. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureGroup.BigQuery big_query = 7; + * @param \Google\Cloud\AIPlatform\V1\FeatureGroup\BigQuery $var + * @return $this + */ + public function setBigQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureGroup\BigQuery::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Output only. Name of the FeatureGroup. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the FeatureGroup. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Timestamp when this FeatureGroup was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this FeatureGroup was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this FeatureGroup was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this FeatureGroup was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * FeatureGroup. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureGroup(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * FeatureGroup. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureGroup(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Description of the FeatureGroup. + * + * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the FeatureGroup. + * + * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureGroup/BigQuery.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureGroup/BigQuery.php new file mode 100644 index 000000000000..ca64728fa35c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureGroup/BigQuery.php @@ -0,0 +1,122 @@ +google.cloud.aiplatform.v1.FeatureGroup.BigQuery + */ +class BigQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. The BigQuery source URI that points to either a + * BigQuery Table or View. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQuerySource big_query_source = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + */ + protected $big_query_source = null; + /** + * Optional. Columns to construct entity_id / row keys. Currently only + * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * + * Generated from protobuf field repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $entity_id_columns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\BigQuerySource $big_query_source + * Required. Immutable. The BigQuery source URI that points to either a + * BigQuery Table or View. + * @type array|\Google\Protobuf\Internal\RepeatedField $entity_id_columns + * Optional. Columns to construct entity_id / row keys. Currently only + * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureGroup::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. The BigQuery source URI that points to either a + * BigQuery Table or View. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQuerySource big_query_source = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\BigQuerySource|null + */ + public function getBigQuerySource() + { + return $this->big_query_source; + } + + public function hasBigQuerySource() + { + return isset($this->big_query_source); + } + + public function clearBigQuerySource() + { + unset($this->big_query_source); + } + + /** + * Required. Immutable. The BigQuery source URI that points to either a + * BigQuery Table or View. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQuerySource big_query_source = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\BigQuerySource $var + * @return $this + */ + public function setBigQuerySource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BigQuerySource::class); + $this->big_query_source = $var; + + return $this; + } + + /** + * Optional. Columns to construct entity_id / row keys. Currently only + * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * + * Generated from protobuf field repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntityIdColumns() + { + return $this->entity_id_columns; + } + + /** + * Optional. Columns to construct entity_id / row keys. Currently only + * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * + * Generated from protobuf field repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntityIdColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->entity_id_columns = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BigQuery::class, \Google\Cloud\AIPlatform\V1\FeatureGroup_BigQuery::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureNoiseSigma.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureNoiseSigma.php new file mode 100644 index 000000000000..bd9b905bc264 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureNoiseSigma.php @@ -0,0 +1,69 @@ +google.cloud.aiplatform.v1.FeatureNoiseSigma + */ +class FeatureNoiseSigma extends \Google\Protobuf\Internal\Message +{ + /** + * Noise sigma per feature. No noise is added to features that are not set. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FeatureNoiseSigma.NoiseSigmaForFeature noise_sigma = 1; + */ + private $noise_sigma; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\FeatureNoiseSigma\NoiseSigmaForFeature>|\Google\Protobuf\Internal\RepeatedField $noise_sigma + * Noise sigma per feature. No noise is added to features that are not set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * Noise sigma per feature. No noise is added to features that are not set. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FeatureNoiseSigma.NoiseSigmaForFeature noise_sigma = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNoiseSigma() + { + return $this->noise_sigma; + } + + /** + * Noise sigma per feature. No noise is added to features that are not set. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FeatureNoiseSigma.NoiseSigmaForFeature noise_sigma = 1; + * @param array<\Google\Cloud\AIPlatform\V1\FeatureNoiseSigma\NoiseSigmaForFeature>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNoiseSigma($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\FeatureNoiseSigma\NoiseSigmaForFeature::class); + $this->noise_sigma = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureNoiseSigma/NoiseSigmaForFeature.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureNoiseSigma/NoiseSigmaForFeature.php new file mode 100644 index 000000000000..1d2fdcd7d2a9 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureNoiseSigma/NoiseSigmaForFeature.php @@ -0,0 +1,128 @@ +google.cloud.aiplatform.v1.FeatureNoiseSigma.NoiseSigmaForFeature + */ +class NoiseSigmaForFeature extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the input feature for which noise sigma is provided. The + * features are defined in + * [explanation metadata + * inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * This represents the standard deviation of the Gaussian kernel that will + * be used to add noise to the feature prior to computing gradients. Similar + * to [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma] + * but represents the noise added to the current feature. Defaults to 0.1. + * + * Generated from protobuf field float sigma = 2; + */ + protected $sigma = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the input feature for which noise sigma is provided. The + * features are defined in + * [explanation metadata + * inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * @type float $sigma + * This represents the standard deviation of the Gaussian kernel that will + * be used to add noise to the feature prior to computing gradients. Similar + * to [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma] + * but represents the noise added to the current feature. Defaults to 0.1. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Explanation::initOnce(); + parent::__construct($data); + } + + /** + * The name of the input feature for which noise sigma is provided. The + * features are defined in + * [explanation metadata + * inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the input feature for which noise sigma is provided. The + * features are defined in + * [explanation metadata + * inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * This represents the standard deviation of the Gaussian kernel that will + * be used to add noise to the feature prior to computing gradients. Similar + * to [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma] + * but represents the noise added to the current feature. Defaults to 0.1. + * + * Generated from protobuf field float sigma = 2; + * @return float + */ + public function getSigma() + { + return $this->sigma; + } + + /** + * This represents the standard deviation of the Gaussian kernel that will + * be used to add noise to the feature prior to computing gradients. Similar + * to [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma] + * but represents the noise added to the current feature. Defaults to 0.1. + * + * Generated from protobuf field float sigma = 2; + * @param float $var + * @return $this + */ + public function setSigma($var) + { + GPBUtil::checkFloat($var); + $this->sigma = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NoiseSigmaForFeature::class, \Google\Cloud\AIPlatform\V1\FeatureNoiseSigma_NoiseSigmaForFeature::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore.php new file mode 100644 index 000000000000..ffea4e40cb66 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore.php @@ -0,0 +1,347 @@ +google.cloud.aiplatform.v1.FeatureOnlineStore + */ +class FeatureOnlineStore extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the FeatureOnlineStore. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Timestamp when this FeatureOnlineStore was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this FeatureOnlineStore was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. The labels with user-defined metadata to organize your + * FeatureOnlineStore. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureOnlineStore(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. State of the featureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + protected $storage_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\FeatureOnlineStore\Bigtable $bigtable + * Contains settings for the Cloud Bigtable instance that will be created + * to serve featureValues for all FeatureViews under this + * FeatureOnlineStore. + * @type string $name + * Output only. Name of the FeatureOnlineStore. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this FeatureOnlineStore was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this FeatureOnlineStore was last updated. + * @type string $etag + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The labels with user-defined metadata to organize your + * FeatureOnlineStore. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureOnlineStore(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * @type int $state + * Output only. State of the featureOnlineStore. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStore::initOnce(); + parent::__construct($data); + } + + /** + * Contains settings for the Cloud Bigtable instance that will be created + * to serve featureValues for all FeatureViews under this + * FeatureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable bigtable = 8; + * @return \Google\Cloud\AIPlatform\V1\FeatureOnlineStore\Bigtable|null + */ + public function getBigtable() + { + return $this->readOneof(8); + } + + public function hasBigtable() + { + return $this->hasOneof(8); + } + + /** + * Contains settings for the Cloud Bigtable instance that will be created + * to serve featureValues for all FeatureViews under this + * FeatureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable bigtable = 8; + * @param \Google\Cloud\AIPlatform\V1\FeatureOnlineStore\Bigtable $var + * @return $this + */ + public function setBigtable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureOnlineStore\Bigtable::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Output only. Name of the FeatureOnlineStore. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the FeatureOnlineStore. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Timestamp when this FeatureOnlineStore was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this FeatureOnlineStore was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this FeatureOnlineStore was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this FeatureOnlineStore was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * FeatureOnlineStore. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureOnlineStore(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * FeatureOnlineStore. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureOnlineStore(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. State of the featureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. State of the featureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\FeatureOnlineStore\State::class); + $this->state = $var; + + return $this; + } + + /** + * @return string + */ + public function getStorageType() + { + return $this->whichOneof("storage_type"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore/Bigtable.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore/Bigtable.php new file mode 100644 index 000000000000..0ce31764013b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore/Bigtable.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable + */ +class Bigtable extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Autoscaling config applied to Bigtable Instance. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $auto_scaling = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\FeatureOnlineStore\Bigtable\AutoScaling $auto_scaling + * Required. Autoscaling config applied to Bigtable Instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStore::initOnce(); + parent::__construct($data); + } + + /** + * Required. Autoscaling config applied to Bigtable Instance. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\FeatureOnlineStore\Bigtable\AutoScaling|null + */ + public function getAutoScaling() + { + return $this->auto_scaling; + } + + public function hasAutoScaling() + { + return isset($this->auto_scaling); + } + + public function clearAutoScaling() + { + unset($this->auto_scaling); + } + + /** + * Required. Autoscaling config applied to Bigtable Instance. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling auto_scaling = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\FeatureOnlineStore\Bigtable\AutoScaling $var + * @return $this + */ + public function setAutoScaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureOnlineStore\Bigtable\AutoScaling::class); + $this->auto_scaling = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Bigtable::class, \Google\Cloud\AIPlatform\V1\FeatureOnlineStore_Bigtable::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore/Bigtable/AutoScaling.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore/Bigtable/AutoScaling.php new file mode 100644 index 000000000000..e2e0481b4b99 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore/Bigtable/AutoScaling.php @@ -0,0 +1,164 @@ +google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling + */ +class AutoScaling extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The minimum number of nodes to scale down to. Must be greater + * than or equal to 1. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $min_node_count = 0; + /** + * Required. The maximum number of nodes to scale up to. Must be greater + * than or equal to min_node_count, and less than or equal to 10 times of + * 'min_node_count'. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_node_count = 0; + /** + * Optional. A percentage of the cluster's CPU capacity. Can be from 10% + * to 80%. When a cluster's CPU utilization exceeds the target that you + * have set, Bigtable immediately adds nodes to the cluster. When CPU + * utilization is substantially lower than the target, Bigtable removes + * nodes. If not set will default to 50%. + * + * Generated from protobuf field int32 cpu_utilization_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cpu_utilization_target = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $min_node_count + * Required. The minimum number of nodes to scale down to. Must be greater + * than or equal to 1. + * @type int $max_node_count + * Required. The maximum number of nodes to scale up to. Must be greater + * than or equal to min_node_count, and less than or equal to 10 times of + * 'min_node_count'. + * @type int $cpu_utilization_target + * Optional. A percentage of the cluster's CPU capacity. Can be from 10% + * to 80%. When a cluster's CPU utilization exceeds the target that you + * have set, Bigtable immediately adds nodes to the cluster. When CPU + * utilization is substantially lower than the target, Bigtable removes + * nodes. If not set will default to 50%. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStore::initOnce(); + parent::__construct($data); + } + + /** + * Required. The minimum number of nodes to scale down to. Must be greater + * than or equal to 1. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMinNodeCount() + { + return $this->min_node_count; + } + + /** + * Required. The minimum number of nodes to scale down to. Must be greater + * than or equal to 1. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->min_node_count = $var; + + return $this; + } + + /** + * Required. The maximum number of nodes to scale up to. Must be greater + * than or equal to min_node_count, and less than or equal to 10 times of + * 'min_node_count'. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMaxNodeCount() + { + return $this->max_node_count; + } + + /** + * Required. The maximum number of nodes to scale up to. Must be greater + * than or equal to min_node_count, and less than or equal to 10 times of + * 'min_node_count'. + * + * Generated from protobuf field int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_node_count = $var; + + return $this; + } + + /** + * Optional. A percentage of the cluster's CPU capacity. Can be from 10% + * to 80%. When a cluster's CPU utilization exceeds the target that you + * have set, Bigtable immediately adds nodes to the cluster. When CPU + * utilization is substantially lower than the target, Bigtable removes + * nodes. If not set will default to 50%. + * + * Generated from protobuf field int32 cpu_utilization_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCpuUtilizationTarget() + { + return $this->cpu_utilization_target; + } + + /** + * Optional. A percentage of the cluster's CPU capacity. Can be from 10% + * to 80%. When a cluster's CPU utilization exceeds the target that you + * have set, Bigtable immediately adds nodes to the cluster. When CPU + * utilization is substantially lower than the target, Bigtable removes + * nodes. If not set will default to 50%. + * + * Generated from protobuf field int32 cpu_utilization_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCpuUtilizationTarget($var) + { + GPBUtil::checkInt32($var); + $this->cpu_utilization_target = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AutoScaling::class, \Google\Cloud\AIPlatform\V1\FeatureOnlineStore_Bigtable_AutoScaling::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore/State.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore/State.php new file mode 100644 index 000000000000..695f594f03d4 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureOnlineStore/State.php @@ -0,0 +1,69 @@ +google.cloud.aiplatform.v1.FeatureOnlineStore.State + */ +class State +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * State when the featureOnlineStore configuration is not being updated and + * the fields reflect the current configuration of the featureOnlineStore. + * The featureOnlineStore is usable in this state. + * + * Generated from protobuf enum STABLE = 1; + */ + const STABLE = 1; + /** + * The state of the featureOnlineStore configuration when it is being + * updated. During an update, the fields reflect either the original + * configuration or the updated configuration of the featureOnlineStore. The + * featureOnlineStore is still usable in this state. + * + * Generated from protobuf enum UPDATING = 2; + */ + const UPDATING = 2; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::STABLE => 'STABLE', + self::UPDATING => 'UPDATING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\AIPlatform\V1\FeatureOnlineStore_State::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureSelector.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureSelector.php new file mode 100644 index 000000000000..aa1986f0a09f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureSelector.php @@ -0,0 +1,77 @@ +google.cloud.aiplatform.v1.FeatureSelector + */ +class FeatureSelector extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Matches Features based on ID. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id_matcher = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\IdMatcher $id_matcher + * Required. Matches Features based on ID. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureSelector::initOnce(); + parent::__construct($data); + } + + /** + * Required. Matches Features based on ID. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\IdMatcher|null + */ + public function getIdMatcher() + { + return $this->id_matcher; + } + + public function hasIdMatcher() + { + return isset($this->id_matcher); + } + + public function clearIdMatcher() + { + unset($this->id_matcher); + } + + /** + * Required. Matches Features based on ID. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\IdMatcher $var + * @return $this + */ + public function setIdMatcher($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\IdMatcher::class); + $this->id_matcher = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureStatsAnomaly.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureStatsAnomaly.php new file mode 100644 index 000000000000..5ccd30b5a112 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureStatsAnomaly.php @@ -0,0 +1,411 @@ +google.cloud.aiplatform.v1.FeatureStatsAnomaly + */ +class FeatureStatsAnomaly extends \Google\Protobuf\Internal\Message +{ + /** + * Feature importance score, only populated when cross-feature monitoring is + * enabled. For now only used to represent feature attribution score within + * range [0, 1] for + * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] + * and + * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT]. + * + * Generated from protobuf field double score = 1; + */ + protected $score = 0.0; + /** + * Path of the stats file for current feature values in Cloud Storage bucket. + * Format: gs:////stats. + * Example: gs://monitoring_bucket/feature_name/stats. + * Stats are stored as binary format with Protobuf message + * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto). + * + * Generated from protobuf field string stats_uri = 3; + */ + protected $stats_uri = ''; + /** + * Path of the anomaly file for current feature values in Cloud Storage + * bucket. + * Format: gs:////anomalies. + * Example: gs://monitoring_bucket/feature_name/anomalies. + * Stats are stored as binary format with Protobuf message + * Anoamlies are stored as binary format with Protobuf message + * [tensorflow.metadata.v0.AnomalyInfo] + * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto). + * + * Generated from protobuf field string anomaly_uri = 4; + */ + protected $anomaly_uri = ''; + /** + * Deviation from the current stats to baseline stats. + * 1. For categorical feature, the distribution distance is calculated by + * L-inifinity norm. + * 2. For numerical feature, the distribution distance is calculated by + * Jensen–Shannon divergence. + * + * Generated from protobuf field double distribution_deviation = 5; + */ + protected $distribution_deviation = 0.0; + /** + * This is the threshold used when detecting anomalies. + * The threshold can be changed by user, so this one might be different from + * [ThresholdConfig.value][google.cloud.aiplatform.v1.ThresholdConfig.value]. + * + * Generated from protobuf field double anomaly_detection_threshold = 9; + */ + protected $anomaly_detection_threshold = 0.0; + /** + * The start timestamp of window where stats were generated. + * For objectives where time window doesn't make sense (e.g. Featurestore + * Snapshot Monitoring), start_time is only used to indicate the monitoring + * intervals, so it always equals to (end_time - monitoring_interval). + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; + */ + protected $start_time = null; + /** + * The end timestamp of window where stats were generated. + * For objectives where time window doesn't make sense (e.g. Featurestore + * Snapshot Monitoring), end_time indicates the timestamp of the data used to + * generate stats (e.g. timestamp we take snapshots for feature values). + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $score + * Feature importance score, only populated when cross-feature monitoring is + * enabled. For now only used to represent feature attribution score within + * range [0, 1] for + * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] + * and + * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT]. + * @type string $stats_uri + * Path of the stats file for current feature values in Cloud Storage bucket. + * Format: gs:////stats. + * Example: gs://monitoring_bucket/feature_name/stats. + * Stats are stored as binary format with Protobuf message + * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto). + * @type string $anomaly_uri + * Path of the anomaly file for current feature values in Cloud Storage + * bucket. + * Format: gs:////anomalies. + * Example: gs://monitoring_bucket/feature_name/anomalies. + * Stats are stored as binary format with Protobuf message + * Anoamlies are stored as binary format with Protobuf message + * [tensorflow.metadata.v0.AnomalyInfo] + * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto). + * @type float $distribution_deviation + * Deviation from the current stats to baseline stats. + * 1. For categorical feature, the distribution distance is calculated by + * L-inifinity norm. + * 2. For numerical feature, the distribution distance is calculated by + * Jensen–Shannon divergence. + * @type float $anomaly_detection_threshold + * This is the threshold used when detecting anomalies. + * The threshold can be changed by user, so this one might be different from + * [ThresholdConfig.value][google.cloud.aiplatform.v1.ThresholdConfig.value]. + * @type \Google\Protobuf\Timestamp $start_time + * The start timestamp of window where stats were generated. + * For objectives where time window doesn't make sense (e.g. Featurestore + * Snapshot Monitoring), start_time is only used to indicate the monitoring + * intervals, so it always equals to (end_time - monitoring_interval). + * @type \Google\Protobuf\Timestamp $end_time + * The end timestamp of window where stats were generated. + * For objectives where time window doesn't make sense (e.g. Featurestore + * Snapshot Monitoring), end_time indicates the timestamp of the data used to + * generate stats (e.g. timestamp we take snapshots for feature values). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureMonitoringStats::initOnce(); + parent::__construct($data); + } + + /** + * Feature importance score, only populated when cross-feature monitoring is + * enabled. For now only used to represent feature attribution score within + * range [0, 1] for + * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] + * and + * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT]. + * + * Generated from protobuf field double score = 1; + * @return float + */ + public function getScore() + { + return $this->score; + } + + /** + * Feature importance score, only populated when cross-feature monitoring is + * enabled. For now only used to represent feature attribution score within + * range [0, 1] for + * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] + * and + * [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT]. + * + * Generated from protobuf field double score = 1; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkDouble($var); + $this->score = $var; + + return $this; + } + + /** + * Path of the stats file for current feature values in Cloud Storage bucket. + * Format: gs:////stats. + * Example: gs://monitoring_bucket/feature_name/stats. + * Stats are stored as binary format with Protobuf message + * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto). + * + * Generated from protobuf field string stats_uri = 3; + * @return string + */ + public function getStatsUri() + { + return $this->stats_uri; + } + + /** + * Path of the stats file for current feature values in Cloud Storage bucket. + * Format: gs:////stats. + * Example: gs://monitoring_bucket/feature_name/stats. + * Stats are stored as binary format with Protobuf message + * [tensorflow.metadata.v0.FeatureNameStatistics](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto). + * + * Generated from protobuf field string stats_uri = 3; + * @param string $var + * @return $this + */ + public function setStatsUri($var) + { + GPBUtil::checkString($var, True); + $this->stats_uri = $var; + + return $this; + } + + /** + * Path of the anomaly file for current feature values in Cloud Storage + * bucket. + * Format: gs:////anomalies. + * Example: gs://monitoring_bucket/feature_name/anomalies. + * Stats are stored as binary format with Protobuf message + * Anoamlies are stored as binary format with Protobuf message + * [tensorflow.metadata.v0.AnomalyInfo] + * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto). + * + * Generated from protobuf field string anomaly_uri = 4; + * @return string + */ + public function getAnomalyUri() + { + return $this->anomaly_uri; + } + + /** + * Path of the anomaly file for current feature values in Cloud Storage + * bucket. + * Format: gs:////anomalies. + * Example: gs://monitoring_bucket/feature_name/anomalies. + * Stats are stored as binary format with Protobuf message + * Anoamlies are stored as binary format with Protobuf message + * [tensorflow.metadata.v0.AnomalyInfo] + * (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto). + * + * Generated from protobuf field string anomaly_uri = 4; + * @param string $var + * @return $this + */ + public function setAnomalyUri($var) + { + GPBUtil::checkString($var, True); + $this->anomaly_uri = $var; + + return $this; + } + + /** + * Deviation from the current stats to baseline stats. + * 1. For categorical feature, the distribution distance is calculated by + * L-inifinity norm. + * 2. For numerical feature, the distribution distance is calculated by + * Jensen–Shannon divergence. + * + * Generated from protobuf field double distribution_deviation = 5; + * @return float + */ + public function getDistributionDeviation() + { + return $this->distribution_deviation; + } + + /** + * Deviation from the current stats to baseline stats. + * 1. For categorical feature, the distribution distance is calculated by + * L-inifinity norm. + * 2. For numerical feature, the distribution distance is calculated by + * Jensen–Shannon divergence. + * + * Generated from protobuf field double distribution_deviation = 5; + * @param float $var + * @return $this + */ + public function setDistributionDeviation($var) + { + GPBUtil::checkDouble($var); + $this->distribution_deviation = $var; + + return $this; + } + + /** + * This is the threshold used when detecting anomalies. + * The threshold can be changed by user, so this one might be different from + * [ThresholdConfig.value][google.cloud.aiplatform.v1.ThresholdConfig.value]. + * + * Generated from protobuf field double anomaly_detection_threshold = 9; + * @return float + */ + public function getAnomalyDetectionThreshold() + { + return $this->anomaly_detection_threshold; + } + + /** + * This is the threshold used when detecting anomalies. + * The threshold can be changed by user, so this one might be different from + * [ThresholdConfig.value][google.cloud.aiplatform.v1.ThresholdConfig.value]. + * + * Generated from protobuf field double anomaly_detection_threshold = 9; + * @param float $var + * @return $this + */ + public function setAnomalyDetectionThreshold($var) + { + GPBUtil::checkDouble($var); + $this->anomaly_detection_threshold = $var; + + return $this; + } + + /** + * The start timestamp of window where stats were generated. + * For objectives where time window doesn't make sense (e.g. Featurestore + * Snapshot Monitoring), start_time is only used to indicate the monitoring + * intervals, so it always equals to (end_time - monitoring_interval). + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * The start timestamp of window where stats were generated. + * For objectives where time window doesn't make sense (e.g. Featurestore + * Snapshot Monitoring), start_time is only used to indicate the monitoring + * intervals, so it always equals to (end_time - monitoring_interval). + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * The end timestamp of window where stats were generated. + * For objectives where time window doesn't make sense (e.g. Featurestore + * Snapshot Monitoring), end_time indicates the timestamp of the data used to + * generate stats (e.g. timestamp we take snapshots for feature values). + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * The end timestamp of window where stats were generated. + * For objectives where time window doesn't make sense (e.g. Featurestore + * Snapshot Monitoring), end_time indicates the timestamp of the data used to + * generate stats (e.g. timestamp we take snapshots for feature values). + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValue.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValue.php new file mode 100644 index 000000000000..30f42026cf25 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValue.php @@ -0,0 +1,383 @@ +google.cloud.aiplatform.v1.FeatureValue + */ +class FeatureValue extends \Google\Protobuf\Internal\Message +{ + /** + * Metadata of feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValue.Metadata metadata = 14; + */ + protected $metadata = null; + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $bool_value + * Bool type feature value. + * @type float $double_value + * Double type feature value. + * @type int|string $int64_value + * Int64 feature value. + * @type string $string_value + * String feature value. + * @type \Google\Cloud\AIPlatform\V1\BoolArray $bool_array_value + * A list of bool type feature value. + * @type \Google\Cloud\AIPlatform\V1\DoubleArray $double_array_value + * A list of double type feature value. + * @type \Google\Cloud\AIPlatform\V1\Int64Array $int64_array_value + * A list of int64 type feature value. + * @type \Google\Cloud\AIPlatform\V1\StringArray $string_array_value + * A list of string type feature value. + * @type string $bytes_value + * Bytes feature value. + * @type \Google\Cloud\AIPlatform\V1\FeatureValue\Metadata $metadata + * Metadata of feature value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreOnlineService::initOnce(); + parent::__construct($data); + } + + /** + * Bool type feature value. + * + * Generated from protobuf field bool bool_value = 1; + * @return bool + */ + public function getBoolValue() + { + return $this->readOneof(1); + } + + public function hasBoolValue() + { + return $this->hasOneof(1); + } + + /** + * Bool type feature value. + * + * Generated from protobuf field bool bool_value = 1; + * @param bool $var + * @return $this + */ + public function setBoolValue($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Double type feature value. + * + * Generated from protobuf field double double_value = 2; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(2); + } + + public function hasDoubleValue() + { + return $this->hasOneof(2); + } + + /** + * Double type feature value. + * + * Generated from protobuf field double double_value = 2; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Int64 feature value. + * + * Generated from protobuf field int64 int64_value = 5; + * @return int|string + */ + public function getInt64Value() + { + return $this->readOneof(5); + } + + public function hasInt64Value() + { + return $this->hasOneof(5); + } + + /** + * Int64 feature value. + * + * Generated from protobuf field int64 int64_value = 5; + * @param int|string $var + * @return $this + */ + public function setInt64Value($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * String feature value. + * + * Generated from protobuf field string string_value = 6; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(6); + } + + public function hasStringValue() + { + return $this->hasOneof(6); + } + + /** + * String feature value. + * + * Generated from protobuf field string string_value = 6; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * A list of bool type feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BoolArray bool_array_value = 7; + * @return \Google\Cloud\AIPlatform\V1\BoolArray|null + */ + public function getBoolArrayValue() + { + return $this->readOneof(7); + } + + public function hasBoolArrayValue() + { + return $this->hasOneof(7); + } + + /** + * A list of bool type feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BoolArray bool_array_value = 7; + * @param \Google\Cloud\AIPlatform\V1\BoolArray $var + * @return $this + */ + public function setBoolArrayValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BoolArray::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * A list of double type feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DoubleArray double_array_value = 8; + * @return \Google\Cloud\AIPlatform\V1\DoubleArray|null + */ + public function getDoubleArrayValue() + { + return $this->readOneof(8); + } + + public function hasDoubleArrayValue() + { + return $this->hasOneof(8); + } + + /** + * A list of double type feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DoubleArray double_array_value = 8; + * @param \Google\Cloud\AIPlatform\V1\DoubleArray $var + * @return $this + */ + public function setDoubleArrayValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DoubleArray::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * A list of int64 type feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Int64Array int64_array_value = 11; + * @return \Google\Cloud\AIPlatform\V1\Int64Array|null + */ + public function getInt64ArrayValue() + { + return $this->readOneof(11); + } + + public function hasInt64ArrayValue() + { + return $this->hasOneof(11); + } + + /** + * A list of int64 type feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Int64Array int64_array_value = 11; + * @param \Google\Cloud\AIPlatform\V1\Int64Array $var + * @return $this + */ + public function setInt64ArrayValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Int64Array::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * A list of string type feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.StringArray string_array_value = 12; + * @return \Google\Cloud\AIPlatform\V1\StringArray|null + */ + public function getStringArrayValue() + { + return $this->readOneof(12); + } + + public function hasStringArrayValue() + { + return $this->hasOneof(12); + } + + /** + * A list of string type feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.StringArray string_array_value = 12; + * @param \Google\Cloud\AIPlatform\V1\StringArray $var + * @return $this + */ + public function setStringArrayValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\StringArray::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Bytes feature value. + * + * Generated from protobuf field bytes bytes_value = 13; + * @return string + */ + public function getBytesValue() + { + return $this->readOneof(13); + } + + public function hasBytesValue() + { + return $this->hasOneof(13); + } + + /** + * Bytes feature value. + * + * Generated from protobuf field bytes bytes_value = 13; + * @param string $var + * @return $this + */ + public function setBytesValue($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Metadata of feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValue.Metadata metadata = 14; + * @return \Google\Cloud\AIPlatform\V1\FeatureValue\Metadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Metadata of feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValue.Metadata metadata = 14; + * @param \Google\Cloud\AIPlatform\V1\FeatureValue\Metadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureValue\Metadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValue/Metadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValue/Metadata.php new file mode 100644 index 000000000000..16b13a89cddb --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValue/Metadata.php @@ -0,0 +1,100 @@ +google.cloud.aiplatform.v1.FeatureValue.Metadata + */ +class Metadata extends \Google\Protobuf\Internal\Message +{ + /** + * Feature generation timestamp. Typically, it is provided by user at + * feature ingestion time. If not, feature store + * will use the system timestamp when the data is ingested into feature + * store. For streaming ingestion, the time, aligned by days, must be no + * older than five years (1825 days) and no later than one year (366 days) + * in the future. + * + * Generated from protobuf field .google.protobuf.Timestamp generate_time = 1; + */ + protected $generate_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $generate_time + * Feature generation timestamp. Typically, it is provided by user at + * feature ingestion time. If not, feature store + * will use the system timestamp when the data is ingested into feature + * store. For streaming ingestion, the time, aligned by days, must be no + * older than five years (1825 days) and no later than one year (366 days) + * in the future. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreOnlineService::initOnce(); + parent::__construct($data); + } + + /** + * Feature generation timestamp. Typically, it is provided by user at + * feature ingestion time. If not, feature store + * will use the system timestamp when the data is ingested into feature + * store. For streaming ingestion, the time, aligned by days, must be no + * older than five years (1825 days) and no later than one year (366 days) + * in the future. + * + * Generated from protobuf field .google.protobuf.Timestamp generate_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getGenerateTime() + { + return $this->generate_time; + } + + public function hasGenerateTime() + { + return isset($this->generate_time); + } + + public function clearGenerateTime() + { + unset($this->generate_time); + } + + /** + * Feature generation timestamp. Typically, it is provided by user at + * feature ingestion time. If not, feature store + * will use the system timestamp when the data is ingested into feature + * store. For streaming ingestion, the time, aligned by days, must be no + * older than five years (1825 days) and no later than one year (366 days) + * in the future. + * + * Generated from protobuf field .google.protobuf.Timestamp generate_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setGenerateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->generate_time = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Metadata::class, \Google\Cloud\AIPlatform\V1\FeatureValue_Metadata::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValueDestination.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValueDestination.php new file mode 100644 index 000000000000..baafabaa7932 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValueDestination.php @@ -0,0 +1,180 @@ +google.cloud.aiplatform.v1.FeatureValueDestination + */ +class FeatureValueDestination extends \Google\Protobuf\Internal\Message +{ + protected $destination; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\BigQueryDestination $bigquery_destination + * Output in BigQuery format. + * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1.BigQueryDestination.output_uri] + * in + * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1.FeatureValueDestination.bigquery_destination] + * must refer to a table. + * @type \Google\Cloud\AIPlatform\V1\TFRecordDestination $tfrecord_destination + * Output in TFRecord format. + * Below are the mapping from Feature value type + * in Featurestore to Feature value type in TFRecord: + * Value type in Featurestore | Value type in TFRecord + * DOUBLE, DOUBLE_ARRAY | FLOAT_LIST + * INT64, INT64_ARRAY | INT64_LIST + * STRING, STRING_ARRAY, BYTES | BYTES_LIST + * true -> byte_string("true"), false -> byte_string("false") + * BOOL, BOOL_ARRAY (true, false) | BYTES_LIST + * @type \Google\Cloud\AIPlatform\V1\CsvDestination $csv_destination + * Output in CSV format. Array Feature value types are not allowed in CSV + * format. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Output in BigQuery format. + * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1.BigQueryDestination.output_uri] + * in + * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1.FeatureValueDestination.bigquery_destination] + * must refer to a table. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1; + * @return \Google\Cloud\AIPlatform\V1\BigQueryDestination|null + */ + public function getBigqueryDestination() + { + return $this->readOneof(1); + } + + public function hasBigqueryDestination() + { + return $this->hasOneof(1); + } + + /** + * Output in BigQuery format. + * [BigQueryDestination.output_uri][google.cloud.aiplatform.v1.BigQueryDestination.output_uri] + * in + * [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1.FeatureValueDestination.bigquery_destination] + * must refer to a table. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1; + * @param \Google\Cloud\AIPlatform\V1\BigQueryDestination $var + * @return $this + */ + public function setBigqueryDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BigQueryDestination::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Output in TFRecord format. + * Below are the mapping from Feature value type + * in Featurestore to Feature value type in TFRecord: + * Value type in Featurestore | Value type in TFRecord + * DOUBLE, DOUBLE_ARRAY | FLOAT_LIST + * INT64, INT64_ARRAY | INT64_LIST + * STRING, STRING_ARRAY, BYTES | BYTES_LIST + * true -> byte_string("true"), false -> byte_string("false") + * BOOL, BOOL_ARRAY (true, false) | BYTES_LIST + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TFRecordDestination tfrecord_destination = 2; + * @return \Google\Cloud\AIPlatform\V1\TFRecordDestination|null + */ + public function getTfrecordDestination() + { + return $this->readOneof(2); + } + + public function hasTfrecordDestination() + { + return $this->hasOneof(2); + } + + /** + * Output in TFRecord format. + * Below are the mapping from Feature value type + * in Featurestore to Feature value type in TFRecord: + * Value type in Featurestore | Value type in TFRecord + * DOUBLE, DOUBLE_ARRAY | FLOAT_LIST + * INT64, INT64_ARRAY | INT64_LIST + * STRING, STRING_ARRAY, BYTES | BYTES_LIST + * true -> byte_string("true"), false -> byte_string("false") + * BOOL, BOOL_ARRAY (true, false) | BYTES_LIST + * + * Generated from protobuf field .google.cloud.aiplatform.v1.TFRecordDestination tfrecord_destination = 2; + * @param \Google\Cloud\AIPlatform\V1\TFRecordDestination $var + * @return $this + */ + public function setTfrecordDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\TFRecordDestination::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Output in CSV format. Array Feature value types are not allowed in CSV + * format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CsvDestination csv_destination = 3; + * @return \Google\Cloud\AIPlatform\V1\CsvDestination|null + */ + public function getCsvDestination() + { + return $this->readOneof(3); + } + + public function hasCsvDestination() + { + return $this->hasOneof(3); + } + + /** + * Output in CSV format. Array Feature value types are not allowed in CSV + * format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CsvDestination csv_destination = 3; + * @param \Google\Cloud\AIPlatform\V1\CsvDestination $var + * @return $this + */ + public function setCsvDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CsvDestination::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getDestination() + { + return $this->whichOneof("destination"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValueList.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValueList.php new file mode 100644 index 000000000000..d5055a28ee0c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureValueList.php @@ -0,0 +1,67 @@ +google.cloud.aiplatform.v1.FeatureValueList + */ +class FeatureValueList extends \Google\Protobuf\Internal\Message +{ + /** + * A list of feature values. All of them should be the same data type. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FeatureValue values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\FeatureValue>|\Google\Protobuf\Internal\RepeatedField $values + * A list of feature values. All of them should be the same data type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreOnlineService::initOnce(); + parent::__construct($data); + } + + /** + * A list of feature values. All of them should be the same data type. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FeatureValue values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * A list of feature values. All of them should be the same data type. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FeatureValue values = 1; + * @param array<\Google\Cloud\AIPlatform\V1\FeatureValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\FeatureValue::class); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView.php new file mode 100644 index 000000000000..fc825e38db48 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView.php @@ -0,0 +1,397 @@ +google.cloud.aiplatform.v1.FeatureView + */ +class FeatureView extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the FeatureView. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Timestamp when this FeatureView was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this FeatureView was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. The labels with user-defined metadata to organize your + * FeatureViews. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureOnlineStore(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Configures when data is to be synced/updated for this FeatureView. At the + * end of the sync the latest featureValues for each entityId of this + * FeatureView are made ready for online serving. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + */ + protected $sync_config = null; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\FeatureView\BigQuerySource $big_query_source + * Optional. Configures how data is supposed to be extracted from a BigQuery + * source to be loaded onto the FeatureOnlineStore. + * @type \Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource $feature_registry_source + * Optional. Configures the features from a Feature Registry source that + * need to be loaded onto the FeatureOnlineStore. + * @type string $name + * Output only. Name of the FeatureView. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this FeatureView was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this FeatureView was last updated. + * @type string $etag + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The labels with user-defined metadata to organize your + * FeatureViews. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureOnlineStore(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * @type \Google\Cloud\AIPlatform\V1\FeatureView\SyncConfig $sync_config + * Configures when data is to be synced/updated for this FeatureView. At the + * end of the sync the latest featureValues for each entityId of this + * FeatureView are made ready for online serving. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureView::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Configures how data is supposed to be extracted from a BigQuery + * source to be loaded onto the FeatureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\FeatureView\BigQuerySource|null + */ + public function getBigQuerySource() + { + return $this->readOneof(6); + } + + public function hasBigQuerySource() + { + return $this->hasOneof(6); + } + + /** + * Optional. Configures how data is supposed to be extracted from a BigQuery + * source to be loaded onto the FeatureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\FeatureView\BigQuerySource $var + * @return $this + */ + public function setBigQuerySource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureView\BigQuerySource::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Optional. Configures the features from a Feature Registry source that + * need to be loaded onto the FeatureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource|null + */ + public function getFeatureRegistrySource() + { + return $this->readOneof(9); + } + + public function hasFeatureRegistrySource() + { + return $this->hasOneof(9); + } + + /** + * Optional. Configures the features from a Feature Registry source that + * need to be loaded onto the FeatureOnlineStore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource $var + * @return $this + */ + public function setFeatureRegistrySource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Output only. Name of the FeatureView. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the FeatureView. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Timestamp when this FeatureView was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this FeatureView was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this FeatureView was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this FeatureView was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * FeatureViews. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureOnlineStore(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * FeatureViews. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureOnlineStore(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Configures when data is to be synced/updated for this FeatureView. At the + * end of the sync the latest featureValues for each entityId of this + * FeatureView are made ready for online serving. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * @return \Google\Cloud\AIPlatform\V1\FeatureView\SyncConfig|null + */ + public function getSyncConfig() + { + return $this->sync_config; + } + + public function hasSyncConfig() + { + return isset($this->sync_config); + } + + public function clearSyncConfig() + { + unset($this->sync_config); + } + + /** + * Configures when data is to be synced/updated for this FeatureView. At the + * end of the sync the latest featureValues for each entityId of this + * FeatureView are made ready for online serving. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * @param \Google\Cloud\AIPlatform\V1\FeatureView\SyncConfig $var + * @return $this + */ + public function setSyncConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureView\SyncConfig::class); + $this->sync_config = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/BigQuerySource.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/BigQuerySource.php new file mode 100644 index 000000000000..dbc27ccb3716 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/BigQuerySource.php @@ -0,0 +1,110 @@ +google.cloud.aiplatform.v1.FeatureView.BigQuerySource + */ +class BigQuerySource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The BigQuery view URI that will be materialized on each sync + * trigger based on FeatureView.SyncConfig. + * + * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $uri = ''; + /** + * Required. Columns to construct entity_id / row keys. Start by supporting + * 1 only. + * + * Generated from protobuf field repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $entity_id_columns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * Required. The BigQuery view URI that will be materialized on each sync + * trigger based on FeatureView.SyncConfig. + * @type array|\Google\Protobuf\Internal\RepeatedField $entity_id_columns + * Required. Columns to construct entity_id / row keys. Start by supporting + * 1 only. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureView::initOnce(); + parent::__construct($data); + } + + /** + * Required. The BigQuery view URI that will be materialized on each sync + * trigger based on FeatureView.SyncConfig. + * + * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * Required. The BigQuery view URI that will be materialized on each sync + * trigger based on FeatureView.SyncConfig. + * + * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Required. Columns to construct entity_id / row keys. Start by supporting + * 1 only. + * + * Generated from protobuf field repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntityIdColumns() + { + return $this->entity_id_columns; + } + + /** + * Required. Columns to construct entity_id / row keys. Start by supporting + * 1 only. + * + * Generated from protobuf field repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntityIdColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->entity_id_columns = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BigQuerySource::class, \Google\Cloud\AIPlatform\V1\FeatureView_BigQuerySource::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/FeatureRegistrySource.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/FeatureRegistrySource.php new file mode 100644 index 000000000000..2e2f8a4fb65c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/FeatureRegistrySource.php @@ -0,0 +1,71 @@ +google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource + */ +class FeatureRegistrySource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. List of features that need to be synced to Online Store. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup feature_groups = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $feature_groups; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource\FeatureGroup>|\Google\Protobuf\Internal\RepeatedField $feature_groups + * Required. List of features that need to be synced to Online Store. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureView::initOnce(); + parent::__construct($data); + } + + /** + * Required. List of features that need to be synced to Online Store. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup feature_groups = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFeatureGroups() + { + return $this->feature_groups; + } + + /** + * Required. List of features that need to be synced to Online Store. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup feature_groups = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource\FeatureGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFeatureGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource\FeatureGroup::class); + $this->feature_groups = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FeatureRegistrySource::class, \Google\Cloud\AIPlatform\V1\FeatureView_FeatureRegistrySource::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/FeatureRegistrySource/FeatureGroup.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/FeatureRegistrySource/FeatureGroup.php new file mode 100644 index 000000000000..e5a4d86d9879 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/FeatureRegistrySource/FeatureGroup.php @@ -0,0 +1,105 @@ +google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + */ +class FeatureGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Identifier of the feature group. + * + * Generated from protobuf field string feature_group_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $feature_group_id = ''; + /** + * Required. Identifiers of features under the feature group. + * + * Generated from protobuf field repeated string feature_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $feature_ids; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $feature_group_id + * Required. Identifier of the feature group. + * @type array|\Google\Protobuf\Internal\RepeatedField $feature_ids + * Required. Identifiers of features under the feature group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureView::initOnce(); + parent::__construct($data); + } + + /** + * Required. Identifier of the feature group. + * + * Generated from protobuf field string feature_group_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFeatureGroupId() + { + return $this->feature_group_id; + } + + /** + * Required. Identifier of the feature group. + * + * Generated from protobuf field string feature_group_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFeatureGroupId($var) + { + GPBUtil::checkString($var, True); + $this->feature_group_id = $var; + + return $this; + } + + /** + * Required. Identifiers of features under the feature group. + * + * Generated from protobuf field repeated string feature_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFeatureIds() + { + return $this->feature_ids; + } + + /** + * Required. Identifiers of features under the feature group. + * + * Generated from protobuf field repeated string feature_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFeatureIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->feature_ids = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FeatureGroup::class, \Google\Cloud\AIPlatform\V1\FeatureView_FeatureRegistrySource_FeatureGroup::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/SyncConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/SyncConfig.php new file mode 100644 index 000000000000..0ec24a86fbd3 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureView/SyncConfig.php @@ -0,0 +1,88 @@ +google.cloud.aiplatform.v1.FeatureView.SyncConfig + */ +class SyncConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled + * runs. To explicitly set a timezone to the cron tab, apply a prefix in + * the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". + * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + * database. For example, "CRON_TZ=America/New_York 1 * * * *", or + * "TZ=America/New_York 1 * * * *". + * + * Generated from protobuf field string cron = 1; + */ + protected $cron = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cron + * Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled + * runs. To explicitly set a timezone to the cron tab, apply a prefix in + * the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". + * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + * database. For example, "CRON_TZ=America/New_York 1 * * * *", or + * "TZ=America/New_York 1 * * * *". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureView::initOnce(); + parent::__construct($data); + } + + /** + * Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled + * runs. To explicitly set a timezone to the cron tab, apply a prefix in + * the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". + * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + * database. For example, "CRON_TZ=America/New_York 1 * * * *", or + * "TZ=America/New_York 1 * * * *". + * + * Generated from protobuf field string cron = 1; + * @return string + */ + public function getCron() + { + return $this->cron; + } + + /** + * Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled + * runs. To explicitly set a timezone to the cron tab, apply a prefix in + * the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". + * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + * database. For example, "CRON_TZ=America/New_York 1 * * * *", or + * "TZ=America/New_York 1 * * * *". + * + * Generated from protobuf field string cron = 1; + * @param string $var + * @return $this + */ + public function setCron($var) + { + GPBUtil::checkString($var, True); + $this->cron = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SyncConfig::class, \Google\Cloud\AIPlatform\V1\FeatureView_SyncConfig::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureViewDataFormat.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureViewDataFormat.php new file mode 100644 index 000000000000..621918058759 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureViewDataFormat.php @@ -0,0 +1,61 @@ +google.cloud.aiplatform.v1.FeatureViewDataFormat + */ +class FeatureViewDataFormat +{ + /** + * Not set. Will be treated as the KeyValue format. + * + * Generated from protobuf enum FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED = 0; + */ + const FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED = 0; + /** + * Return response data in key-value format. + * + * Generated from protobuf enum KEY_VALUE = 1; + */ + const KEY_VALUE = 1; + /** + * Return response data in proto Struct format. + * + * Generated from protobuf enum PROTO_STRUCT = 2; + */ + const PROTO_STRUCT = 2; + + private static $valueToName = [ + self::FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED => 'FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED', + self::KEY_VALUE => 'KEY_VALUE', + self::PROTO_STRUCT => 'PROTO_STRUCT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureViewDataKey.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureViewDataKey.php new file mode 100644 index 000000000000..7c8502400c07 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureViewDataKey.php @@ -0,0 +1,75 @@ +google.cloud.aiplatform.v1.FeatureViewDataKey + */ +class FeatureViewDataKey extends \Google\Protobuf\Internal\Message +{ + protected $key_oneof; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * String key to use for lookup. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreService::initOnce(); + parent::__construct($data); + } + + /** + * String key to use for lookup. + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->readOneof(1); + } + + public function hasKey() + { + return $this->hasOneof(1); + } + + /** + * String key to use for lookup. + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getKeyOneof() + { + return $this->whichOneof("key_oneof"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureViewSync.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureViewSync.php new file mode 100644 index 000000000000..bd5271fbb08e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeatureViewSync.php @@ -0,0 +1,212 @@ +google.cloud.aiplatform.v1.FeatureViewSync + */ +class FeatureViewSync extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the FeatureViewSync. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Time when this FeatureViewSync is created. Creation of a + * FeatureViewSync means that the job is pending / waiting for sufficient + * resources but may not have started the actual data transfer yet. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when this FeatureViewSync is finished. + * + * Generated from protobuf field .google.type.Interval run_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $run_time = null; + /** + * Output only. Final status of the FeatureViewSync. + * + * Generated from protobuf field .google.rpc.Status final_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $final_status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the FeatureViewSync. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this FeatureViewSync is created. Creation of a + * FeatureViewSync means that the job is pending / waiting for sufficient + * resources but may not have started the actual data transfer yet. + * @type \Google\Type\Interval $run_time + * Output only. Time when this FeatureViewSync is finished. + * @type \Google\Rpc\Status $final_status + * Output only. Final status of the FeatureViewSync. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureViewSync::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the FeatureViewSync. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the FeatureViewSync. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Time when this FeatureViewSync is created. Creation of a + * FeatureViewSync means that the job is pending / waiting for sufficient + * resources but may not have started the actual data transfer yet. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this FeatureViewSync is created. Creation of a + * FeatureViewSync means that the job is pending / waiting for sufficient + * resources but may not have started the actual data transfer yet. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when this FeatureViewSync is finished. + * + * Generated from protobuf field .google.type.Interval run_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\Interval|null + */ + public function getRunTime() + { + return $this->run_time; + } + + public function hasRunTime() + { + return isset($this->run_time); + } + + public function clearRunTime() + { + unset($this->run_time); + } + + /** + * Output only. Time when this FeatureViewSync is finished. + * + * Generated from protobuf field .google.type.Interval run_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setRunTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->run_time = $var; + + return $this; + } + + /** + * Output only. Final status of the FeatureViewSync. + * + * Generated from protobuf field .google.rpc.Status final_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getFinalStatus() + { + return $this->final_status; + } + + public function hasFinalStatus() + { + return isset($this->final_status); + } + + public function clearFinalStatus() + { + unset($this->final_status); + } + + /** + * Output only. Final status of the FeatureViewSync. + * + * Generated from protobuf field .google.rpc.Status final_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setFinalStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->final_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore.php new file mode 100644 index 000000000000..d538cfed35fc --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore.php @@ -0,0 +1,461 @@ +google.cloud.aiplatform.v1.Featurestore + */ +class Featurestore extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the Featurestore. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Timestamp when this Featurestore was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this Featurestore was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. The labels with user-defined metadata to organize your + * Featurestore. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one Featurestore(System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Config for online storage resources. The field should not + * co-exist with the field of `OnlineStoreReplicationConfig`. If both of it + * and OnlineStoreReplicationConfig are unset, the feature store will not have + * an online store and cannot be used for online serving. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $online_serving_config = null; + /** + * Output only. State of the featurestore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Optional. TTL in days for feature values that will be stored in online + * serving storage. The Feature Store online storage periodically removes + * obsolete feature values older than `online_storage_ttl_days` since the + * feature generation time. Note that `online_storage_ttl_days` should be less + * than or equal to `offline_storage_ttl_days` for each EntityType under a + * featurestore. If not set, default to 4000 days + * + * Generated from protobuf field int32 online_storage_ttl_days = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $online_storage_ttl_days = 0; + /** + * Optional. Customer-managed encryption key spec for data storage. If set, + * both of the online and offline data storage will be secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $encryption_spec = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the Featurestore. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this Featurestore was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this Featurestore was last updated. + * @type string $etag + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The labels with user-defined metadata to organize your + * Featurestore. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one Featurestore(System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * @type \Google\Cloud\AIPlatform\V1\Featurestore\OnlineServingConfig $online_serving_config + * Optional. Config for online storage resources. The field should not + * co-exist with the field of `OnlineStoreReplicationConfig`. If both of it + * and OnlineStoreReplicationConfig are unset, the feature store will not have + * an online store and cannot be used for online serving. + * @type int $state + * Output only. State of the featurestore. + * @type int $online_storage_ttl_days + * Optional. TTL in days for feature values that will be stored in online + * serving storage. The Feature Store online storage periodically removes + * obsolete feature values older than `online_storage_ttl_days` since the + * feature generation time. Note that `online_storage_ttl_days` should be less + * than or equal to `offline_storage_ttl_days` for each EntityType under a + * featurestore. If not set, default to 4000 days + * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec + * Optional. Customer-managed encryption key spec for data storage. If set, + * both of the online and offline data storage will be secured by this key. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Featurestore::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the Featurestore. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the Featurestore. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Featurestore was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this Featurestore was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Featurestore was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this Featurestore was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. Used to perform consistent read-modify-write updates. If not set, + * a blind "overwrite" update happens. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * Featurestore. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one Featurestore(System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The labels with user-defined metadata to organize your + * Featurestore. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one Featurestore(System + * labels are excluded)." + * System reserved label keys are prefixed with "aiplatform.googleapis.com/" + * and are immutable. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Config for online storage resources. The field should not + * co-exist with the field of `OnlineStoreReplicationConfig`. If both of it + * and OnlineStoreReplicationConfig are unset, the feature store will not have + * an online store and cannot be used for online serving. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\Featurestore\OnlineServingConfig|null + */ + public function getOnlineServingConfig() + { + return $this->online_serving_config; + } + + public function hasOnlineServingConfig() + { + return isset($this->online_serving_config); + } + + public function clearOnlineServingConfig() + { + unset($this->online_serving_config); + } + + /** + * Optional. Config for online storage resources. The field should not + * co-exist with the field of `OnlineStoreReplicationConfig`. If both of it + * and OnlineStoreReplicationConfig are unset, the feature store will not have + * an online store and cannot be used for online serving. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig online_serving_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\Featurestore\OnlineServingConfig $var + * @return $this + */ + public function setOnlineServingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Featurestore\OnlineServingConfig::class); + $this->online_serving_config = $var; + + return $this; + } + + /** + * Output only. State of the featurestore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. State of the featurestore. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\Featurestore\State::class); + $this->state = $var; + + return $this; + } + + /** + * Optional. TTL in days for feature values that will be stored in online + * serving storage. The Feature Store online storage periodically removes + * obsolete feature values older than `online_storage_ttl_days` since the + * feature generation time. Note that `online_storage_ttl_days` should be less + * than or equal to `offline_storage_ttl_days` for each EntityType under a + * featurestore. If not set, default to 4000 days + * + * Generated from protobuf field int32 online_storage_ttl_days = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getOnlineStorageTtlDays() + { + return $this->online_storage_ttl_days; + } + + /** + * Optional. TTL in days for feature values that will be stored in online + * serving storage. The Feature Store online storage periodically removes + * obsolete feature values older than `online_storage_ttl_days` since the + * feature generation time. Note that `online_storage_ttl_days` should be less + * than or equal to `offline_storage_ttl_days` for each EntityType under a + * featurestore. If not set, default to 4000 days + * + * Generated from protobuf field int32 online_storage_ttl_days = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setOnlineStorageTtlDays($var) + { + GPBUtil::checkInt32($var); + $this->online_storage_ttl_days = $var; + + return $this; + } + + /** + * Optional. Customer-managed encryption key spec for data storage. If set, + * both of the online and offline data storage will be secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Optional. Customer-managed encryption key spec for data storage. If set, + * both of the online and offline data storage will be secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore/OnlineServingConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore/OnlineServingConfig.php new file mode 100644 index 000000000000..e8aa9efb9842 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore/OnlineServingConfig.php @@ -0,0 +1,135 @@ +google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + */ +class OnlineServingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The number of nodes for the online store. The number of nodes doesn't + * scale automatically, but you can manually update the number of + * nodes. If set to 0, the featurestore will not have an + * online store and cannot be used for online serving. + * + * Generated from protobuf field int32 fixed_node_count = 2; + */ + protected $fixed_node_count = 0; + /** + * Online serving scaling configuration. + * Only one of `fixed_node_count` and `scaling` can be set. Setting one will + * reset the other. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + */ + protected $scaling = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $fixed_node_count + * The number of nodes for the online store. The number of nodes doesn't + * scale automatically, but you can manually update the number of + * nodes. If set to 0, the featurestore will not have an + * online store and cannot be used for online serving. + * @type \Google\Cloud\AIPlatform\V1\Featurestore\OnlineServingConfig\Scaling $scaling + * Online serving scaling configuration. + * Only one of `fixed_node_count` and `scaling` can be set. Setting one will + * reset the other. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Featurestore::initOnce(); + parent::__construct($data); + } + + /** + * The number of nodes for the online store. The number of nodes doesn't + * scale automatically, but you can manually update the number of + * nodes. If set to 0, the featurestore will not have an + * online store and cannot be used for online serving. + * + * Generated from protobuf field int32 fixed_node_count = 2; + * @return int + */ + public function getFixedNodeCount() + { + return $this->fixed_node_count; + } + + /** + * The number of nodes for the online store. The number of nodes doesn't + * scale automatically, but you can manually update the number of + * nodes. If set to 0, the featurestore will not have an + * online store and cannot be used for online serving. + * + * Generated from protobuf field int32 fixed_node_count = 2; + * @param int $var + * @return $this + */ + public function setFixedNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->fixed_node_count = $var; + + return $this; + } + + /** + * Online serving scaling configuration. + * Only one of `fixed_node_count` and `scaling` can be set. Setting one will + * reset the other. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * @return \Google\Cloud\AIPlatform\V1\Featurestore\OnlineServingConfig\Scaling|null + */ + public function getScaling() + { + return $this->scaling; + } + + public function hasScaling() + { + return isset($this->scaling); + } + + public function clearScaling() + { + unset($this->scaling); + } + + /** + * Online serving scaling configuration. + * Only one of `fixed_node_count` and `scaling` can be set. Setting one will + * reset the other. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * @param \Google\Cloud\AIPlatform\V1\Featurestore\OnlineServingConfig\Scaling $var + * @return $this + */ + public function setScaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\Featurestore\OnlineServingConfig\Scaling::class); + $this->scaling = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OnlineServingConfig::class, \Google\Cloud\AIPlatform\V1\Featurestore_OnlineServingConfig::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore/OnlineServingConfig/Scaling.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore/OnlineServingConfig/Scaling.php new file mode 100644 index 000000000000..7288d1864a30 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore/OnlineServingConfig/Scaling.php @@ -0,0 +1,172 @@ +google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + */ +class Scaling extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The minimum number of nodes to scale down to. Must be greater + * than or equal to 1. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $min_node_count = 0; + /** + * The maximum number of nodes to scale up to. Must be greater than + * min_node_count, and less than or equal to 10 times of 'min_node_count'. + * + * Generated from protobuf field int32 max_node_count = 2; + */ + protected $max_node_count = 0; + /** + * Optional. The cpu utilization that the Autoscaler should be trying to + * achieve. This number is on a scale from 0 (no utilization) to 100 + * (total utilization), and is limited between 10 and 80. When a cluster's + * CPU utilization exceeds the target that you have set, Bigtable + * immediately adds nodes to the cluster. When CPU utilization is + * substantially lower than the target, Bigtable removes nodes. If not set + * or set to 0, default to 50. + * + * Generated from protobuf field int32 cpu_utilization_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cpu_utilization_target = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $min_node_count + * Required. The minimum number of nodes to scale down to. Must be greater + * than or equal to 1. + * @type int $max_node_count + * The maximum number of nodes to scale up to. Must be greater than + * min_node_count, and less than or equal to 10 times of 'min_node_count'. + * @type int $cpu_utilization_target + * Optional. The cpu utilization that the Autoscaler should be trying to + * achieve. This number is on a scale from 0 (no utilization) to 100 + * (total utilization), and is limited between 10 and 80. When a cluster's + * CPU utilization exceeds the target that you have set, Bigtable + * immediately adds nodes to the cluster. When CPU utilization is + * substantially lower than the target, Bigtable removes nodes. If not set + * or set to 0, default to 50. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Featurestore::initOnce(); + parent::__construct($data); + } + + /** + * Required. The minimum number of nodes to scale down to. Must be greater + * than or equal to 1. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMinNodeCount() + { + return $this->min_node_count; + } + + /** + * Required. The minimum number of nodes to scale down to. Must be greater + * than or equal to 1. + * + * Generated from protobuf field int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->min_node_count = $var; + + return $this; + } + + /** + * The maximum number of nodes to scale up to. Must be greater than + * min_node_count, and less than or equal to 10 times of 'min_node_count'. + * + * Generated from protobuf field int32 max_node_count = 2; + * @return int + */ + public function getMaxNodeCount() + { + return $this->max_node_count; + } + + /** + * The maximum number of nodes to scale up to. Must be greater than + * min_node_count, and less than or equal to 10 times of 'min_node_count'. + * + * Generated from protobuf field int32 max_node_count = 2; + * @param int $var + * @return $this + */ + public function setMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_node_count = $var; + + return $this; + } + + /** + * Optional. The cpu utilization that the Autoscaler should be trying to + * achieve. This number is on a scale from 0 (no utilization) to 100 + * (total utilization), and is limited between 10 and 80. When a cluster's + * CPU utilization exceeds the target that you have set, Bigtable + * immediately adds nodes to the cluster. When CPU utilization is + * substantially lower than the target, Bigtable removes nodes. If not set + * or set to 0, default to 50. + * + * Generated from protobuf field int32 cpu_utilization_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCpuUtilizationTarget() + { + return $this->cpu_utilization_target; + } + + /** + * Optional. The cpu utilization that the Autoscaler should be trying to + * achieve. This number is on a scale from 0 (no utilization) to 100 + * (total utilization), and is limited between 10 and 80. When a cluster's + * CPU utilization exceeds the target that you have set, Bigtable + * immediately adds nodes to the cluster. When CPU utilization is + * substantially lower than the target, Bigtable removes nodes. If not set + * or set to 0, default to 50. + * + * Generated from protobuf field int32 cpu_utilization_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCpuUtilizationTarget($var) + { + GPBUtil::checkInt32($var); + $this->cpu_utilization_target = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Scaling::class, \Google\Cloud\AIPlatform\V1\Featurestore_OnlineServingConfig_Scaling::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore/State.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore/State.php new file mode 100644 index 000000000000..b4ace3f62cda --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Featurestore/State.php @@ -0,0 +1,75 @@ +google.cloud.aiplatform.v1.Featurestore.State + */ +class State +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * State when the featurestore configuration is not being updated and the + * fields reflect the current configuration of the featurestore. The + * featurestore is usable in this state. + * + * Generated from protobuf enum STABLE = 1; + */ + const STABLE = 1; + /** + * The state of the featurestore configuration when it is being updated. + * During an update, the fields reflect either the original configuration + * or the updated configuration of the featurestore. For example, + * `online_serving_config.fixed_node_count` can take minutes to update. + * While the update is in progress, the featurestore is in the UPDATING + * state, and the value of `fixed_node_count` can be the original value or + * the updated value, depending on the progress of the operation. Until the + * update completes, the actual number of nodes can still be the original + * value of `fixed_node_count`. The featurestore is still usable in this + * state. + * + * Generated from protobuf enum UPDATING = 2; + */ + const UPDATING = 2; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::STABLE => 'STABLE', + self::UPDATING => 'UPDATING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\AIPlatform\V1\Featurestore_State::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig.php new file mode 100644 index 000000000000..9d13f9c4ff78 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig.php @@ -0,0 +1,241 @@ +google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig + */ +class FeaturestoreMonitoringConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The config for Snapshot Analysis Based Feature Monitoring. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + */ + protected $snapshot_analysis = null; + /** + * The config for ImportFeatures Analysis Based Feature Monitoring. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis import_features_analysis = 2; + */ + protected $import_features_analysis = null; + /** + * Threshold for numerical features of anomaly detection. + * This is shared by all objectives of Featurestore Monitoring for numerical + * features (i.e. Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE + * or INT64). + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig numerical_threshold_config = 3; + */ + protected $numerical_threshold_config = null; + /** + * Threshold for categorical features of anomaly detection. + * This is shared by all types of Featurestore Monitoring for categorical + * features (i.e. Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or + * STRING). + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig categorical_threshold_config = 4; + */ + protected $categorical_threshold_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\SnapshotAnalysis $snapshot_analysis + * The config for Snapshot Analysis Based Feature Monitoring. + * @type \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ImportFeaturesAnalysis $import_features_analysis + * The config for ImportFeatures Analysis Based Feature Monitoring. + * @type \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ThresholdConfig $numerical_threshold_config + * Threshold for numerical features of anomaly detection. + * This is shared by all objectives of Featurestore Monitoring for numerical + * features (i.e. Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE + * or INT64). + * @type \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ThresholdConfig $categorical_threshold_config + * Threshold for categorical features of anomaly detection. + * This is shared by all types of Featurestore Monitoring for categorical + * features (i.e. Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or + * STRING). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreMonitoring::initOnce(); + parent::__construct($data); + } + + /** + * The config for Snapshot Analysis Based Feature Monitoring. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * @return \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\SnapshotAnalysis|null + */ + public function getSnapshotAnalysis() + { + return $this->snapshot_analysis; + } + + public function hasSnapshotAnalysis() + { + return isset($this->snapshot_analysis); + } + + public function clearSnapshotAnalysis() + { + unset($this->snapshot_analysis); + } + + /** + * The config for Snapshot Analysis Based Feature Monitoring. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshot_analysis = 1; + * @param \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\SnapshotAnalysis $var + * @return $this + */ + public function setSnapshotAnalysis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\SnapshotAnalysis::class); + $this->snapshot_analysis = $var; + + return $this; + } + + /** + * The config for ImportFeatures Analysis Based Feature Monitoring. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis import_features_analysis = 2; + * @return \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ImportFeaturesAnalysis|null + */ + public function getImportFeaturesAnalysis() + { + return $this->import_features_analysis; + } + + public function hasImportFeaturesAnalysis() + { + return isset($this->import_features_analysis); + } + + public function clearImportFeaturesAnalysis() + { + unset($this->import_features_analysis); + } + + /** + * The config for ImportFeatures Analysis Based Feature Monitoring. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis import_features_analysis = 2; + * @param \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ImportFeaturesAnalysis $var + * @return $this + */ + public function setImportFeaturesAnalysis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ImportFeaturesAnalysis::class); + $this->import_features_analysis = $var; + + return $this; + } + + /** + * Threshold for numerical features of anomaly detection. + * This is shared by all objectives of Featurestore Monitoring for numerical + * features (i.e. Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE + * or INT64). + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig numerical_threshold_config = 3; + * @return \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ThresholdConfig|null + */ + public function getNumericalThresholdConfig() + { + return $this->numerical_threshold_config; + } + + public function hasNumericalThresholdConfig() + { + return isset($this->numerical_threshold_config); + } + + public function clearNumericalThresholdConfig() + { + unset($this->numerical_threshold_config); + } + + /** + * Threshold for numerical features of anomaly detection. + * This is shared by all objectives of Featurestore Monitoring for numerical + * features (i.e. Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE + * or INT64). + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig numerical_threshold_config = 3; + * @param \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ThresholdConfig $var + * @return $this + */ + public function setNumericalThresholdConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ThresholdConfig::class); + $this->numerical_threshold_config = $var; + + return $this; + } + + /** + * Threshold for categorical features of anomaly detection. + * This is shared by all types of Featurestore Monitoring for categorical + * features (i.e. Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or + * STRING). + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig categorical_threshold_config = 4; + * @return \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ThresholdConfig|null + */ + public function getCategoricalThresholdConfig() + { + return $this->categorical_threshold_config; + } + + public function hasCategoricalThresholdConfig() + { + return isset($this->categorical_threshold_config); + } + + public function clearCategoricalThresholdConfig() + { + unset($this->categorical_threshold_config); + } + + /** + * Threshold for categorical features of anomaly detection. + * This is shared by all types of Featurestore Monitoring for categorical + * features (i.e. Features with type + * ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or + * STRING). + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig categorical_threshold_config = 4; + * @param \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ThresholdConfig $var + * @return $this + */ + public function setCategoricalThresholdConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ThresholdConfig::class); + $this->categorical_threshold_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ImportFeaturesAnalysis.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ImportFeaturesAnalysis.php new file mode 100644 index 000000000000..307885c89b26 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ImportFeaturesAnalysis.php @@ -0,0 +1,116 @@ +google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + */ +class ImportFeaturesAnalysis extends \Google\Protobuf\Internal\Message +{ + /** + * Whether to enable / disable / inherite default hebavior for import + * features analysis. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State state = 1; + */ + protected $state = 0; + /** + * The baseline used to do anomaly detection for the statistics generated by + * import features analysis. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline anomaly_detection_baseline = 2; + */ + protected $anomaly_detection_baseline = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * Whether to enable / disable / inherite default hebavior for import + * features analysis. + * @type int $anomaly_detection_baseline + * The baseline used to do anomaly detection for the statistics generated by + * import features analysis. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreMonitoring::initOnce(); + parent::__construct($data); + } + + /** + * Whether to enable / disable / inherite default hebavior for import + * features analysis. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State state = 1; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Whether to enable / disable / inherite default hebavior for import + * features analysis. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State state = 1; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ImportFeaturesAnalysis\State::class); + $this->state = $var; + + return $this; + } + + /** + * The baseline used to do anomaly detection for the statistics generated by + * import features analysis. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline anomaly_detection_baseline = 2; + * @return int + */ + public function getAnomalyDetectionBaseline() + { + return $this->anomaly_detection_baseline; + } + + /** + * The baseline used to do anomaly detection for the statistics generated by + * import features analysis. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline anomaly_detection_baseline = 2; + * @param int $var + * @return $this + */ + public function setAnomalyDetectionBaseline($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig\ImportFeaturesAnalysis\Baseline::class); + $this->anomaly_detection_baseline = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ImportFeaturesAnalysis::class, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig_ImportFeaturesAnalysis::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ImportFeaturesAnalysis/Baseline.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ImportFeaturesAnalysis/Baseline.php new file mode 100644 index 000000000000..ce01e65960f5 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ImportFeaturesAnalysis/Baseline.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline + */ +class Baseline +{ + /** + * Should not be used. + * + * Generated from protobuf enum BASELINE_UNSPECIFIED = 0; + */ + const BASELINE_UNSPECIFIED = 0; + /** + * Choose the later one statistics generated by either most recent + * snapshot analysis or previous import features analysis. If non of them + * exists, skip anomaly detection and only generate a statistics. + * + * Generated from protobuf enum LATEST_STATS = 1; + */ + const LATEST_STATS = 1; + /** + * Use the statistics generated by the most recent snapshot analysis if + * exists. + * + * Generated from protobuf enum MOST_RECENT_SNAPSHOT_STATS = 2; + */ + const MOST_RECENT_SNAPSHOT_STATS = 2; + /** + * Use the statistics generated by the previous import features analysis + * if exists. + * + * Generated from protobuf enum PREVIOUS_IMPORT_FEATURES_STATS = 3; + */ + const PREVIOUS_IMPORT_FEATURES_STATS = 3; + + private static $valueToName = [ + self::BASELINE_UNSPECIFIED => 'BASELINE_UNSPECIFIED', + self::LATEST_STATS => 'LATEST_STATS', + self::MOST_RECENT_SNAPSHOT_STATS => 'MOST_RECENT_SNAPSHOT_STATS', + self::PREVIOUS_IMPORT_FEATURES_STATS => 'PREVIOUS_IMPORT_FEATURES_STATS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Baseline::class, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig_ImportFeaturesAnalysis_Baseline::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ImportFeaturesAnalysis/State.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ImportFeaturesAnalysis/State.php new file mode 100644 index 000000000000..f766570bd9f8 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ImportFeaturesAnalysis/State.php @@ -0,0 +1,84 @@ +google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State + */ +class State +{ + /** + * Should not be used. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The default behavior of whether to enable the monitoring. + * EntityType-level config: disabled. + * Feature-level config: inherited from the configuration of EntityType + * this Feature belongs to. + * + * Generated from protobuf enum DEFAULT = 1; + */ + const PBDEFAULT = 1; + /** + * Explicitly enables import features analysis. + * EntityType-level config: by default enables import features analysis + * for all Features under it. Feature-level config: enables import + * features analysis regardless of the EntityType-level config. + * + * Generated from protobuf enum ENABLED = 2; + */ + const ENABLED = 2; + /** + * Explicitly disables import features analysis. + * EntityType-level config: by default disables import features analysis + * for all Features under it. Feature-level config: disables import + * features analysis regardless of the EntityType-level config. + * + * Generated from protobuf enum DISABLED = 3; + */ + const DISABLED = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PBDEFAULT => 'DEFAULT', + self::ENABLED => 'ENABLED', + self::DISABLED => 'DISABLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig_ImportFeaturesAnalysis_State::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/SnapshotAnalysis.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/SnapshotAnalysis.php new file mode 100644 index 000000000000..2ac4de0e1255 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/SnapshotAnalysis.php @@ -0,0 +1,193 @@ +google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis + */ +class SnapshotAnalysis extends \Google\Protobuf\Internal\Message +{ + /** + * The monitoring schedule for snapshot analysis. + * For EntityType-level config: + * unset / disabled = true indicates disabled by + * default for Features under it; otherwise by default enable snapshot + * analysis monitoring with monitoring_interval for Features under it. + * Feature-level config: + * disabled = true indicates disabled regardless of the EntityType-level + * config; unset monitoring_interval indicates going with EntityType-level + * config; otherwise run snapshot analysis monitoring with + * monitoring_interval regardless of the EntityType-level config. + * Explicitly Disable the snapshot analysis based monitoring. + * + * Generated from protobuf field bool disabled = 1; + */ + protected $disabled = false; + /** + * Configuration of the snapshot analysis based monitoring pipeline + * running interval. The value indicates number of days. + * + * Generated from protobuf field int32 monitoring_interval_days = 3; + */ + protected $monitoring_interval_days = 0; + /** + * Customized export features time window for snapshot analysis. Unit is one + * day. Default value is 3 weeks. Minimum value is 1 day. Maximum value is + * 4000 days. + * + * Generated from protobuf field int32 staleness_days = 4; + */ + protected $staleness_days = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $disabled + * The monitoring schedule for snapshot analysis. + * For EntityType-level config: + * unset / disabled = true indicates disabled by + * default for Features under it; otherwise by default enable snapshot + * analysis monitoring with monitoring_interval for Features under it. + * Feature-level config: + * disabled = true indicates disabled regardless of the EntityType-level + * config; unset monitoring_interval indicates going with EntityType-level + * config; otherwise run snapshot analysis monitoring with + * monitoring_interval regardless of the EntityType-level config. + * Explicitly Disable the snapshot analysis based monitoring. + * @type int $monitoring_interval_days + * Configuration of the snapshot analysis based monitoring pipeline + * running interval. The value indicates number of days. + * @type int $staleness_days + * Customized export features time window for snapshot analysis. Unit is one + * day. Default value is 3 weeks. Minimum value is 1 day. Maximum value is + * 4000 days. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreMonitoring::initOnce(); + parent::__construct($data); + } + + /** + * The monitoring schedule for snapshot analysis. + * For EntityType-level config: + * unset / disabled = true indicates disabled by + * default for Features under it; otherwise by default enable snapshot + * analysis monitoring with monitoring_interval for Features under it. + * Feature-level config: + * disabled = true indicates disabled regardless of the EntityType-level + * config; unset monitoring_interval indicates going with EntityType-level + * config; otherwise run snapshot analysis monitoring with + * monitoring_interval regardless of the EntityType-level config. + * Explicitly Disable the snapshot analysis based monitoring. + * + * Generated from protobuf field bool disabled = 1; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * The monitoring schedule for snapshot analysis. + * For EntityType-level config: + * unset / disabled = true indicates disabled by + * default for Features under it; otherwise by default enable snapshot + * analysis monitoring with monitoring_interval for Features under it. + * Feature-level config: + * disabled = true indicates disabled regardless of the EntityType-level + * config; unset monitoring_interval indicates going with EntityType-level + * config; otherwise run snapshot analysis monitoring with + * monitoring_interval regardless of the EntityType-level config. + * Explicitly Disable the snapshot analysis based monitoring. + * + * Generated from protobuf field bool disabled = 1; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Configuration of the snapshot analysis based monitoring pipeline + * running interval. The value indicates number of days. + * + * Generated from protobuf field int32 monitoring_interval_days = 3; + * @return int + */ + public function getMonitoringIntervalDays() + { + return $this->monitoring_interval_days; + } + + /** + * Configuration of the snapshot analysis based monitoring pipeline + * running interval. The value indicates number of days. + * + * Generated from protobuf field int32 monitoring_interval_days = 3; + * @param int $var + * @return $this + */ + public function setMonitoringIntervalDays($var) + { + GPBUtil::checkInt32($var); + $this->monitoring_interval_days = $var; + + return $this; + } + + /** + * Customized export features time window for snapshot analysis. Unit is one + * day. Default value is 3 weeks. Minimum value is 1 day. Maximum value is + * 4000 days. + * + * Generated from protobuf field int32 staleness_days = 4; + * @return int + */ + public function getStalenessDays() + { + return $this->staleness_days; + } + + /** + * Customized export features time window for snapshot analysis. Unit is one + * day. Default value is 3 weeks. Minimum value is 1 day. Maximum value is + * 4000 days. + * + * Generated from protobuf field int32 staleness_days = 4; + * @param int $var + * @return $this + */ + public function setStalenessDays($var) + { + GPBUtil::checkInt32($var); + $this->staleness_days = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SnapshotAnalysis::class, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig_SnapshotAnalysis::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ThresholdConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ThresholdConfig.php new file mode 100644 index 000000000000..a78a889c1656 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FeaturestoreMonitoringConfig/ThresholdConfig.php @@ -0,0 +1,96 @@ +google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig + */ +class ThresholdConfig extends \Google\Protobuf\Internal\Message +{ + protected $threshold; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $value + * Specify a threshold value that can trigger the alert. + * 1. For categorical feature, the distribution distance is calculated by + * L-inifinity norm. + * 2. For numerical feature, the distribution distance is calculated by + * Jensen–Shannon divergence. Each feature must have a non-zero threshold + * if they need to be monitored. Otherwise no alert will be triggered for + * that feature. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreMonitoring::initOnce(); + parent::__construct($data); + } + + /** + * Specify a threshold value that can trigger the alert. + * 1. For categorical feature, the distribution distance is calculated by + * L-inifinity norm. + * 2. For numerical feature, the distribution distance is calculated by + * Jensen–Shannon divergence. Each feature must have a non-zero threshold + * if they need to be monitored. Otherwise no alert will be triggered for + * that feature. + * + * Generated from protobuf field double value = 1; + * @return float + */ + public function getValue() + { + return $this->readOneof(1); + } + + public function hasValue() + { + return $this->hasOneof(1); + } + + /** + * Specify a threshold value that can trigger the alert. + * 1. For categorical feature, the distribution distance is calculated by + * L-inifinity norm. + * 2. For numerical feature, the distribution distance is calculated by + * Jensen–Shannon divergence. Each feature must have a non-zero threshold + * if they need to be monitored. Otherwise no alert will be triggered for + * that feature. + * + * Generated from protobuf field double value = 1; + * @param float $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getThreshold() + { + return $this->whichOneof("threshold"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ThresholdConfig::class, \Google\Cloud\AIPlatform\V1\FeaturestoreMonitoringConfig_ThresholdConfig::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesRequest.php new file mode 100644 index 000000000000..85ef6d02996e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesRequest.php @@ -0,0 +1,176 @@ +google.cloud.aiplatform.v1.FetchFeatureValuesRequest + */ +class FetchFeatureValuesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. FeatureView resource format + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + * + * Generated from protobuf field string feature_view = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $feature_view = ''; + /** + * Optional. The request key to fetch feature values for. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureViewDataKey data_key = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_key = null; + /** + * Optional. Response data format. If not set, + * [FeatureViewDataFormat.KEY_VALUE][google.cloud.aiplatform.v1.FeatureViewDataFormat.KEY_VALUE] + * will be used. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureViewDataFormat data_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_format = 0; + + /** + * @param string $featureView Required. FeatureView resource format + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + * Please see {@see FeatureOnlineStoreServiceClient::featureViewName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\FeatureViewDataKey $dataKey Optional. The request key to fetch feature values for. + * + * @return \Google\Cloud\AIPlatform\V1\FetchFeatureValuesRequest + * + * @experimental + */ + public static function build(string $featureView, \Google\Cloud\AIPlatform\V1\FeatureViewDataKey $dataKey): self + { + return (new self()) + ->setFeatureView($featureView) + ->setDataKey($dataKey); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $feature_view + * Required. FeatureView resource format + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + * @type \Google\Cloud\AIPlatform\V1\FeatureViewDataKey $data_key + * Optional. The request key to fetch feature values for. + * @type int $data_format + * Optional. Response data format. If not set, + * [FeatureViewDataFormat.KEY_VALUE][google.cloud.aiplatform.v1.FeatureViewDataFormat.KEY_VALUE] + * will be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. FeatureView resource format + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + * + * Generated from protobuf field string feature_view = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getFeatureView() + { + return $this->feature_view; + } + + /** + * Required. FeatureView resource format + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + * + * Generated from protobuf field string feature_view = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setFeatureView($var) + { + GPBUtil::checkString($var, True); + $this->feature_view = $var; + + return $this; + } + + /** + * Optional. The request key to fetch feature values for. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureViewDataKey data_key = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\FeatureViewDataKey|null + */ + public function getDataKey() + { + return $this->data_key; + } + + public function hasDataKey() + { + return isset($this->data_key); + } + + public function clearDataKey() + { + unset($this->data_key); + } + + /** + * Optional. The request key to fetch feature values for. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureViewDataKey data_key = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\FeatureViewDataKey $var + * @return $this + */ + public function setDataKey($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureViewDataKey::class); + $this->data_key = $var; + + return $this; + } + + /** + * Optional. Response data format. If not set, + * [FeatureViewDataFormat.KEY_VALUE][google.cloud.aiplatform.v1.FeatureViewDataFormat.KEY_VALUE] + * will be used. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureViewDataFormat data_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDataFormat() + { + return $this->data_format; + } + + /** + * Optional. Response data format. If not set, + * [FeatureViewDataFormat.KEY_VALUE][google.cloud.aiplatform.v1.FeatureViewDataFormat.KEY_VALUE] + * will be used. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureViewDataFormat data_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDataFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\FeatureViewDataFormat::class); + $this->data_format = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesResponse.php new file mode 100644 index 000000000000..c31c1c346d76 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesResponse.php @@ -0,0 +1,109 @@ +google.cloud.aiplatform.v1.FetchFeatureValuesResponse + */ +class FetchFeatureValuesResponse extends \Google\Protobuf\Internal\Message +{ + protected $format; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\FetchFeatureValuesResponse\FeatureNameValuePairList $key_values + * Feature values in KeyValue format. + * @type \Google\Protobuf\Struct $proto_struct + * Feature values in proto Struct format. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreService::initOnce(); + parent::__construct($data); + } + + /** + * Feature values in KeyValue format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList key_values = 3; + * @return \Google\Cloud\AIPlatform\V1\FetchFeatureValuesResponse\FeatureNameValuePairList|null + */ + public function getKeyValues() + { + return $this->readOneof(3); + } + + public function hasKeyValues() + { + return $this->hasOneof(3); + } + + /** + * Feature values in KeyValue format. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList key_values = 3; + * @param \Google\Cloud\AIPlatform\V1\FetchFeatureValuesResponse\FeatureNameValuePairList $var + * @return $this + */ + public function setKeyValues($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FetchFeatureValuesResponse\FeatureNameValuePairList::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Feature values in proto Struct format. + * + * Generated from protobuf field .google.protobuf.Struct proto_struct = 2; + * @return \Google\Protobuf\Struct|null + */ + public function getProtoStruct() + { + return $this->readOneof(2); + } + + public function hasProtoStruct() + { + return $this->hasOneof(2); + } + + /** + * Feature values in proto Struct format. + * + * Generated from protobuf field .google.protobuf.Struct proto_struct = 2; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setProtoStruct($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getFormat() + { + return $this->whichOneof("format"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesResponse/FeatureNameValuePairList.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesResponse/FeatureNameValuePairList.php new file mode 100644 index 000000000000..9db5c798c125 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesResponse/FeatureNameValuePairList.php @@ -0,0 +1,71 @@ +google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList + */ +class FeatureNameValuePairList extends \Google\Protobuf\Internal\Message +{ + /** + * List of feature names and values. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair features = 1; + */ + private $features; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\FetchFeatureValuesResponse\FeatureNameValuePairList\FeatureNameValuePair>|\Google\Protobuf\Internal\RepeatedField $features + * List of feature names and values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreService::initOnce(); + parent::__construct($data); + } + + /** + * List of feature names and values. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair features = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFeatures() + { + return $this->features; + } + + /** + * List of feature names and values. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair features = 1; + * @param array<\Google\Cloud\AIPlatform\V1\FetchFeatureValuesResponse\FeatureNameValuePairList\FeatureNameValuePair>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFeatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\FetchFeatureValuesResponse\FeatureNameValuePairList\FeatureNameValuePair::class); + $this->features = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FeatureNameValuePairList::class, \Google\Cloud\AIPlatform\V1\FetchFeatureValuesResponse_FeatureNameValuePairList::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesResponse/FeatureNameValuePairList/FeatureNameValuePair.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesResponse/FeatureNameValuePairList/FeatureNameValuePair.php new file mode 100644 index 000000000000..cc50bb1219cd --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FetchFeatureValuesResponse/FeatureNameValuePairList/FeatureNameValuePair.php @@ -0,0 +1,112 @@ +google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + */ +class FeatureNameValuePair extends \Google\Protobuf\Internal\Message +{ + /** + * Feature short name. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\FeatureValue $value + * Feature value. + * @type string $name + * Feature short name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreService::initOnce(); + parent::__construct($data); + } + + /** + * Feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValue value = 2; + * @return \Google\Cloud\AIPlatform\V1\FeatureValue|null + */ + public function getValue() + { + return $this->readOneof(2); + } + + public function hasValue() + { + return $this->hasOneof(2); + } + + /** + * Feature value. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.FeatureValue value = 2; + * @param \Google\Cloud\AIPlatform\V1\FeatureValue $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureValue::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Feature short name. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Feature short name. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FeatureNameValuePair::class, \Google\Cloud\AIPlatform\V1\FetchFeatureValuesResponse_FeatureNameValuePairList_FeatureNameValuePair::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FilterSplit.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FilterSplit.php new file mode 100644 index 000000000000..3c23a46820ed --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FilterSplit.php @@ -0,0 +1,212 @@ +google.cloud.aiplatform.v1.FilterSplit + */ +class FilterSplit extends \Google\Protobuf\Internal\Message +{ + /** + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to train the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * + * Generated from protobuf field string training_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $training_filter = ''; + /** + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to validate the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * + * Generated from protobuf field string validation_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $validation_filter = ''; + /** + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to test the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * + * Generated from protobuf field string test_filter = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $test_filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $training_filter + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to train the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * @type string $validation_filter + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to validate the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * @type string $test_filter + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to test the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TrainingPipeline::initOnce(); + parent::__construct($data); + } + + /** + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to train the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * + * Generated from protobuf field string training_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTrainingFilter() + { + return $this->training_filter; + } + + /** + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to train the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * + * Generated from protobuf field string training_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTrainingFilter($var) + { + GPBUtil::checkString($var, True); + $this->training_filter = $var; + + return $this; + } + + /** + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to validate the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * + * Generated from protobuf field string validation_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValidationFilter() + { + return $this->validation_filter; + } + + /** + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to validate the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * + * Generated from protobuf field string validation_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValidationFilter($var) + { + GPBUtil::checkString($var, True); + $this->validation_filter = $var; + + return $this; + } + + /** + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to test the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * + * Generated from protobuf field string test_filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTestFilter() + { + return $this->test_filter; + } + + /** + * Required. A filter on DataItems of the Dataset. DataItems that match + * this filter are used to test the Model. A filter with same syntax + * as the one used in + * [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + * may be used. If a single DataItem is matched by more than one of the + * FilterSplit filters, then it is assigned to the first set that applies to + * it in the training, validation, test order. + * + * Generated from protobuf field string test_filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTestFilter($var) + { + GPBUtil::checkString($var, True); + $this->test_filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsRequest.php new file mode 100644 index 000000000000..0a3b79c5bbaa --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsRequest.php @@ -0,0 +1,210 @@ +google.cloud.aiplatform.v1.FindNeighborsRequest + */ +class FindNeighborsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the index endpoint. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $index_endpoint = ''; + /** + * The ID of the DeployedIndex that will serve the request. This request is + * sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That + * IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index + * has a DeployedIndex.id field. + * The value of the field below must equal one of the DeployedIndex.id + * fields of the IndexEndpoint that is being called for this request. + * + * Generated from protobuf field string deployed_index_id = 2; + */ + protected $deployed_index_id = ''; + /** + * The list of queries. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; + */ + private $queries; + /** + * If set to true, the full datapoints (including all vector values and + * restricts) of the nearest neighbors are returned. + * Note that returning full datapoint will significantly increase the + * latency and cost of the query. + * + * Generated from protobuf field bool return_full_datapoint = 4; + */ + protected $return_full_datapoint = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $index_endpoint + * Required. The name of the index endpoint. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @type string $deployed_index_id + * The ID of the DeployedIndex that will serve the request. This request is + * sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That + * IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index + * has a DeployedIndex.id field. + * The value of the field below must equal one of the DeployedIndex.id + * fields of the IndexEndpoint that is being called for this request. + * @type array<\Google\Cloud\AIPlatform\V1\FindNeighborsRequest\Query>|\Google\Protobuf\Internal\RepeatedField $queries + * The list of queries. + * @type bool $return_full_datapoint + * If set to true, the full datapoints (including all vector values and + * restricts) of the nearest neighbors are returned. + * Note that returning full datapoint will significantly increase the + * latency and cost of the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MatchService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the index endpoint. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getIndexEndpoint() + { + return $this->index_endpoint; + } + + /** + * Required. The name of the index endpoint. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setIndexEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->index_endpoint = $var; + + return $this; + } + + /** + * The ID of the DeployedIndex that will serve the request. This request is + * sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That + * IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index + * has a DeployedIndex.id field. + * The value of the field below must equal one of the DeployedIndex.id + * fields of the IndexEndpoint that is being called for this request. + * + * Generated from protobuf field string deployed_index_id = 2; + * @return string + */ + public function getDeployedIndexId() + { + return $this->deployed_index_id; + } + + /** + * The ID of the DeployedIndex that will serve the request. This request is + * sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That + * IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index + * has a DeployedIndex.id field. + * The value of the field below must equal one of the DeployedIndex.id + * fields of the IndexEndpoint that is being called for this request. + * + * Generated from protobuf field string deployed_index_id = 2; + * @param string $var + * @return $this + */ + public function setDeployedIndexId($var) + { + GPBUtil::checkString($var, True); + $this->deployed_index_id = $var; + + return $this; + } + + /** + * The list of queries. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getQueries() + { + return $this->queries; + } + + /** + * The list of queries. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FindNeighborsRequest.Query queries = 3; + * @param array<\Google\Cloud\AIPlatform\V1\FindNeighborsRequest\Query>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\FindNeighborsRequest\Query::class); + $this->queries = $arr; + + return $this; + } + + /** + * If set to true, the full datapoints (including all vector values and + * restricts) of the nearest neighbors are returned. + * Note that returning full datapoint will significantly increase the + * latency and cost of the query. + * + * Generated from protobuf field bool return_full_datapoint = 4; + * @return bool + */ + public function getReturnFullDatapoint() + { + return $this->return_full_datapoint; + } + + /** + * If set to true, the full datapoints (including all vector values and + * restricts) of the nearest neighbors are returned. + * Note that returning full datapoint will significantly increase the + * latency and cost of the query. + * + * Generated from protobuf field bool return_full_datapoint = 4; + * @param bool $var + * @return $this + */ + public function setReturnFullDatapoint($var) + { + GPBUtil::checkBool($var); + $this->return_full_datapoint = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsRequest/Query.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsRequest/Query.php new file mode 100644 index 000000000000..61ea4024c7cc --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsRequest/Query.php @@ -0,0 +1,273 @@ +google.cloud.aiplatform.v1.FindNeighborsRequest.Query + */ +class Query extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The datapoint/vector whose nearest neighbors should be searched + * for. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint datapoint = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $datapoint = null; + /** + * The number of nearest neighbors to be retrieved from database for each + * query. If not set, will use the default from the service configuration + * (https://cloud.google.com/vertex-ai/docs/matching-engine/configuring-indexes#nearest-neighbor-search-config). + * + * Generated from protobuf field int32 neighbor_count = 2; + */ + protected $neighbor_count = 0; + /** + * Crowding 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. + * It's used for improving result diversity. + * This field is the maximum number of matches with the same crowding tag. + * + * Generated from protobuf field int32 per_crowding_attribute_neighbor_count = 3; + */ + protected $per_crowding_attribute_neighbor_count = 0; + /** + * The number of neighbors to find via approximate search before + * exact reordering is performed. If not set, the default value from scam + * config is used; if set, this value must be > 0. + * + * Generated from protobuf field int32 approximate_neighbor_count = 4; + */ + protected $approximate_neighbor_count = 0; + /** + * The fraction of the number of leaves to search, set at query time allows + * user to tune search performance. This value increase result in both + * search accuracy and latency increase. The value should be between 0.0 + * and 1.0. If not set or set to 0.0, query uses the default value specified + * in + * NearestNeighborSearchConfig.TreeAHConfig.fraction_leaf_nodes_to_search. + * + * Generated from protobuf field double fraction_leaf_nodes_to_search_override = 5; + */ + protected $fraction_leaf_nodes_to_search_override = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\IndexDatapoint $datapoint + * Required. The datapoint/vector whose nearest neighbors should be searched + * for. + * @type int $neighbor_count + * The number of nearest neighbors to be retrieved from database for each + * query. If not set, will use the default from the service configuration + * (https://cloud.google.com/vertex-ai/docs/matching-engine/configuring-indexes#nearest-neighbor-search-config). + * @type int $per_crowding_attribute_neighbor_count + * Crowding 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. + * It's used for improving result diversity. + * This field is the maximum number of matches with the same crowding tag. + * @type int $approximate_neighbor_count + * The number of neighbors to find via approximate search before + * exact reordering is performed. If not set, the default value from scam + * config is used; if set, this value must be > 0. + * @type float $fraction_leaf_nodes_to_search_override + * The fraction of the number of leaves to search, set at query time allows + * user to tune search performance. This value increase result in both + * search accuracy and latency increase. The value should be between 0.0 + * and 1.0. If not set or set to 0.0, query uses the default value specified + * in + * NearestNeighborSearchConfig.TreeAHConfig.fraction_leaf_nodes_to_search. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MatchService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The datapoint/vector whose nearest neighbors should be searched + * for. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint datapoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\IndexDatapoint|null + */ + public function getDatapoint() + { + return $this->datapoint; + } + + public function hasDatapoint() + { + return isset($this->datapoint); + } + + public function clearDatapoint() + { + unset($this->datapoint); + } + + /** + * Required. The datapoint/vector whose nearest neighbors should be searched + * for. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint datapoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\IndexDatapoint $var + * @return $this + */ + public function setDatapoint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\IndexDatapoint::class); + $this->datapoint = $var; + + return $this; + } + + /** + * The number of nearest neighbors to be retrieved from database for each + * query. If not set, will use the default from the service configuration + * (https://cloud.google.com/vertex-ai/docs/matching-engine/configuring-indexes#nearest-neighbor-search-config). + * + * Generated from protobuf field int32 neighbor_count = 2; + * @return int + */ + public function getNeighborCount() + { + return $this->neighbor_count; + } + + /** + * The number of nearest neighbors to be retrieved from database for each + * query. If not set, will use the default from the service configuration + * (https://cloud.google.com/vertex-ai/docs/matching-engine/configuring-indexes#nearest-neighbor-search-config). + * + * Generated from protobuf field int32 neighbor_count = 2; + * @param int $var + * @return $this + */ + public function setNeighborCount($var) + { + GPBUtil::checkInt32($var); + $this->neighbor_count = $var; + + return $this; + } + + /** + * Crowding 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. + * It's used for improving result diversity. + * This field is the maximum number of matches with the same crowding tag. + * + * Generated from protobuf field int32 per_crowding_attribute_neighbor_count = 3; + * @return int + */ + public function getPerCrowdingAttributeNeighborCount() + { + return $this->per_crowding_attribute_neighbor_count; + } + + /** + * Crowding 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. + * It's used for improving result diversity. + * This field is the maximum number of matches with the same crowding tag. + * + * Generated from protobuf field int32 per_crowding_attribute_neighbor_count = 3; + * @param int $var + * @return $this + */ + public function setPerCrowdingAttributeNeighborCount($var) + { + GPBUtil::checkInt32($var); + $this->per_crowding_attribute_neighbor_count = $var; + + return $this; + } + + /** + * The number of neighbors to find via approximate search before + * exact reordering is performed. If not set, the default value from scam + * config is used; if set, this value must be > 0. + * + * Generated from protobuf field int32 approximate_neighbor_count = 4; + * @return int + */ + public function getApproximateNeighborCount() + { + return $this->approximate_neighbor_count; + } + + /** + * The number of neighbors to find via approximate search before + * exact reordering is performed. If not set, the default value from scam + * config is used; if set, this value must be > 0. + * + * Generated from protobuf field int32 approximate_neighbor_count = 4; + * @param int $var + * @return $this + */ + public function setApproximateNeighborCount($var) + { + GPBUtil::checkInt32($var); + $this->approximate_neighbor_count = $var; + + return $this; + } + + /** + * The fraction of the number of leaves to search, set at query time allows + * user to tune search performance. This value increase result in both + * search accuracy and latency increase. The value should be between 0.0 + * and 1.0. If not set or set to 0.0, query uses the default value specified + * in + * NearestNeighborSearchConfig.TreeAHConfig.fraction_leaf_nodes_to_search. + * + * Generated from protobuf field double fraction_leaf_nodes_to_search_override = 5; + * @return float + */ + public function getFractionLeafNodesToSearchOverride() + { + return $this->fraction_leaf_nodes_to_search_override; + } + + /** + * The fraction of the number of leaves to search, set at query time allows + * user to tune search performance. This value increase result in both + * search accuracy and latency increase. The value should be between 0.0 + * and 1.0. If not set or set to 0.0, query uses the default value specified + * in + * NearestNeighborSearchConfig.TreeAHConfig.fraction_leaf_nodes_to_search. + * + * Generated from protobuf field double fraction_leaf_nodes_to_search_override = 5; + * @param float $var + * @return $this + */ + public function setFractionLeafNodesToSearchOverride($var) + { + GPBUtil::checkDouble($var); + $this->fraction_leaf_nodes_to_search_override = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Query::class, \Google\Cloud\AIPlatform\V1\FindNeighborsRequest_Query::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsResponse.php new file mode 100644 index 000000000000..8f145b754205 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsResponse.php @@ -0,0 +1,68 @@ +google.cloud.aiplatform.v1.FindNeighborsResponse + */ +class FindNeighborsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The nearest neighbors of the query datapoints. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1; + */ + private $nearest_neighbors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\AIPlatform\V1\FindNeighborsResponse\NearestNeighbors>|\Google\Protobuf\Internal\RepeatedField $nearest_neighbors + * The nearest neighbors of the query datapoints. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MatchService::initOnce(); + parent::__construct($data); + } + + /** + * The nearest neighbors of the query datapoints. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNearestNeighbors() + { + return $this->nearest_neighbors; + } + + /** + * The nearest neighbors of the query datapoints. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1; + * @param array<\Google\Cloud\AIPlatform\V1\FindNeighborsResponse\NearestNeighbors>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNearestNeighbors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\FindNeighborsResponse\NearestNeighbors::class); + $this->nearest_neighbors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsResponse/NearestNeighbors.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsResponse/NearestNeighbors.php new file mode 100644 index 000000000000..0decc79dd795 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsResponse/NearestNeighbors.php @@ -0,0 +1,104 @@ +google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors + */ +class NearestNeighbors extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the query datapoint. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * All its neighbors. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; + */ + private $neighbors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * The ID of the query datapoint. + * @type array<\Google\Cloud\AIPlatform\V1\FindNeighborsResponse\Neighbor>|\Google\Protobuf\Internal\RepeatedField $neighbors + * All its neighbors. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MatchService::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the query datapoint. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * The ID of the query datapoint. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * All its neighbors. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNeighbors() + { + return $this->neighbors; + } + + /** + * All its neighbors. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; + * @param array<\Google\Cloud\AIPlatform\V1\FindNeighborsResponse\Neighbor>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNeighbors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\FindNeighborsResponse\Neighbor::class); + $this->neighbors = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NearestNeighbors::class, \Google\Cloud\AIPlatform\V1\FindNeighborsResponse_NearestNeighbors::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsResponse/Neighbor.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsResponse/Neighbor.php new file mode 100644 index 000000000000..dcd99f6aeb0a --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FindNeighborsResponse/Neighbor.php @@ -0,0 +1,126 @@ +google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor + */ +class Neighbor extends \Google\Protobuf\Internal\Message +{ + /** + * The datapoint of the neighbor. + * Note that full datapoints are returned only when "return_full_datapoint" + * is set to true. Otherwise, only the "datapoint_id" and "crowding_tag" + * fields are populated. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint datapoint = 1; + */ + protected $datapoint = null; + /** + * The distance between the neighbor and the query vector. + * + * Generated from protobuf field double distance = 2; + */ + protected $distance = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\IndexDatapoint $datapoint + * The datapoint of the neighbor. + * Note that full datapoints are returned only when "return_full_datapoint" + * is set to true. Otherwise, only the "datapoint_id" and "crowding_tag" + * fields are populated. + * @type float $distance + * The distance between the neighbor and the query vector. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MatchService::initOnce(); + parent::__construct($data); + } + + /** + * The datapoint of the neighbor. + * Note that full datapoints are returned only when "return_full_datapoint" + * is set to true. Otherwise, only the "datapoint_id" and "crowding_tag" + * fields are populated. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint datapoint = 1; + * @return \Google\Cloud\AIPlatform\V1\IndexDatapoint|null + */ + public function getDatapoint() + { + return $this->datapoint; + } + + public function hasDatapoint() + { + return isset($this->datapoint); + } + + public function clearDatapoint() + { + unset($this->datapoint); + } + + /** + * The datapoint of the neighbor. + * Note that full datapoints are returned only when "return_full_datapoint" + * is set to true. Otherwise, only the "datapoint_id" and "crowding_tag" + * fields are populated. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint datapoint = 1; + * @param \Google\Cloud\AIPlatform\V1\IndexDatapoint $var + * @return $this + */ + public function setDatapoint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\IndexDatapoint::class); + $this->datapoint = $var; + + return $this; + } + + /** + * The distance between the neighbor and the query vector. + * + * Generated from protobuf field double distance = 2; + * @return float + */ + public function getDistance() + { + return $this->distance; + } + + /** + * The distance between the neighbor and the query vector. + * + * Generated from protobuf field double distance = 2; + * @param float $var + * @return $this + */ + public function setDistance($var) + { + GPBUtil::checkDouble($var); + $this->distance = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Neighbor::class, \Google\Cloud\AIPlatform\V1\FindNeighborsResponse_Neighbor::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FractionSplit.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FractionSplit.php new file mode 100644 index 000000000000..c122220bf0c8 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/FractionSplit.php @@ -0,0 +1,140 @@ +google.cloud.aiplatform.v1.FractionSplit + */ +class FractionSplit extends \Google\Protobuf\Internal\Message +{ + /** + * The fraction of the input data that is to be used to train the Model. + * + * Generated from protobuf field double training_fraction = 1; + */ + protected $training_fraction = 0.0; + /** + * The fraction of the input data that is to be used to validate the Model. + * + * Generated from protobuf field double validation_fraction = 2; + */ + protected $validation_fraction = 0.0; + /** + * The fraction of the input data that is to be used to evaluate the Model. + * + * Generated from protobuf field double test_fraction = 3; + */ + protected $test_fraction = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $training_fraction + * The fraction of the input data that is to be used to train the Model. + * @type float $validation_fraction + * The fraction of the input data that is to be used to validate the Model. + * @type float $test_fraction + * The fraction of the input data that is to be used to evaluate the Model. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TrainingPipeline::initOnce(); + parent::__construct($data); + } + + /** + * The fraction of the input data that is to be used to train the Model. + * + * Generated from protobuf field double training_fraction = 1; + * @return float + */ + public function getTrainingFraction() + { + return $this->training_fraction; + } + + /** + * The fraction of the input data that is to be used to train the Model. + * + * Generated from protobuf field double training_fraction = 1; + * @param float $var + * @return $this + */ + public function setTrainingFraction($var) + { + GPBUtil::checkDouble($var); + $this->training_fraction = $var; + + return $this; + } + + /** + * The fraction of the input data that is to be used to validate the Model. + * + * Generated from protobuf field double validation_fraction = 2; + * @return float + */ + public function getValidationFraction() + { + return $this->validation_fraction; + } + + /** + * The fraction of the input data that is to be used to validate the Model. + * + * Generated from protobuf field double validation_fraction = 2; + * @param float $var + * @return $this + */ + public function setValidationFraction($var) + { + GPBUtil::checkDouble($var); + $this->validation_fraction = $var; + + return $this; + } + + /** + * The fraction of the input data that is to be used to evaluate the Model. + * + * Generated from protobuf field double test_fraction = 3; + * @return float + */ + public function getTestFraction() + { + return $this->test_fraction; + } + + /** + * The fraction of the input data that is to be used to evaluate the Model. + * + * Generated from protobuf field double test_fraction = 3; + * @param float $var + * @return $this + */ + public function setTestFraction($var) + { + GPBUtil::checkDouble($var); + $this->test_fraction = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GcsDestination.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GcsDestination.php new file mode 100644 index 000000000000..0ea937dbe464 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GcsDestination.php @@ -0,0 +1,79 @@ +google.cloud.aiplatform.v1.GcsDestination + */ +class GcsDestination extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Google Cloud Storage URI to output directory. If the uri doesn't + * end with + * '/', a '/' will be automatically appended. The directory is created if it + * doesn't exist. + * + * Generated from protobuf field string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $output_uri_prefix = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $output_uri_prefix + * Required. Google Cloud Storage URI to output directory. If the uri doesn't + * end with + * '/', a '/' will be automatically appended. The directory is created if it + * doesn't exist. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce(); + parent::__construct($data); + } + + /** + * Required. Google Cloud Storage URI to output directory. If the uri doesn't + * end with + * '/', a '/' will be automatically appended. The directory is created if it + * doesn't exist. + * + * Generated from protobuf field string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getOutputUriPrefix() + { + return $this->output_uri_prefix; + } + + /** + * Required. Google Cloud Storage URI to output directory. If the uri doesn't + * end with + * '/', a '/' will be automatically appended. The directory is created if it + * doesn't exist. + * + * Generated from protobuf field string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setOutputUriPrefix($var) + { + GPBUtil::checkString($var, True); + $this->output_uri_prefix = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GcsSource.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GcsSource.php new file mode 100644 index 000000000000..b3ece9fe7015 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GcsSource.php @@ -0,0 +1,75 @@ +google.cloud.aiplatform.v1.GcsSource + */ +class GcsSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Google Cloud Storage URI(-s) to the input file(s). May contain + * wildcards. For more information on wildcards, see + * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames. + * + * Generated from protobuf field repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $uris; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $uris + * Required. Google Cloud Storage URI(-s) to the input file(s). May contain + * wildcards. For more information on wildcards, see + * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce(); + parent::__construct($data); + } + + /** + * Required. Google Cloud Storage URI(-s) to the input file(s). May contain + * wildcards. For more information on wildcards, see + * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames. + * + * Generated from protobuf field repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUris() + { + return $this->uris; + } + + /** + * Required. Google Cloud Storage URI(-s) to the input file(s). May contain + * wildcards. For more information on wildcards, see + * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames. + * + * Generated from protobuf field repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->uris = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GenericOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GenericOperationMetadata.php new file mode 100644 index 000000000000..274590cdf475 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GenericOperationMetadata.php @@ -0,0 +1,175 @@ +google.cloud.aiplatform.v1.GenericOperationMetadata + */ +class GenericOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Partial failures encountered. + * E.g. single files that couldn't be read. + * This field should never exceed 20 entries. + * Status details field will contain standard Google Cloud error details. + * + * Generated from protobuf field repeated .google.rpc.Status partial_failures = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $partial_failures; + /** + * Output only. Time when the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when the operation was updated for the last time. + * If the operation has finished (successfully or not), this is the finish + * time. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_failures + * Output only. Partial failures encountered. + * E.g. single files that couldn't be read. + * This field should never exceed 20 entries. + * Status details field will contain standard Google Cloud error details. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the operation was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when the operation was updated for the last time. + * If the operation has finished (successfully or not), this is the finish + * time. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Operation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Partial failures encountered. + * E.g. single files that couldn't be read. + * This field should never exceed 20 entries. + * Status details field will contain standard Google Cloud error details. + * + * Generated from protobuf field repeated .google.rpc.Status partial_failures = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPartialFailures() + { + return $this->partial_failures; + } + + /** + * Output only. Partial failures encountered. + * E.g. single files that couldn't be read. + * This field should never exceed 20 entries. + * Status details field will contain standard Google Cloud error details. + * + * Generated from protobuf field repeated .google.rpc.Status partial_failures = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPartialFailures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->partial_failures = $arr; + + return $this; + } + + /** + * Output only. Time when the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when the operation was updated for the last time. + * If the operation has finished (successfully or not), this is the finish + * time. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when the operation was updated for the last time. + * If the operation has finished (successfully or not), this is the finish + * time. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetAnnotationSpecRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetAnnotationSpecRequest.php new file mode 100644 index 000000000000..43f3a3d1e4d6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetAnnotationSpecRequest.php @@ -0,0 +1,136 @@ +google.cloud.aiplatform.v1.GetAnnotationSpecRequest + */ +class GetAnnotationSpecRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the AnnotationSpec resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Mask specifying which fields to read. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + */ + protected $read_mask = null; + + /** + * @param string $name Required. The name of the AnnotationSpec resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + * Please see {@see DatasetServiceClient::annotationSpecName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetAnnotationSpecRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the AnnotationSpec resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + * @type \Google\Protobuf\FieldMask $read_mask + * Mask specifying which fields to read. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the AnnotationSpec resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the AnnotationSpec resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Mask specifying which fields to read. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getReadMask() + { + return $this->read_mask; + } + + public function hasReadMask() + { + return isset($this->read_mask); + } + + public function clearReadMask() + { + unset($this->read_mask); + } + + /** + * Mask specifying which fields to read. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setReadMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->read_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetArtifactRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetArtifactRequest.php new file mode 100644 index 000000000000..ec1059ebb820 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetArtifactRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetArtifactRequest + */ +class GetArtifactRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Artifact to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Artifact to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * Please see {@see MetadataServiceClient::artifactName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetArtifactRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Artifact to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Artifact to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Artifact to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetBatchPredictionJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetBatchPredictionJobRequest.php new file mode 100644 index 000000000000..ee1cd6355e1f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetBatchPredictionJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + */ +class GetBatchPredictionJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the BatchPredictionJob resource. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the BatchPredictionJob resource. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * Please see {@see JobServiceClient::batchPredictionJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetBatchPredictionJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the BatchPredictionJob resource. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the BatchPredictionJob resource. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the BatchPredictionJob resource. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetContextRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetContextRequest.php new file mode 100644 index 000000000000..b58000a8325d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetContextRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetContextRequest + */ +class GetContextRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Context to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Context to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Please see {@see MetadataServiceClient::contextName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetContextRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Context to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Context to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Context to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetCustomJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetCustomJobRequest.php new file mode 100644 index 000000000000..200ddf55023c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetCustomJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetCustomJobRequest + */ +class GetCustomJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomJob resource. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the CustomJob resource. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * Please see {@see JobServiceClient::customJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetCustomJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomJob resource. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomJob resource. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomJob resource. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetDataLabelingJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetDataLabelingJobRequest.php new file mode 100644 index 000000000000..b6c5203977a1 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetDataLabelingJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetDataLabelingJobRequest + */ +class GetDataLabelingJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DataLabelingJob. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the DataLabelingJob. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Please see {@see JobServiceClient::dataLabelingJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetDataLabelingJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DataLabelingJob. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DataLabelingJob. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DataLabelingJob. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetDatasetRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetDatasetRequest.php new file mode 100644 index 000000000000..c566c1947c2d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetDatasetRequest.php @@ -0,0 +1,126 @@ +google.cloud.aiplatform.v1.GetDatasetRequest + */ +class GetDatasetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Dataset resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Mask specifying which fields to read. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + */ + protected $read_mask = null; + + /** + * @param string $name Required. The name of the Dataset resource. Please see + * {@see DatasetServiceClient::datasetName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetDatasetRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Dataset resource. + * @type \Google\Protobuf\FieldMask $read_mask + * Mask specifying which fields to read. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Dataset resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Dataset resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Mask specifying which fields to read. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getReadMask() + { + return $this->read_mask; + } + + public function hasReadMask() + { + return isset($this->read_mask); + } + + public function clearReadMask() + { + unset($this->read_mask); + } + + /** + * Mask specifying which fields to read. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setReadMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->read_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetDatasetVersionRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetDatasetVersionRequest.php new file mode 100644 index 000000000000..98c340f55dc6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetDatasetVersionRequest.php @@ -0,0 +1,136 @@ +google.cloud.aiplatform.v1.GetDatasetVersionRequest + */ +class GetDatasetVersionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Dataset version to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Mask specifying which fields to read. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + */ + protected $read_mask = null; + + /** + * @param string $name Required. The resource name of the Dataset version to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * Please see {@see DatasetServiceClient::datasetVersionName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetDatasetVersionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Dataset version to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @type \Google\Protobuf\FieldMask $read_mask + * Mask specifying which fields to read. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Dataset version to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Dataset version to delete. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Mask specifying which fields to read. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getReadMask() + { + return $this->read_mask; + } + + public function hasReadMask() + { + return isset($this->read_mask); + } + + public function clearReadMask() + { + unset($this->read_mask); + } + + /** + * Mask specifying which fields to read. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setReadMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->read_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetEndpointRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetEndpointRequest.php new file mode 100644 index 000000000000..f71b8c0f6c30 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetEndpointRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetEndpointRequest + */ +class GetEndpointRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Endpoint resource. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Endpoint resource. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Please see {@see EndpointServiceClient::endpointName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetEndpointRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Endpoint resource. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\EndpointService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Endpoint resource. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Endpoint resource. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetEntityTypeRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetEntityTypeRequest.php new file mode 100644 index 000000000000..d398ddd247d3 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetEntityTypeRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetEntityTypeRequest + */ +class GetEntityTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the EntityType resource. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the EntityType resource. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Please see {@see FeaturestoreServiceClient::entityTypeName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetEntityTypeRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the EntityType resource. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the EntityType resource. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the EntityType resource. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetExecutionRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetExecutionRequest.php new file mode 100644 index 000000000000..3dfe973d79f7 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetExecutionRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetExecutionRequest + */ +class GetExecutionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Execution to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Execution to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * Please see {@see MetadataServiceClient::executionName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetExecutionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the Execution to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Execution to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the Execution to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureGroupRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureGroupRequest.php new file mode 100644 index 000000000000..5cb13f154e77 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureGroupRequest.php @@ -0,0 +1,82 @@ +google.cloud.aiplatform.v1.GetFeatureGroupRequest + */ +class GetFeatureGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the FeatureGroup resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the FeatureGroup resource. Please see + * {@see FeatureRegistryServiceClient::featureGroupName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetFeatureGroupRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the FeatureGroup resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureRegistryService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the FeatureGroup resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the FeatureGroup resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureOnlineStoreRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureOnlineStoreRequest.php new file mode 100644 index 000000000000..721787c95c91 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureOnlineStoreRequest.php @@ -0,0 +1,82 @@ +google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest + */ +class GetFeatureOnlineStoreRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the FeatureOnlineStore resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the FeatureOnlineStore resource. Please see + * {@see FeatureOnlineStoreAdminServiceClient::featureOnlineStoreName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetFeatureOnlineStoreRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the FeatureOnlineStore resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the FeatureOnlineStore resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the FeatureOnlineStore resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureRequest.php new file mode 100644 index 000000000000..402b8ea33576 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureRequest.php @@ -0,0 +1,104 @@ +google.cloud.aiplatform.v1.GetFeatureRequest + */ +class GetFeatureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Feature resource. + * Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Feature resource. + * Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * Please see {@see FeaturestoreServiceClient::featureName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetFeatureRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Feature resource. + * Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Feature resource. + * Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Feature resource. + * Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureViewRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureViewRequest.php new file mode 100644 index 000000000000..0c977674e079 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureViewRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetFeatureViewRequest + */ +class GetFeatureViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the FeatureView resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the FeatureView resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * Please see {@see FeatureOnlineStoreAdminServiceClient::featureViewName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetFeatureViewRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the FeatureView resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the FeatureView resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the FeatureView resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureViewSyncRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureViewSyncRequest.php new file mode 100644 index 000000000000..57cea7ce033c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeatureViewSyncRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetFeatureViewSyncRequest + */ +class GetFeatureViewSyncRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the FeatureViewSync resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the FeatureViewSync resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + * Please see {@see FeatureOnlineStoreAdminServiceClient::featureViewSyncName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetFeatureViewSyncRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the FeatureViewSync resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the FeatureViewSync resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the FeatureViewSync resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeaturestoreRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeaturestoreRequest.php new file mode 100644 index 000000000000..7e170fba6f55 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetFeaturestoreRequest.php @@ -0,0 +1,82 @@ +google.cloud.aiplatform.v1.GetFeaturestoreRequest + */ +class GetFeaturestoreRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Featurestore resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Featurestore resource. Please see + * {@see FeaturestoreServiceClient::featurestoreName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetFeaturestoreRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Featurestore resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Featurestore resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Featurestore resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetHyperparameterTuningJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetHyperparameterTuningJobRequest.php new file mode 100644 index 000000000000..1628b8cd9fa0 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetHyperparameterTuningJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + */ +class GetHyperparameterTuningJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the HyperparameterTuningJob resource. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the HyperparameterTuningJob resource. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Please see {@see JobServiceClient::hyperparameterTuningJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetHyperparameterTuningJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the HyperparameterTuningJob resource. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the HyperparameterTuningJob resource. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the HyperparameterTuningJob resource. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetIndexEndpointRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetIndexEndpointRequest.php new file mode 100644 index 000000000000..75de3b6fa86a --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetIndexEndpointRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetIndexEndpointRequest + */ +class GetIndexEndpointRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the IndexEndpoint resource. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the IndexEndpoint resource. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Please see {@see IndexEndpointServiceClient::indexEndpointName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetIndexEndpointRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the IndexEndpoint resource. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpointService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the IndexEndpoint resource. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the IndexEndpoint resource. + * Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetIndexRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetIndexRequest.php new file mode 100644 index 000000000000..d5907d58b5a6 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetIndexRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetIndexRequest + */ +class GetIndexRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Index resource. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Index resource. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * Please see {@see IndexServiceClient::indexName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetIndexRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Index resource. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Index resource. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Index resource. + * Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetMetadataSchemaRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetMetadataSchemaRequest.php new file mode 100644 index 000000000000..1a0bb95c0b44 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetMetadataSchemaRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetMetadataSchemaRequest + */ +class GetMetadataSchemaRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the MetadataSchema to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the MetadataSchema to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * Please see {@see MetadataServiceClient::metadataSchemaName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetMetadataSchemaRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the MetadataSchema to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the MetadataSchema to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the MetadataSchema to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetMetadataStoreRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetMetadataStoreRequest.php new file mode 100644 index 000000000000..5e671ba44f5a --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetMetadataStoreRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetMetadataStoreRequest + */ +class GetMetadataStoreRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the MetadataStore to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the MetadataStore to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * Please see {@see MetadataServiceClient::metadataStoreName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetMetadataStoreRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the MetadataStore to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\MetadataService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the MetadataStore to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the MetadataStore to retrieve. + * Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelDeploymentMonitoringJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelDeploymentMonitoringJobRequest.php new file mode 100644 index 000000000000..ba7626620ad8 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelDeploymentMonitoringJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + */ +class GetModelDeploymentMonitoringJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the ModelDeploymentMonitoringJob. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the ModelDeploymentMonitoringJob. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * Please see {@see JobServiceClient::modelDeploymentMonitoringJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetModelDeploymentMonitoringJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the ModelDeploymentMonitoringJob. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the ModelDeploymentMonitoringJob. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the ModelDeploymentMonitoringJob. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelEvaluationRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelEvaluationRequest.php new file mode 100644 index 000000000000..2f965443ec4e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelEvaluationRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetModelEvaluationRequest + */ +class GetModelEvaluationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * Please see {@see ModelServiceClient::modelEvaluationName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetModelEvaluationRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelEvaluationSliceRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelEvaluationSliceRequest.php new file mode 100644 index 000000000000..d18eb9dbd8fc --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelEvaluationSliceRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + */ +class GetModelEvaluationSliceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * Please see {@see ModelServiceClient::modelEvaluationSliceName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetModelEvaluationSliceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the ModelEvaluationSlice resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelRequest.php new file mode 100644 index 000000000000..c5e1e32b8c6b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetModelRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.GetModelRequest + */ +class GetModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * In order to retrieve a specific version of the model, also provide + * the version ID or version alias. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * If no version ID or alias is specified, the "default" version will be + * returned. The "default" version alias is created for the first version of + * the model, and can be moved to other versions later on. There will be + * exactly one default version. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * + * In order to retrieve a specific version of the model, also provide + * the version ID or version alias. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * If no version ID or alias is specified, the "default" version will be + * returned. The "default" version alias is created for the first version of + * the model, and can be moved to other versions later on. There will be + * exactly one default version. Please see + * {@see ModelServiceClient::modelName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetModelRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * In order to retrieve a specific version of the model, also provide + * the version ID or version alias. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * If no version ID or alias is specified, the "default" version will be + * returned. The "default" version alias is created for the first version of + * the model, and can be moved to other versions later on. There will be + * exactly one default version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * In order to retrieve a specific version of the model, also provide + * the version ID or version alias. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * If no version ID or alias is specified, the "default" version will be + * returned. The "default" version alias is created for the first version of + * the model, and can be moved to other versions later on. There will be + * exactly one default version. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * In order to retrieve a specific version of the model, also provide + * the version ID or version alias. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * If no version ID or alias is specified, the "default" version will be + * returned. The "default" version alias is created for the first version of + * the model, and can be moved to other versions later on. There will be + * exactly one default version. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetNasJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetNasJobRequest.php new file mode 100644 index 000000000000..9d1d2e617620 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetNasJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetNasJobRequest + */ +class GetNasJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * Please see {@see JobServiceClient::nasJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetNasJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetNasTrialDetailRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetNasTrialDetailRequest.php new file mode 100644 index 000000000000..773a9f4aac1c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetNasTrialDetailRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetNasTrialDetailRequest + */ +class GetNasTrialDetailRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + * Please see {@see JobServiceClient::nasTrialDetailName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetNasTrialDetailRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\JobService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetPipelineJobRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetPipelineJobRequest.php new file mode 100644 index 000000000000..7c328bd57067 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetPipelineJobRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetPipelineJobRequest + */ +class GetPipelineJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the PipelineJob resource. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the PipelineJob resource. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * Please see {@see PipelineServiceClient::pipelineJobName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetPipelineJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the PipelineJob resource. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PipelineService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the PipelineJob resource. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the PipelineJob resource. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetPublisherModelRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetPublisherModelRequest.php new file mode 100644 index 000000000000..8ad78476d64d --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetPublisherModelRequest.php @@ -0,0 +1,164 @@ +google.cloud.aiplatform.v1.GetPublisherModelRequest + */ +class GetPublisherModelRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the PublisherModel resource. + * Format: + * `publishers/{publisher}/models/{publisher_model}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The IETF BCP-47 language code representing the language in which + * the publisher model's text information should be written in (see go/bcp47). + * + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $language_code = ''; + /** + * Optional. PublisherModel view specifying which fields to read. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $name Required. The name of the PublisherModel resource. + * Format: + * `publishers/{publisher}/models/{publisher_model}` + * Please see {@see ModelGardenServiceClient::publisherModelName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetPublisherModelRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the PublisherModel resource. + * Format: + * `publishers/{publisher}/models/{publisher_model}` + * @type string $language_code + * Optional. The IETF BCP-47 language code representing the language in which + * the publisher model's text information should be written in (see go/bcp47). + * @type int $view + * Optional. PublisherModel view specifying which fields to read. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelGardenService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the PublisherModel resource. + * Format: + * `publishers/{publisher}/models/{publisher_model}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the PublisherModel resource. + * Format: + * `publishers/{publisher}/models/{publisher_model}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The IETF BCP-47 language code representing the language in which + * the publisher model's text information should be written in (see go/bcp47). + * + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. The IETF BCP-47 language code representing the language in which + * the publisher model's text information should be written in (see go/bcp47). + * + * Generated from protobuf field string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * Optional. PublisherModel view specifying which fields to read. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. PublisherModel view specifying which fields to read. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\PublisherModelView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetScheduleRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetScheduleRequest.php new file mode 100644 index 000000000000..e8f6202849fc --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetScheduleRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetScheduleRequest + */ +class GetScheduleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Schedule resource. + * Format: + * `projects/{project}/locations/{location}/schedules/{schedule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Schedule resource. + * Format: + * `projects/{project}/locations/{location}/schedules/{schedule}` + * Please see {@see ScheduleServiceClient::scheduleName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetScheduleRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Schedule resource. + * Format: + * `projects/{project}/locations/{location}/schedules/{schedule}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ScheduleService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Schedule resource. + * Format: + * `projects/{project}/locations/{location}/schedules/{schedule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Schedule resource. + * Format: + * `projects/{project}/locations/{location}/schedules/{schedule}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetSpecialistPoolRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetSpecialistPoolRequest.php new file mode 100644 index 000000000000..4533f8d4d5dd --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetSpecialistPoolRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetSpecialistPoolRequest + */ +class GetSpecialistPoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the SpecialistPool resource. + * The form is + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the SpecialistPool resource. + * The form is + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. Please see + * {@see SpecialistPoolServiceClient::specialistPoolName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetSpecialistPoolRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the SpecialistPool resource. + * The form is + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\SpecialistPoolService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the SpecialistPool resource. + * The form is + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the SpecialistPool resource. + * The form is + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetStudyRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetStudyRequest.php new file mode 100644 index 000000000000..607cd9a4be35 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetStudyRequest.php @@ -0,0 +1,87 @@ +google.cloud.aiplatform.v1.GetStudyRequest + */ +class GetStudyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Study resource. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Study resource. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * Please see {@see VizierServiceClient::studyName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetStudyRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Study resource. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Study resource. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Study resource. + * Format: `projects/{project}/locations/{location}/studies/{study}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardExperimentRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardExperimentRequest.php new file mode 100644 index 000000000000..00114cdbde74 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardExperimentRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetTensorboardExperimentRequest + */ +class GetTensorboardExperimentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the TensorboardExperiment resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the TensorboardExperiment resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * Please see {@see TensorboardServiceClient::tensorboardExperimentName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetTensorboardExperimentRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the TensorboardExperiment resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the TensorboardExperiment resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the TensorboardExperiment resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardRequest.php new file mode 100644 index 000000000000..5d5bede56773 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetTensorboardRequest + */ +class GetTensorboardRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Tensorboard resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Tensorboard resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * Please see {@see TensorboardServiceClient::tensorboardName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetTensorboardRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Tensorboard resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Tensorboard resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Tensorboard resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardRunRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardRunRequest.php new file mode 100644 index 000000000000..7ee1d379ed5f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardRunRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetTensorboardRunRequest + */ +class GetTensorboardRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the TensorboardRun resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the TensorboardRun resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * Please see {@see TensorboardServiceClient::tensorboardRunName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetTensorboardRunRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the TensorboardRun resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the TensorboardRun resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the TensorboardRun resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardTimeSeriesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardTimeSeriesRequest.php new file mode 100644 index 000000000000..0a11b588be2f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTensorboardTimeSeriesRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest + */ +class GetTensorboardTimeSeriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the TensorboardTimeSeries resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the TensorboardTimeSeries resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * Please see {@see TensorboardServiceClient::tensorboardTimeSeriesName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetTensorboardTimeSeriesRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the TensorboardTimeSeries resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the TensorboardTimeSeries resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the TensorboardTimeSeries resource. + * Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTrainingPipelineRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTrainingPipelineRequest.php new file mode 100644 index 000000000000..f1acd31b04fa --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTrainingPipelineRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetTrainingPipelineRequest + */ +class GetTrainingPipelineRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the TrainingPipeline resource. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the TrainingPipeline resource. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * Please see {@see PipelineServiceClient::trainingPipelineName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetTrainingPipelineRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the TrainingPipeline resource. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PipelineService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the TrainingPipeline resource. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the TrainingPipeline resource. + * Format: + * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTrialRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTrialRequest.php new file mode 100644 index 000000000000..be443baeba8c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/GetTrialRequest.php @@ -0,0 +1,92 @@ +google.cloud.aiplatform.v1.GetTrialRequest + */ +class GetTrialRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Trial resource. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Trial resource. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * Please see {@see VizierServiceClient::trialName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\GetTrialRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Trial resource. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Trial resource. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Trial resource. + * Format: + * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/HyperparameterTuningJob.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/HyperparameterTuningJob.php new file mode 100644 index 000000000000..2b4338d63c70 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/HyperparameterTuningJob.php @@ -0,0 +1,727 @@ +google.cloud.aiplatform.v1.HyperparameterTuningJob + */ +class HyperparameterTuningJob extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the HyperparameterTuningJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The display name of the HyperparameterTuningJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Required. Study configuration of the HyperparameterTuningJob. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $study_spec = null; + /** + * Required. The desired total number of Trials. + * + * Generated from protobuf field int32 max_trial_count = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_trial_count = 0; + /** + * Required. The desired number of Trials to run in parallel. + * + * Generated from protobuf field int32 parallel_trial_count = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parallel_trial_count = 0; + /** + * The number of failed Trials that need to be seen before failing + * the HyperparameterTuningJob. + * If set to 0, Vertex AI decides how many Trials must fail + * before the whole job fails. + * + * Generated from protobuf field int32 max_failed_trial_count = 7; + */ + protected $max_failed_trial_count = 0; + /** + * Required. The spec of a trial job. The same spec applies to the CustomJobs + * created in all the trials. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trial_job_spec = null; + /** + * Output only. Trials of the HyperparameterTuningJob. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $trials; + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Time when the HyperparameterTuningJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when the HyperparameterTuningJob for the first time + * entered the `JOB_STATE_RUNNING` state. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. Time when the HyperparameterTuningJob entered any of the + * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, + * `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Time when the HyperparameterTuningJob was most recently + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Only populated when job's state is JOB_STATE_FAILED or + * JOB_STATE_CANCELLED. + * + * Generated from protobuf field .google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error = null; + /** + * The labels with user-defined metadata to organize HyperparameterTuningJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 16; + */ + private $labels; + /** + * Customer-managed encryption key options for a HyperparameterTuningJob. + * If this is set, then all resources created by the HyperparameterTuningJob + * will be encrypted with the provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17; + */ + protected $encryption_spec = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the HyperparameterTuningJob. + * @type string $display_name + * Required. The display name of the HyperparameterTuningJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * @type \Google\Cloud\AIPlatform\V1\StudySpec $study_spec + * Required. Study configuration of the HyperparameterTuningJob. + * @type int $max_trial_count + * Required. The desired total number of Trials. + * @type int $parallel_trial_count + * Required. The desired number of Trials to run in parallel. + * @type int $max_failed_trial_count + * The number of failed Trials that need to be seen before failing + * the HyperparameterTuningJob. + * If set to 0, Vertex AI decides how many Trials must fail + * before the whole job fails. + * @type \Google\Cloud\AIPlatform\V1\CustomJobSpec $trial_job_spec + * Required. The spec of a trial job. The same spec applies to the CustomJobs + * created in all the trials. + * @type array<\Google\Cloud\AIPlatform\V1\Trial>|\Google\Protobuf\Internal\RepeatedField $trials + * Output only. Trials of the HyperparameterTuningJob. + * @type int $state + * Output only. The detailed state of the job. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the HyperparameterTuningJob was created. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. Time when the HyperparameterTuningJob for the first time + * entered the `JOB_STATE_RUNNING` state. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. Time when the HyperparameterTuningJob entered any of the + * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, + * `JOB_STATE_CANCELLED`. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when the HyperparameterTuningJob was most recently + * updated. + * @type \Google\Rpc\Status $error + * Output only. Only populated when job's state is JOB_STATE_FAILED or + * JOB_STATE_CANCELLED. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize HyperparameterTuningJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec + * Customer-managed encryption key options for a HyperparameterTuningJob. + * If this is set, then all resources created by the HyperparameterTuningJob + * will be encrypted with the provided encryption key. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\HyperparameterTuningJob::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the HyperparameterTuningJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of the HyperparameterTuningJob. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the HyperparameterTuningJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of the HyperparameterTuningJob. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. Study configuration of the HyperparameterTuningJob. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\StudySpec|null + */ + public function getStudySpec() + { + return $this->study_spec; + } + + public function hasStudySpec() + { + return isset($this->study_spec); + } + + public function clearStudySpec() + { + unset($this->study_spec); + } + + /** + * Required. Study configuration of the HyperparameterTuningJob. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\StudySpec $var + * @return $this + */ + public function setStudySpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\StudySpec::class); + $this->study_spec = $var; + + return $this; + } + + /** + * Required. The desired total number of Trials. + * + * Generated from protobuf field int32 max_trial_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMaxTrialCount() + { + return $this->max_trial_count; + } + + /** + * Required. The desired total number of Trials. + * + * Generated from protobuf field int32 max_trial_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMaxTrialCount($var) + { + GPBUtil::checkInt32($var); + $this->max_trial_count = $var; + + return $this; + } + + /** + * Required. The desired number of Trials to run in parallel. + * + * Generated from protobuf field int32 parallel_trial_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getParallelTrialCount() + { + return $this->parallel_trial_count; + } + + /** + * Required. The desired number of Trials to run in parallel. + * + * Generated from protobuf field int32 parallel_trial_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setParallelTrialCount($var) + { + GPBUtil::checkInt32($var); + $this->parallel_trial_count = $var; + + return $this; + } + + /** + * The number of failed Trials that need to be seen before failing + * the HyperparameterTuningJob. + * If set to 0, Vertex AI decides how many Trials must fail + * before the whole job fails. + * + * Generated from protobuf field int32 max_failed_trial_count = 7; + * @return int + */ + public function getMaxFailedTrialCount() + { + return $this->max_failed_trial_count; + } + + /** + * The number of failed Trials that need to be seen before failing + * the HyperparameterTuningJob. + * If set to 0, Vertex AI decides how many Trials must fail + * before the whole job fails. + * + * Generated from protobuf field int32 max_failed_trial_count = 7; + * @param int $var + * @return $this + */ + public function setMaxFailedTrialCount($var) + { + GPBUtil::checkInt32($var); + $this->max_failed_trial_count = $var; + + return $this; + } + + /** + * Required. The spec of a trial job. The same spec applies to the CustomJobs + * created in all the trials. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\CustomJobSpec|null + */ + public function getTrialJobSpec() + { + return $this->trial_job_spec; + } + + public function hasTrialJobSpec() + { + return isset($this->trial_job_spec); + } + + public function clearTrialJobSpec() + { + unset($this->trial_job_spec); + } + + /** + * Required. The spec of a trial job. The same spec applies to the CustomJobs + * created in all the trials. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\CustomJobSpec $var + * @return $this + */ + public function setTrialJobSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CustomJobSpec::class); + $this->trial_job_spec = $var; + + return $this; + } + + /** + * Output only. Trials of the HyperparameterTuningJob. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTrials() + { + return $this->trials; + } + + /** + * Output only. Trials of the HyperparameterTuningJob. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\AIPlatform\V1\Trial>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTrials($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\Trial::class); + $this->trials = $arr; + + return $this; + } + + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The detailed state of the job. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\JobState::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Time when the HyperparameterTuningJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when the HyperparameterTuningJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when the HyperparameterTuningJob for the first time + * entered the `JOB_STATE_RUNNING` state. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Output only. Time when the HyperparameterTuningJob for the first time + * entered the `JOB_STATE_RUNNING` state. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. Time when the HyperparameterTuningJob entered any of the + * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, + * `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. Time when the HyperparameterTuningJob entered any of the + * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, + * `JOB_STATE_CANCELLED`. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Time when the HyperparameterTuningJob was most recently + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when the HyperparameterTuningJob was most recently + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Only populated when job's state is JOB_STATE_FAILED or + * JOB_STATE_CANCELLED. + * + * Generated from protobuf field .google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Output only. Only populated when job's state is JOB_STATE_FAILED or + * JOB_STATE_CANCELLED. + * + * Generated from protobuf field .google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->error = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize HyperparameterTuningJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 16; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize HyperparameterTuningJobs. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 16; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Customer-managed encryption key options for a HyperparameterTuningJob. + * If this is set, then all resources created by the HyperparameterTuningJob + * will be encrypted with the provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17; + * @return \Google\Cloud\AIPlatform\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Customer-managed encryption key options for a HyperparameterTuningJob. + * If this is set, then all resources created by the HyperparameterTuningJob + * will be encrypted with the provided encryption key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17; + * @param \Google\Cloud\AIPlatform\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IdMatcher.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IdMatcher.php new file mode 100644 index 000000000000..28dd3636d879 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IdMatcher.php @@ -0,0 +1,83 @@ +google.cloud.aiplatform.v1.IdMatcher + */ +class IdMatcher extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The following are accepted as `ids`: + * * A single-element list containing only `*`, which selects all Features + * in the target EntityType, or + * * A list containing only Feature IDs, which selects only Features with + * those IDs in the target EntityType. + * + * Generated from protobuf field repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $ids; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $ids + * Required. The following are accepted as `ids`: + * * A single-element list containing only `*`, which selects all Features + * in the target EntityType, or + * * A list containing only Feature IDs, which selects only Features with + * those IDs in the target EntityType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureSelector::initOnce(); + parent::__construct($data); + } + + /** + * Required. The following are accepted as `ids`: + * * A single-element list containing only `*`, which selects all Features + * in the target EntityType, or + * * A list containing only Feature IDs, which selects only Features with + * those IDs in the target EntityType. + * + * Generated from protobuf field repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIds() + { + return $this->ids; + } + + /** + * Required. The following are accepted as `ids`: + * * A single-element list containing only `*`, which selects all Features + * in the target EntityType, or + * * A list containing only Feature IDs, which selects only Features with + * those IDs in the target EntityType. + * + * Generated from protobuf field repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->ids = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataConfig.php new file mode 100644 index 000000000000..df1309b1d648 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataConfig.php @@ -0,0 +1,274 @@ +google.cloud.aiplatform.v1.ImportDataConfig + */ +class ImportDataConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Labels that will be applied to newly imported DataItems. If an identical + * DataItem as one being imported already exists in the Dataset, then these + * labels will be appended to these of the already existing one, and if labels + * with identical key is imported before, the old label value will be + * overwritten. If two DataItems are identical in the same import data + * operation, the labels will be combined and if key collision happens in this + * case, one of the values will be picked randomly. Two DataItems are + * considered identical if their content bytes are identical (e.g. image bytes + * or pdf bytes). + * These labels will be overridden by Annotation labels specified inside index + * file referenced by + * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], + * e.g. jsonl file. + * + * Generated from protobuf field map data_item_labels = 2; + */ + private $data_item_labels; + /** + * Labels that will be applied to newly imported Annotations. If two + * Annotations are identical, one of them will be deduped. Two Annotations are + * considered identical if their + * [payload][google.cloud.aiplatform.v1.Annotation.payload], + * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are + * the same. These labels will be overridden by Annotation labels specified + * inside index file referenced by + * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], + * e.g. jsonl file. + * + * Generated from protobuf field map annotation_labels = 3; + */ + private $annotation_labels; + /** + * Required. Points to a YAML file stored on Google Cloud Storage describing + * the import format. Validation will be done against the schema. The schema + * is defined as an [OpenAPI 3.0.2 Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * + * Generated from protobuf field string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $import_schema_uri = ''; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GcsSource $gcs_source + * The Google Cloud Storage location for the input content. + * @type array|\Google\Protobuf\Internal\MapField $data_item_labels + * Labels that will be applied to newly imported DataItems. If an identical + * DataItem as one being imported already exists in the Dataset, then these + * labels will be appended to these of the already existing one, and if labels + * with identical key is imported before, the old label value will be + * overwritten. If two DataItems are identical in the same import data + * operation, the labels will be combined and if key collision happens in this + * case, one of the values will be picked randomly. Two DataItems are + * considered identical if their content bytes are identical (e.g. image bytes + * or pdf bytes). + * These labels will be overridden by Annotation labels specified inside index + * file referenced by + * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], + * e.g. jsonl file. + * @type array|\Google\Protobuf\Internal\MapField $annotation_labels + * Labels that will be applied to newly imported Annotations. If two + * Annotations are identical, one of them will be deduped. Two Annotations are + * considered identical if their + * [payload][google.cloud.aiplatform.v1.Annotation.payload], + * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are + * the same. These labels will be overridden by Annotation labels specified + * inside index file referenced by + * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], + * e.g. jsonl file. + * @type string $import_schema_uri + * Required. Points to a YAML file stored on Google Cloud Storage describing + * the import format. Validation will be done against the schema. The schema + * is defined as an [OpenAPI 3.0.2 Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Dataset::initOnce(); + parent::__construct($data); + } + + /** + * The Google Cloud Storage location for the input content. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 1; + * @return \Google\Cloud\AIPlatform\V1\GcsSource|null + */ + public function getGcsSource() + { + return $this->readOneof(1); + } + + public function hasGcsSource() + { + return $this->hasOneof(1); + } + + /** + * The Google Cloud Storage location for the input content. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GcsSource gcs_source = 1; + * @param \Google\Cloud\AIPlatform\V1\GcsSource $var + * @return $this + */ + public function setGcsSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GcsSource::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Labels that will be applied to newly imported DataItems. If an identical + * DataItem as one being imported already exists in the Dataset, then these + * labels will be appended to these of the already existing one, and if labels + * with identical key is imported before, the old label value will be + * overwritten. If two DataItems are identical in the same import data + * operation, the labels will be combined and if key collision happens in this + * case, one of the values will be picked randomly. Two DataItems are + * considered identical if their content bytes are identical (e.g. image bytes + * or pdf bytes). + * These labels will be overridden by Annotation labels specified inside index + * file referenced by + * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], + * e.g. jsonl file. + * + * Generated from protobuf field map data_item_labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDataItemLabels() + { + return $this->data_item_labels; + } + + /** + * Labels that will be applied to newly imported DataItems. If an identical + * DataItem as one being imported already exists in the Dataset, then these + * labels will be appended to these of the already existing one, and if labels + * with identical key is imported before, the old label value will be + * overwritten. If two DataItems are identical in the same import data + * operation, the labels will be combined and if key collision happens in this + * case, one of the values will be picked randomly. Two DataItems are + * considered identical if their content bytes are identical (e.g. image bytes + * or pdf bytes). + * These labels will be overridden by Annotation labels specified inside index + * file referenced by + * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], + * e.g. jsonl file. + * + * Generated from protobuf field map data_item_labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDataItemLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->data_item_labels = $arr; + + return $this; + } + + /** + * Labels that will be applied to newly imported Annotations. If two + * Annotations are identical, one of them will be deduped. Two Annotations are + * considered identical if their + * [payload][google.cloud.aiplatform.v1.Annotation.payload], + * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are + * the same. These labels will be overridden by Annotation labels specified + * inside index file referenced by + * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], + * e.g. jsonl file. + * + * Generated from protobuf field map annotation_labels = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotationLabels() + { + return $this->annotation_labels; + } + + /** + * Labels that will be applied to newly imported Annotations. If two + * Annotations are identical, one of them will be deduped. Two Annotations are + * considered identical if their + * [payload][google.cloud.aiplatform.v1.Annotation.payload], + * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are + * the same. These labels will be overridden by Annotation labels specified + * inside index file referenced by + * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], + * e.g. jsonl file. + * + * Generated from protobuf field map annotation_labels = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotationLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotation_labels = $arr; + + return $this; + } + + /** + * Required. Points to a YAML file stored on Google Cloud Storage describing + * the import format. Validation will be done against the schema. The schema + * is defined as an [OpenAPI 3.0.2 Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * + * Generated from protobuf field string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getImportSchemaUri() + { + return $this->import_schema_uri; + } + + /** + * Required. Points to a YAML file stored on Google Cloud Storage describing + * the import format. Validation will be done against the schema. The schema + * is defined as an [OpenAPI 3.0.2 Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * + * Generated from protobuf field string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setImportSchemaUri($var) + { + GPBUtil::checkString($var, True); + $this->import_schema_uri = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataOperationMetadata.php new file mode 100644 index 000000000000..1a48b997790c --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataOperationMetadata.php @@ -0,0 +1,78 @@ +google.cloud.aiplatform.v1.ImportDataOperationMetadata + */ +class ImportDataOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * The common part of the operation metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * The common part of the operation metadata. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataRequest.php new file mode 100644 index 000000000000..ace093762889 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.ImportDataRequest + */ +class ImportDataRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The desired input locations. The contents of all input locations + * will be imported in one batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ImportDataConfig import_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $import_configs; + + /** + * @param string $name Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * Please see {@see DatasetServiceClient::datasetName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\ImportDataConfig[] $importConfigs Required. The desired input locations. The contents of all input locations + * will be imported in one batch. + * + * @return \Google\Cloud\AIPlatform\V1\ImportDataRequest + * + * @experimental + */ + public static function build(string $name, array $importConfigs): self + { + return (new self()) + ->setName($name) + ->setImportConfigs($importConfigs); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @type array<\Google\Cloud\AIPlatform\V1\ImportDataConfig>|\Google\Protobuf\Internal\RepeatedField $import_configs + * Required. The desired input locations. The contents of all input locations + * will be imported in one batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Dataset resource. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The desired input locations. The contents of all input locations + * will be imported in one batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ImportDataConfig import_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getImportConfigs() + { + return $this->import_configs; + } + + /** + * Required. The desired input locations. The contents of all input locations + * will be imported in one batch. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ImportDataConfig import_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\ImportDataConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setImportConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ImportDataConfig::class); + $this->import_configs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataResponse.php new file mode 100644 index 000000000000..ceb2be4c7162 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportDataResponse.php @@ -0,0 +1,34 @@ +google.cloud.aiplatform.v1.ImportDataResponse + */ +class ImportDataResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\DatasetService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesOperationMetadata.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesOperationMetadata.php new file mode 100644 index 000000000000..76962935d539 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesOperationMetadata.php @@ -0,0 +1,305 @@ +google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + */ +class ImportFeatureValuesOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Operation metadata for Featurestore import Feature values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + protected $generic_metadata = null; + /** + * Number of entities that have been imported by the operation. + * + * Generated from protobuf field int64 imported_entity_count = 2; + */ + protected $imported_entity_count = 0; + /** + * Number of Feature values that have been imported by the operation. + * + * Generated from protobuf field int64 imported_feature_value_count = 3; + */ + protected $imported_feature_value_count = 0; + /** + * The source URI from where Feature values are imported. + * + * Generated from protobuf field repeated string source_uris = 4; + */ + private $source_uris; + /** + * The number of rows in input source that weren't imported due to either + * * Not having any featureValues. + * * Having a null entityId. + * * Having a null timestamp. + * * Not being parsable (applicable for CSV sources). + * + * Generated from protobuf field int64 invalid_row_count = 6; + */ + protected $invalid_row_count = 0; + /** + * The number rows that weren't ingested due to having timestamps outside the + * retention boundary. + * + * Generated from protobuf field int64 timestamp_outside_retention_rows_count = 7; + */ + protected $timestamp_outside_retention_rows_count = 0; + /** + * List of ImportFeatureValues operations running under a single EntityType + * that are blocking this operation. + * + * Generated from protobuf field repeated int64 blocking_operation_ids = 8; + */ + private $blocking_operation_ids; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata + * Operation metadata for Featurestore import Feature values. + * @type int|string $imported_entity_count + * Number of entities that have been imported by the operation. + * @type int|string $imported_feature_value_count + * Number of Feature values that have been imported by the operation. + * @type array|\Google\Protobuf\Internal\RepeatedField $source_uris + * The source URI from where Feature values are imported. + * @type int|string $invalid_row_count + * The number of rows in input source that weren't imported due to either + * * Not having any featureValues. + * * Having a null entityId. + * * Having a null timestamp. + * * Not being parsable (applicable for CSV sources). + * @type int|string $timestamp_outside_retention_rows_count + * The number rows that weren't ingested due to having timestamps outside the + * retention boundary. + * @type array|array|\Google\Protobuf\Internal\RepeatedField $blocking_operation_ids + * List of ImportFeatureValues operations running under a single EntityType + * that are blocking this operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Operation metadata for Featurestore import Feature values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null + */ + public function getGenericMetadata() + { + return $this->generic_metadata; + } + + public function hasGenericMetadata() + { + return isset($this->generic_metadata); + } + + public function clearGenericMetadata() + { + unset($this->generic_metadata); + } + + /** + * Operation metadata for Featurestore import Feature values. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var + * @return $this + */ + public function setGenericMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class); + $this->generic_metadata = $var; + + return $this; + } + + /** + * Number of entities that have been imported by the operation. + * + * Generated from protobuf field int64 imported_entity_count = 2; + * @return int|string + */ + public function getImportedEntityCount() + { + return $this->imported_entity_count; + } + + /** + * Number of entities that have been imported by the operation. + * + * Generated from protobuf field int64 imported_entity_count = 2; + * @param int|string $var + * @return $this + */ + public function setImportedEntityCount($var) + { + GPBUtil::checkInt64($var); + $this->imported_entity_count = $var; + + return $this; + } + + /** + * Number of Feature values that have been imported by the operation. + * + * Generated from protobuf field int64 imported_feature_value_count = 3; + * @return int|string + */ + public function getImportedFeatureValueCount() + { + return $this->imported_feature_value_count; + } + + /** + * Number of Feature values that have been imported by the operation. + * + * Generated from protobuf field int64 imported_feature_value_count = 3; + * @param int|string $var + * @return $this + */ + public function setImportedFeatureValueCount($var) + { + GPBUtil::checkInt64($var); + $this->imported_feature_value_count = $var; + + return $this; + } + + /** + * The source URI from where Feature values are imported. + * + * Generated from protobuf field repeated string source_uris = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSourceUris() + { + return $this->source_uris; + } + + /** + * The source URI from where Feature values are imported. + * + * Generated from protobuf field repeated string source_uris = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSourceUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->source_uris = $arr; + + return $this; + } + + /** + * The number of rows in input source that weren't imported due to either + * * Not having any featureValues. + * * Having a null entityId. + * * Having a null timestamp. + * * Not being parsable (applicable for CSV sources). + * + * Generated from protobuf field int64 invalid_row_count = 6; + * @return int|string + */ + public function getInvalidRowCount() + { + return $this->invalid_row_count; + } + + /** + * The number of rows in input source that weren't imported due to either + * * Not having any featureValues. + * * Having a null entityId. + * * Having a null timestamp. + * * Not being parsable (applicable for CSV sources). + * + * Generated from protobuf field int64 invalid_row_count = 6; + * @param int|string $var + * @return $this + */ + public function setInvalidRowCount($var) + { + GPBUtil::checkInt64($var); + $this->invalid_row_count = $var; + + return $this; + } + + /** + * The number rows that weren't ingested due to having timestamps outside the + * retention boundary. + * + * Generated from protobuf field int64 timestamp_outside_retention_rows_count = 7; + * @return int|string + */ + public function getTimestampOutsideRetentionRowsCount() + { + return $this->timestamp_outside_retention_rows_count; + } + + /** + * The number rows that weren't ingested due to having timestamps outside the + * retention boundary. + * + * Generated from protobuf field int64 timestamp_outside_retention_rows_count = 7; + * @param int|string $var + * @return $this + */ + public function setTimestampOutsideRetentionRowsCount($var) + { + GPBUtil::checkInt64($var); + $this->timestamp_outside_retention_rows_count = $var; + + return $this; + } + + /** + * List of ImportFeatureValues operations running under a single EntityType + * that are blocking this operation. + * + * Generated from protobuf field repeated int64 blocking_operation_ids = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBlockingOperationIds() + { + return $this->blocking_operation_ids; + } + + /** + * List of ImportFeatureValues operations running under a single EntityType + * that are blocking this operation. + * + * Generated from protobuf field repeated int64 blocking_operation_ids = 8; + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBlockingOperationIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->blocking_operation_ids = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesRequest.php new file mode 100644 index 000000000000..fc918281d7f3 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesRequest.php @@ -0,0 +1,476 @@ +google.cloud.aiplatform.v1.ImportFeatureValuesRequest + */ +class ImportFeatureValuesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntityType grouping the Features for + * which values are being imported. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * + * Generated from protobuf field string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $entity_type = ''; + /** + * Source column that holds entity IDs. If not provided, entity IDs are + * extracted from the column named entity_id. + * + * Generated from protobuf field string entity_id_field = 5; + */ + protected $entity_id_field = ''; + /** + * Required. Specifications defining which Feature values to import from the + * entity. The request fails if no feature_specs are provided, and having + * multiple feature_specs for one Feature is not allowed. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + private $feature_specs; + /** + * If set, data will not be imported for online serving. This + * is typically used for backfilling, where Feature generation timestamps are + * not in the timestamp range needed for online serving. + * + * Generated from protobuf field bool disable_online_serving = 9; + */ + protected $disable_online_serving = false; + /** + * Specifies the number of workers that are used to write data to the + * Featurestore. Consider the online serving capacity that you require to + * achieve the desired import throughput without interfering with online + * serving. The value must be positive, and less than or equal to 100. + * If not set, defaults to using 1 worker. The low count ensures minimal + * impact on online serving performance. + * + * Generated from protobuf field int32 worker_count = 11; + */ + protected $worker_count = 0; + /** + * If true, API doesn't start ingestion analysis pipeline. + * + * Generated from protobuf field bool disable_ingestion_analysis = 12; + */ + protected $disable_ingestion_analysis = false; + protected $source; + protected $feature_time_source; + + /** + * @param string $entityType Required. The resource name of the EntityType grouping the Features for + * which values are being imported. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * Please see {@see FeaturestoreServiceClient::entityTypeName()} for help formatting this field. + * + * @return \Google\Cloud\AIPlatform\V1\ImportFeatureValuesRequest + * + * @experimental + */ + public static function build(string $entityType): self + { + return (new self()) + ->setEntityType($entityType); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\AvroSource $avro_source + * @type \Google\Cloud\AIPlatform\V1\BigQuerySource $bigquery_source + * @type \Google\Cloud\AIPlatform\V1\CsvSource $csv_source + * @type string $feature_time_field + * Source column that holds the Feature timestamp for all Feature + * values in each entity. + * @type \Google\Protobuf\Timestamp $feature_time + * Single Feature timestamp for all entities being imported. The + * timestamp must not have higher than millisecond precision. + * @type string $entity_type + * Required. The resource name of the EntityType grouping the Features for + * which values are being imported. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * @type string $entity_id_field + * Source column that holds entity IDs. If not provided, entity IDs are + * extracted from the column named entity_id. + * @type array<\Google\Cloud\AIPlatform\V1\ImportFeatureValuesRequest\FeatureSpec>|\Google\Protobuf\Internal\RepeatedField $feature_specs + * Required. Specifications defining which Feature values to import from the + * entity. The request fails if no feature_specs are provided, and having + * multiple feature_specs for one Feature is not allowed. + * @type bool $disable_online_serving + * If set, data will not be imported for online serving. This + * is typically used for backfilling, where Feature generation timestamps are + * not in the timestamp range needed for online serving. + * @type int $worker_count + * Specifies the number of workers that are used to write data to the + * Featurestore. Consider the online serving capacity that you require to + * achieve the desired import throughput without interfering with online + * serving. The value must be positive, and less than or equal to 100. + * If not set, defaults to using 1 worker. The low count ensures minimal + * impact on online serving performance. + * @type bool $disable_ingestion_analysis + * If true, API doesn't start ingestion analysis pipeline. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .google.cloud.aiplatform.v1.AvroSource avro_source = 2; + * @return \Google\Cloud\AIPlatform\V1\AvroSource|null + */ + public function getAvroSource() + { + return $this->readOneof(2); + } + + public function hasAvroSource() + { + return $this->hasOneof(2); + } + + /** + * Generated from protobuf field .google.cloud.aiplatform.v1.AvroSource avro_source = 2; + * @param \Google\Cloud\AIPlatform\V1\AvroSource $var + * @return $this + */ + public function setAvroSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\AvroSource::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3; + * @return \Google\Cloud\AIPlatform\V1\BigQuerySource|null + */ + public function getBigquerySource() + { + return $this->readOneof(3); + } + + public function hasBigquerySource() + { + return $this->hasOneof(3); + } + + /** + * Generated from protobuf field .google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3; + * @param \Google\Cloud\AIPlatform\V1\BigQuerySource $var + * @return $this + */ + public function setBigquerySource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\BigQuerySource::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.aiplatform.v1.CsvSource csv_source = 4; + * @return \Google\Cloud\AIPlatform\V1\CsvSource|null + */ + public function getCsvSource() + { + return $this->readOneof(4); + } + + public function hasCsvSource() + { + return $this->hasOneof(4); + } + + /** + * Generated from protobuf field .google.cloud.aiplatform.v1.CsvSource csv_source = 4; + * @param \Google\Cloud\AIPlatform\V1\CsvSource $var + * @return $this + */ + public function setCsvSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\CsvSource::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Source column that holds the Feature timestamp for all Feature + * values in each entity. + * + * Generated from protobuf field string feature_time_field = 6; + * @return string + */ + public function getFeatureTimeField() + { + return $this->readOneof(6); + } + + public function hasFeatureTimeField() + { + return $this->hasOneof(6); + } + + /** + * Source column that holds the Feature timestamp for all Feature + * values in each entity. + * + * Generated from protobuf field string feature_time_field = 6; + * @param string $var + * @return $this + */ + public function setFeatureTimeField($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Single Feature timestamp for all entities being imported. The + * timestamp must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp feature_time = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFeatureTime() + { + return $this->readOneof(7); + } + + public function hasFeatureTime() + { + return $this->hasOneof(7); + } + + /** + * Single Feature timestamp for all entities being imported. The + * timestamp must not have higher than millisecond precision. + * + * Generated from protobuf field .google.protobuf.Timestamp feature_time = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFeatureTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Required. The resource name of the EntityType grouping the Features for + * which values are being imported. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * + * Generated from protobuf field string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEntityType() + { + return $this->entity_type; + } + + /** + * Required. The resource name of the EntityType grouping the Features for + * which values are being imported. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * + * Generated from protobuf field string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntityType($var) + { + GPBUtil::checkString($var, True); + $this->entity_type = $var; + + return $this; + } + + /** + * Source column that holds entity IDs. If not provided, entity IDs are + * extracted from the column named entity_id. + * + * Generated from protobuf field string entity_id_field = 5; + * @return string + */ + public function getEntityIdField() + { + return $this->entity_id_field; + } + + /** + * Source column that holds entity IDs. If not provided, entity IDs are + * extracted from the column named entity_id. + * + * Generated from protobuf field string entity_id_field = 5; + * @param string $var + * @return $this + */ + public function setEntityIdField($var) + { + GPBUtil::checkString($var, True); + $this->entity_id_field = $var; + + return $this; + } + + /** + * Required. Specifications defining which Feature values to import from the + * entity. The request fails if no feature_specs are provided, and having + * multiple feature_specs for one Feature is not allowed. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFeatureSpecs() + { + return $this->feature_specs; + } + + /** + * Required. Specifications defining which Feature values to import from the + * entity. The request fails if no feature_specs are provided, and having + * multiple feature_specs for one Feature is not allowed. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec feature_specs = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\AIPlatform\V1\ImportFeatureValuesRequest\FeatureSpec>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFeatureSpecs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\ImportFeatureValuesRequest\FeatureSpec::class); + $this->feature_specs = $arr; + + return $this; + } + + /** + * If set, data will not be imported for online serving. This + * is typically used for backfilling, where Feature generation timestamps are + * not in the timestamp range needed for online serving. + * + * Generated from protobuf field bool disable_online_serving = 9; + * @return bool + */ + public function getDisableOnlineServing() + { + return $this->disable_online_serving; + } + + /** + * If set, data will not be imported for online serving. This + * is typically used for backfilling, where Feature generation timestamps are + * not in the timestamp range needed for online serving. + * + * Generated from protobuf field bool disable_online_serving = 9; + * @param bool $var + * @return $this + */ + public function setDisableOnlineServing($var) + { + GPBUtil::checkBool($var); + $this->disable_online_serving = $var; + + return $this; + } + + /** + * Specifies the number of workers that are used to write data to the + * Featurestore. Consider the online serving capacity that you require to + * achieve the desired import throughput without interfering with online + * serving. The value must be positive, and less than or equal to 100. + * If not set, defaults to using 1 worker. The low count ensures minimal + * impact on online serving performance. + * + * Generated from protobuf field int32 worker_count = 11; + * @return int + */ + public function getWorkerCount() + { + return $this->worker_count; + } + + /** + * Specifies the number of workers that are used to write data to the + * Featurestore. Consider the online serving capacity that you require to + * achieve the desired import throughput without interfering with online + * serving. The value must be positive, and less than or equal to 100. + * If not set, defaults to using 1 worker. The low count ensures minimal + * impact on online serving performance. + * + * Generated from protobuf field int32 worker_count = 11; + * @param int $var + * @return $this + */ + public function setWorkerCount($var) + { + GPBUtil::checkInt32($var); + $this->worker_count = $var; + + return $this; + } + + /** + * If true, API doesn't start ingestion analysis pipeline. + * + * Generated from protobuf field bool disable_ingestion_analysis = 12; + * @return bool + */ + public function getDisableIngestionAnalysis() + { + return $this->disable_ingestion_analysis; + } + + /** + * If true, API doesn't start ingestion analysis pipeline. + * + * Generated from protobuf field bool disable_ingestion_analysis = 12; + * @param bool $var + * @return $this + */ + public function setDisableIngestionAnalysis($var) + { + GPBUtil::checkBool($var); + $this->disable_ingestion_analysis = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + + /** + * @return string + */ + public function getFeatureTimeSource() + { + return $this->whichOneof("feature_time_source"); + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesRequest/FeatureSpec.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesRequest/FeatureSpec.php new file mode 100644 index 000000000000..50dc0498070b --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesRequest/FeatureSpec.php @@ -0,0 +1,112 @@ +google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + */ +class FeatureSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the Feature to import values of. This Feature must exist + * in the target EntityType, or the request will fail. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Source column to get the Feature values from. If not set, uses the column + * with the same name as the Feature ID. + * + * Generated from protobuf field string source_field = 2; + */ + protected $source_field = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. ID of the Feature to import values of. This Feature must exist + * in the target EntityType, or the request will fail. + * @type string $source_field + * Source column to get the Feature values from. If not set, uses the column + * with the same name as the Feature ID. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Required. ID of the Feature to import values of. This Feature must exist + * in the target EntityType, or the request will fail. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. ID of the Feature to import values of. This Feature must exist + * in the target EntityType, or the request will fail. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Source column to get the Feature values from. If not set, uses the column + * with the same name as the Feature ID. + * + * Generated from protobuf field string source_field = 2; + * @return string + */ + public function getSourceField() + { + return $this->source_field; + } + + /** + * Source column to get the Feature values from. If not set, uses the column + * with the same name as the Feature ID. + * + * Generated from protobuf field string source_field = 2; + * @param string $var + * @return $this + */ + public function setSourceField($var) + { + GPBUtil::checkString($var, True); + $this->source_field = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FeatureSpec::class, \Google\Cloud\AIPlatform\V1\ImportFeatureValuesRequest_FeatureSpec::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesResponse.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesResponse.php new file mode 100644 index 000000000000..58c16ef19321 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportFeatureValuesResponse.php @@ -0,0 +1,190 @@ +google.cloud.aiplatform.v1.ImportFeatureValuesResponse + */ +class ImportFeatureValuesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Number of entities that have been imported by the operation. + * + * Generated from protobuf field int64 imported_entity_count = 1; + */ + protected $imported_entity_count = 0; + /** + * Number of Feature values that have been imported by the operation. + * + * Generated from protobuf field int64 imported_feature_value_count = 2; + */ + protected $imported_feature_value_count = 0; + /** + * The number of rows in input source that weren't imported due to either + * * Not having any featureValues. + * * Having a null entityId. + * * Having a null timestamp. + * * Not being parsable (applicable for CSV sources). + * + * Generated from protobuf field int64 invalid_row_count = 6; + */ + protected $invalid_row_count = 0; + /** + * The number rows that weren't ingested due to having feature timestamps + * outside the retention boundary. + * + * Generated from protobuf field int64 timestamp_outside_retention_rows_count = 4; + */ + protected $timestamp_outside_retention_rows_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $imported_entity_count + * Number of entities that have been imported by the operation. + * @type int|string $imported_feature_value_count + * Number of Feature values that have been imported by the operation. + * @type int|string $invalid_row_count + * The number of rows in input source that weren't imported due to either + * * Not having any featureValues. + * * Having a null entityId. + * * Having a null timestamp. + * * Not being parsable (applicable for CSV sources). + * @type int|string $timestamp_outside_retention_rows_count + * The number rows that weren't ingested due to having feature timestamps + * outside the retention boundary. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce(); + parent::__construct($data); + } + + /** + * Number of entities that have been imported by the operation. + * + * Generated from protobuf field int64 imported_entity_count = 1; + * @return int|string + */ + public function getImportedEntityCount() + { + return $this->imported_entity_count; + } + + /** + * Number of entities that have been imported by the operation. + * + * Generated from protobuf field int64 imported_entity_count = 1; + * @param int|string $var + * @return $this + */ + public function setImportedEntityCount($var) + { + GPBUtil::checkInt64($var); + $this->imported_entity_count = $var; + + return $this; + } + + /** + * Number of Feature values that have been imported by the operation. + * + * Generated from protobuf field int64 imported_feature_value_count = 2; + * @return int|string + */ + public function getImportedFeatureValueCount() + { + return $this->imported_feature_value_count; + } + + /** + * Number of Feature values that have been imported by the operation. + * + * Generated from protobuf field int64 imported_feature_value_count = 2; + * @param int|string $var + * @return $this + */ + public function setImportedFeatureValueCount($var) + { + GPBUtil::checkInt64($var); + $this->imported_feature_value_count = $var; + + return $this; + } + + /** + * The number of rows in input source that weren't imported due to either + * * Not having any featureValues. + * * Having a null entityId. + * * Having a null timestamp. + * * Not being parsable (applicable for CSV sources). + * + * Generated from protobuf field int64 invalid_row_count = 6; + * @return int|string + */ + public function getInvalidRowCount() + { + return $this->invalid_row_count; + } + + /** + * The number of rows in input source that weren't imported due to either + * * Not having any featureValues. + * * Having a null entityId. + * * Having a null timestamp. + * * Not being parsable (applicable for CSV sources). + * + * Generated from protobuf field int64 invalid_row_count = 6; + * @param int|string $var + * @return $this + */ + public function setInvalidRowCount($var) + { + GPBUtil::checkInt64($var); + $this->invalid_row_count = $var; + + return $this; + } + + /** + * The number rows that weren't ingested due to having feature timestamps + * outside the retention boundary. + * + * Generated from protobuf field int64 timestamp_outside_retention_rows_count = 4; + * @return int|string + */ + public function getTimestampOutsideRetentionRowsCount() + { + return $this->timestamp_outside_retention_rows_count; + } + + /** + * The number rows that weren't ingested due to having feature timestamps + * outside the retention boundary. + * + * Generated from protobuf field int64 timestamp_outside_retention_rows_count = 4; + * @param int|string $var + * @return $this + */ + public function setTimestampOutsideRetentionRowsCount($var) + { + GPBUtil::checkInt64($var); + $this->timestamp_outside_retention_rows_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportModelEvaluationRequest.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportModelEvaluationRequest.php new file mode 100644 index 000000000000..ff11a54b2eed --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/ImportModelEvaluationRequest.php @@ -0,0 +1,133 @@ +google.cloud.aiplatform.v1.ImportModelEvaluationRequest + */ +class ImportModelEvaluationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parent model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Model evaluation resource to be imported. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ModelEvaluation model_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $model_evaluation = null; + + /** + * @param string $parent Required. The name of the parent model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * Please see {@see ModelServiceClient::modelName()} for help formatting this field. + * @param \Google\Cloud\AIPlatform\V1\ModelEvaluation $modelEvaluation Required. Model evaluation resource to be imported. + * + * @return \Google\Cloud\AIPlatform\V1\ImportModelEvaluationRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\AIPlatform\V1\ModelEvaluation $modelEvaluation): self + { + return (new self()) + ->setParent($parent) + ->setModelEvaluation($modelEvaluation); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the parent model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * @type \Google\Cloud\AIPlatform\V1\ModelEvaluation $model_evaluation + * Required. Model evaluation resource to be imported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parent model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the parent model resource. + * Format: `projects/{project}/locations/{location}/models/{model}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Model evaluation resource to be imported. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ModelEvaluation model_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\AIPlatform\V1\ModelEvaluation|null + */ + public function getModelEvaluation() + { + return $this->model_evaluation; + } + + public function hasModelEvaluation() + { + return isset($this->model_evaluation); + } + + public function clearModelEvaluation() + { + unset($this->model_evaluation); + } + + /** + * Required. Model evaluation resource to be imported. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.ModelEvaluation model_evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\AIPlatform\V1\ModelEvaluation $var + * @return $this + */ + public function setModelEvaluation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\ModelEvaluation::class); + $this->model_evaluation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Index.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Index.php new file mode 100644 index 000000000000..0a0de2535d09 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Index.php @@ -0,0 +1,634 @@ +google.cloud.aiplatform.v1.Index + */ +class Index extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the Index. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The display name of the Index. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * The description of the Index. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Immutable. Points to a YAML file stored on Google Cloud Storage describing + * additional information about the Index, that is specific to it. Unset if + * the Index does not have any additional information. The schema is defined + * as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * Note: The URI given on output will be immutable and probably different, + * including the URI scheme, than the one given on input. The output URI will + * point to a location where the user only has a read access. + * + * Generated from protobuf field string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $metadata_schema_uri = ''; + /** + * An additional information about the Index; the schema of the metadata can + * be found in + * [metadata_schema][google.cloud.aiplatform.v1.Index.metadata_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value metadata = 6; + */ + protected $metadata = null; + /** + * Output only. The pointers to DeployedIndexes created from this Index. + * An Index can be only deleted if all its DeployedIndexes had been undeployed + * first. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $deployed_indexes; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 8; + */ + protected $etag = ''; + /** + * The labels with user-defined metadata to organize your Indexes. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 9; + */ + private $labels; + /** + * Output only. Timestamp when this Index was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this Index was most recently updated. + * This also includes any update to the contents of the Index. + * Note that Operations working on this Index may have their + * [Operations.metadata.generic_metadata.update_time] + * [google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] a little + * after the value of this timestamp, yet that does not mean their results are + * not already reflected in the Index. Result of any successfully completed + * Operation on the Index is reflected in it. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Stats of the index resource. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $index_stats = null; + /** + * Immutable. The update method to use with this Index. If not set, + * BATCH_UPDATE will be used by default. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $index_update_method = 0; + /** + * Immutable. Customer-managed encryption key spec for an Index. If set, this + * Index and all sub-resources of this Index will be secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $encryption_spec = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the Index. + * @type string $display_name + * Required. The display name of the Index. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * @type string $description + * The description of the Index. + * @type string $metadata_schema_uri + * Immutable. Points to a YAML file stored on Google Cloud Storage describing + * additional information about the Index, that is specific to it. Unset if + * the Index does not have any additional information. The schema is defined + * as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * Note: The URI given on output will be immutable and probably different, + * including the URI scheme, than the one given on input. The output URI will + * point to a location where the user only has a read access. + * @type \Google\Protobuf\Value $metadata + * An additional information about the Index; the schema of the metadata can + * be found in + * [metadata_schema][google.cloud.aiplatform.v1.Index.metadata_schema_uri]. + * @type array<\Google\Cloud\AIPlatform\V1\DeployedIndexRef>|\Google\Protobuf\Internal\RepeatedField $deployed_indexes + * Output only. The pointers to DeployedIndexes created from this Index. + * An Index can be only deleted if all its DeployedIndexes had been undeployed + * first. + * @type string $etag + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize your Indexes. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this Index was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this Index was most recently updated. + * This also includes any update to the contents of the Index. + * Note that Operations working on this Index may have their + * [Operations.metadata.generic_metadata.update_time] + * [google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] a little + * after the value of this timestamp, yet that does not mean their results are + * not already reflected in the Index. Result of any successfully completed + * Operation on the Index is reflected in it. + * @type \Google\Cloud\AIPlatform\V1\IndexStats $index_stats + * Output only. Stats of the index resource. + * @type int $index_update_method + * Immutable. The update method to use with this Index. If not set, + * BATCH_UPDATE will be used by default. + * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec + * Immutable. Customer-managed encryption key spec for an Index. If set, this + * Index and all sub-resources of this Index will be secured by this key. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Index::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the Index. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of the Index. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the Index. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of the Index. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The description of the Index. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the Index. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Immutable. Points to a YAML file stored on Google Cloud Storage describing + * additional information about the Index, that is specific to it. Unset if + * the Index does not have any additional information. The schema is defined + * as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * Note: The URI given on output will be immutable and probably different, + * including the URI scheme, than the one given on input. The output URI will + * point to a location where the user only has a read access. + * + * Generated from protobuf field string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getMetadataSchemaUri() + { + return $this->metadata_schema_uri; + } + + /** + * Immutable. Points to a YAML file stored on Google Cloud Storage describing + * additional information about the Index, that is specific to it. Unset if + * the Index does not have any additional information. The schema is defined + * as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * Note: The URI given on output will be immutable and probably different, + * including the URI scheme, than the one given on input. The output URI will + * point to a location where the user only has a read access. + * + * Generated from protobuf field string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setMetadataSchemaUri($var) + { + GPBUtil::checkString($var, True); + $this->metadata_schema_uri = $var; + + return $this; + } + + /** + * An additional information about the Index; the schema of the metadata can + * be found in + * [metadata_schema][google.cloud.aiplatform.v1.Index.metadata_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value metadata = 6; + * @return \Google\Protobuf\Value|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * An additional information about the Index; the schema of the metadata can + * be found in + * [metadata_schema][google.cloud.aiplatform.v1.Index.metadata_schema_uri]. + * + * Generated from protobuf field .google.protobuf.Value metadata = 6; + * @param \Google\Protobuf\Value $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); + $this->metadata = $var; + + return $this; + } + + /** + * Output only. The pointers to DeployedIndexes created from this Index. + * An Index can be only deleted if all its DeployedIndexes had been undeployed + * first. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeployedIndexes() + { + return $this->deployed_indexes; + } + + /** + * Output only. The pointers to DeployedIndexes created from this Index. + * An Index can be only deleted if all its DeployedIndexes had been undeployed + * first. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\AIPlatform\V1\DeployedIndexRef>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeployedIndexes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\DeployedIndexRef::class); + $this->deployed_indexes = $arr; + + return $this; + } + + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 8; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 8; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize your Indexes. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 9; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize your Indexes. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 9; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Timestamp when this Index was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this Index was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this Index was most recently updated. + * This also includes any update to the contents of the Index. + * Note that Operations working on this Index may have their + * [Operations.metadata.generic_metadata.update_time] + * [google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] a little + * after the value of this timestamp, yet that does not mean their results are + * not already reflected in the Index. Result of any successfully completed + * Operation on the Index is reflected in it. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this Index was most recently updated. + * This also includes any update to the contents of the Index. + * Note that Operations working on this Index may have their + * [Operations.metadata.generic_metadata.update_time] + * [google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] a little + * after the value of this timestamp, yet that does not mean their results are + * not already reflected in the Index. Result of any successfully completed + * Operation on the Index is reflected in it. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Stats of the index resource. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\AIPlatform\V1\IndexStats|null + */ + public function getIndexStats() + { + return $this->index_stats; + } + + public function hasIndexStats() + { + return isset($this->index_stats); + } + + public function clearIndexStats() + { + unset($this->index_stats); + } + + /** + * Output only. Stats of the index resource. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\AIPlatform\V1\IndexStats $var + * @return $this + */ + public function setIndexStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\IndexStats::class); + $this->index_stats = $var; + + return $this; + } + + /** + * Immutable. The update method to use with this Index. If not set, + * BATCH_UPDATE will be used by default. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getIndexUpdateMethod() + { + return $this->index_update_method; + } + + /** + * Immutable. The update method to use with this Index. If not set, + * BATCH_UPDATE will be used by default. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setIndexUpdateMethod($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\Index\IndexUpdateMethod::class); + $this->index_update_method = $var; + + return $this; + } + + /** + * Immutable. Customer-managed encryption key spec for an Index. If set, this + * Index and all sub-resources of this Index will be secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\AIPlatform\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Immutable. Customer-managed encryption key spec for an Index. If set, this + * Index and all sub-resources of this Index will be secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\AIPlatform\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Index/IndexUpdateMethod.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Index/IndexUpdateMethod.php new file mode 100644 index 000000000000..5c4a33a3b824 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/Index/IndexUpdateMethod.php @@ -0,0 +1,67 @@ +google.cloud.aiplatform.v1.Index.IndexUpdateMethod + */ +class IndexUpdateMethod +{ + /** + * Should not be used. + * + * Generated from protobuf enum INDEX_UPDATE_METHOD_UNSPECIFIED = 0; + */ + const INDEX_UPDATE_METHOD_UNSPECIFIED = 0; + /** + * BatchUpdate: user can call UpdateIndex with files on Cloud Storage of + * Datapoints to update. + * + * Generated from protobuf enum BATCH_UPDATE = 1; + */ + const 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. + * + * Generated from protobuf enum STREAM_UPDATE = 2; + */ + const STREAM_UPDATE = 2; + + private static $valueToName = [ + self::INDEX_UPDATE_METHOD_UNSPECIFIED => 'INDEX_UPDATE_METHOD_UNSPECIFIED', + self::BATCH_UPDATE => 'BATCH_UPDATE', + self::STREAM_UPDATE => 'STREAM_UPDATE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(IndexUpdateMethod::class, \Google\Cloud\AIPlatform\V1\Index_IndexUpdateMethod::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint.php new file mode 100644 index 000000000000..f42b73472277 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint.php @@ -0,0 +1,241 @@ +google.cloud.aiplatform.v1.IndexDatapoint + */ +class IndexDatapoint extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Unique identifier of the datapoint. + * + * Generated from protobuf field string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $datapoint_id = ''; + /** + * Required. Feature embedding vector. An array of numbers with the length of + * [NearestNeighborSearchConfig.dimensions]. + * + * Generated from protobuf field repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $feature_vector; + /** + * 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. This uses categorical tokens. See: + * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $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. This uses numeric comparisons. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction numeric_restricts = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $numeric_restricts; + /** + * Optional. CrowdingTag of the datapoint, the number of neighbors to return + * in each crowding can be configured during query. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $crowding_tag = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $datapoint_id + * Required. Unique identifier of the datapoint. + * @type array|\Google\Protobuf\Internal\RepeatedField $feature_vector + * Required. Feature embedding vector. An array of numbers with the length of + * [NearestNeighborSearchConfig.dimensions]. + * @type array<\Google\Cloud\AIPlatform\V1\IndexDatapoint\Restriction>|\Google\Protobuf\Internal\RepeatedField $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. This uses categorical tokens. See: + * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering + * @type array<\Google\Cloud\AIPlatform\V1\IndexDatapoint\NumericRestriction>|\Google\Protobuf\Internal\RepeatedField $numeric_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. This uses numeric comparisons. + * @type \Google\Cloud\AIPlatform\V1\IndexDatapoint\CrowdingTag $crowding_tag + * Optional. CrowdingTag of the datapoint, the number of neighbors to return + * in each crowding can be configured during query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Index::initOnce(); + parent::__construct($data); + } + + /** + * Required. Unique identifier of the datapoint. + * + * Generated from protobuf field string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatapointId() + { + return $this->datapoint_id; + } + + /** + * Required. Unique identifier of the datapoint. + * + * Generated from protobuf field string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatapointId($var) + { + GPBUtil::checkString($var, True); + $this->datapoint_id = $var; + + return $this; + } + + /** + * Required. Feature embedding vector. An array of numbers with the length of + * [NearestNeighborSearchConfig.dimensions]. + * + * Generated from protobuf field repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFeatureVector() + { + return $this->feature_vector; + } + + /** + * Required. Feature embedding vector. An array of numbers with the length of + * [NearestNeighborSearchConfig.dimensions]. + * + * Generated from protobuf field repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFeatureVector($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::FLOAT); + $this->feature_vector = $arr; + + 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. This uses categorical tokens. See: + * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRestricts() + { + return $this->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. This uses categorical tokens. See: + * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\AIPlatform\V1\IndexDatapoint\Restriction>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRestricts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\IndexDatapoint\Restriction::class); + $this->restricts = $arr; + + 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. This uses numeric comparisons. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction numeric_restricts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNumericRestricts() + { + return $this->numeric_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. This uses numeric comparisons. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction numeric_restricts = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\AIPlatform\V1\IndexDatapoint\NumericRestriction>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNumericRestricts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\IndexDatapoint\NumericRestriction::class); + $this->numeric_restricts = $arr; + + return $this; + } + + /** + * Optional. CrowdingTag of the datapoint, the number of neighbors to return + * in each crowding can be configured during query. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\IndexDatapoint\CrowdingTag|null + */ + public function getCrowdingTag() + { + return $this->crowding_tag; + } + + public function hasCrowdingTag() + { + return isset($this->crowding_tag); + } + + public function clearCrowdingTag() + { + unset($this->crowding_tag); + } + + /** + * Optional. CrowdingTag of the datapoint, the number of neighbors to return + * in each crowding can be configured during query. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\IndexDatapoint\CrowdingTag $var + * @return $this + */ + public function setCrowdingTag($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\IndexDatapoint\CrowdingTag::class); + $this->crowding_tag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/CrowdingTag.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/CrowdingTag.php new file mode 100644 index 000000000000..83385a04018f --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/CrowdingTag.php @@ -0,0 +1,88 @@ +google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + */ +class CrowdingTag extends \Google\Protobuf\Internal\Message +{ + /** + * 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. + * + * Generated from protobuf field string crowding_attribute = 1; + */ + protected $crowding_attribute = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $crowding_attribute + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Index::initOnce(); + parent::__construct($data); + } + + /** + * 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. + * + * Generated from protobuf field string crowding_attribute = 1; + * @return string + */ + public function getCrowdingAttribute() + { + return $this->crowding_attribute; + } + + /** + * 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. + * + * Generated from protobuf field string crowding_attribute = 1; + * @param string $var + * @return $this + */ + public function setCrowdingAttribute($var) + { + GPBUtil::checkString($var, True); + $this->crowding_attribute = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CrowdingTag::class, \Google\Cloud\AIPlatform\V1\IndexDatapoint_CrowdingTag::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/NumericRestriction.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/NumericRestriction.php new file mode 100644 index 000000000000..46818e0ed735 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/NumericRestriction.php @@ -0,0 +1,217 @@ +google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + */ +class NumericRestriction extends \Google\Protobuf\Internal\Message +{ + /** + * The namespace of this restriction. e.g.: cost. + * + * Generated from protobuf field string namespace = 1; + */ + protected $namespace = ''; + /** + * This MUST be specified for queries and must NOT be specified for + * datapoints. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator op = 5; + */ + protected $op = 0; + protected $Value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $value_int + * Represents 64 bit integer. + * @type float $value_float + * Represents 32 bit float. + * @type float $value_double + * Represents 64 bit float. + * @type string $namespace + * The namespace of this restriction. e.g.: cost. + * @type int $op + * This MUST be specified for queries and must NOT be specified for + * datapoints. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Index::initOnce(); + parent::__construct($data); + } + + /** + * Represents 64 bit integer. + * + * Generated from protobuf field int64 value_int = 2; + * @return int|string + */ + public function getValueInt() + { + return $this->readOneof(2); + } + + public function hasValueInt() + { + return $this->hasOneof(2); + } + + /** + * Represents 64 bit integer. + * + * Generated from protobuf field int64 value_int = 2; + * @param int|string $var + * @return $this + */ + public function setValueInt($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Represents 32 bit float. + * + * Generated from protobuf field float value_float = 3; + * @return float + */ + public function getValueFloat() + { + return $this->readOneof(3); + } + + public function hasValueFloat() + { + return $this->hasOneof(3); + } + + /** + * Represents 32 bit float. + * + * Generated from protobuf field float value_float = 3; + * @param float $var + * @return $this + */ + public function setValueFloat($var) + { + GPBUtil::checkFloat($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Represents 64 bit float. + * + * Generated from protobuf field double value_double = 4; + * @return float + */ + public function getValueDouble() + { + return $this->readOneof(4); + } + + public function hasValueDouble() + { + return $this->hasOneof(4); + } + + /** + * Represents 64 bit float. + * + * Generated from protobuf field double value_double = 4; + * @param float $var + * @return $this + */ + public function setValueDouble($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * The namespace of this restriction. e.g.: cost. + * + * Generated from protobuf field string namespace = 1; + * @return string + */ + public function getNamespace() + { + return $this->namespace; + } + + /** + * The namespace of this restriction. e.g.: cost. + * + * Generated from protobuf field string namespace = 1; + * @param string $var + * @return $this + */ + public function setNamespace($var) + { + GPBUtil::checkString($var, True); + $this->namespace = $var; + + return $this; + } + + /** + * This MUST be specified for queries and must NOT be specified for + * datapoints. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator op = 5; + * @return int + */ + public function getOp() + { + return $this->op; + } + + /** + * This MUST be specified for queries and must NOT be specified for + * datapoints. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator op = 5; + * @param int $var + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\IndexDatapoint\NumericRestriction\Operator::class); + $this->op = $var; + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("Value"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NumericRestriction::class, \Google\Cloud\AIPlatform\V1\IndexDatapoint_NumericRestriction::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/NumericRestriction/Operator.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/NumericRestriction/Operator.php new file mode 100644 index 000000000000..233f513f1882 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/NumericRestriction/Operator.php @@ -0,0 +1,88 @@ +google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator + */ +class Operator +{ + /** + * Default value of the enum. + * + * Generated from protobuf enum OPERATOR_UNSPECIFIED = 0; + */ + const OPERATOR_UNSPECIFIED = 0; + /** + * Datapoints are eligible iff their value is < the query's. + * + * Generated from protobuf enum LESS = 1; + */ + const LESS = 1; + /** + * Datapoints are eligible iff their value is <= the query's. + * + * Generated from protobuf enum LESS_EQUAL = 2; + */ + const LESS_EQUAL = 2; + /** + * Datapoints are eligible iff their value is == the query's. + * + * Generated from protobuf enum EQUAL = 3; + */ + const EQUAL = 3; + /** + * Datapoints are eligible iff their value is >= the query's. + * + * Generated from protobuf enum GREATER_EQUAL = 4; + */ + const GREATER_EQUAL = 4; + /** + * Datapoints are eligible iff their value is > the query's. + * + * Generated from protobuf enum GREATER = 5; + */ + const GREATER = 5; + + private static $valueToName = [ + self::OPERATOR_UNSPECIFIED => 'OPERATOR_UNSPECIFIED', + self::LESS => 'LESS', + self::LESS_EQUAL => 'LESS_EQUAL', + self::EQUAL => 'EQUAL', + self::GREATER_EQUAL => 'GREATER_EQUAL', + self::GREATER => 'GREATER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Operator::class, \Google\Cloud\AIPlatform\V1\IndexDatapoint_NumericRestriction_Operator::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/Restriction.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/Restriction.php new file mode 100644 index 000000000000..674e01b0bf9e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexDatapoint/Restriction.php @@ -0,0 +1,139 @@ +google.cloud.aiplatform.v1.IndexDatapoint.Restriction + */ +class Restriction extends \Google\Protobuf\Internal\Message +{ + /** + * The namespace of this restriction. e.g.: color. + * + * Generated from protobuf field string namespace = 1; + */ + protected $namespace = ''; + /** + * The attributes to allow in this namespace. e.g.: 'red' + * + * Generated from protobuf field repeated string allow_list = 2; + */ + private $allow_list; + /** + * The attributes to deny in this namespace. e.g.: 'blue' + * + * Generated from protobuf field repeated string deny_list = 3; + */ + private $deny_list; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $namespace + * The namespace of this restriction. e.g.: color. + * @type array|\Google\Protobuf\Internal\RepeatedField $allow_list + * The attributes to allow in this namespace. e.g.: 'red' + * @type array|\Google\Protobuf\Internal\RepeatedField $deny_list + * The attributes to deny in this namespace. e.g.: 'blue' + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Index::initOnce(); + parent::__construct($data); + } + + /** + * The namespace of this restriction. e.g.: color. + * + * Generated from protobuf field string namespace = 1; + * @return string + */ + public function getNamespace() + { + return $this->namespace; + } + + /** + * The namespace of this restriction. e.g.: color. + * + * Generated from protobuf field string namespace = 1; + * @param string $var + * @return $this + */ + public function setNamespace($var) + { + GPBUtil::checkString($var, True); + $this->namespace = $var; + + return $this; + } + + /** + * The attributes to allow in this namespace. e.g.: 'red' + * + * Generated from protobuf field repeated string allow_list = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAllowList() + { + return $this->allow_list; + } + + /** + * The attributes to allow in this namespace. e.g.: 'red' + * + * Generated from protobuf field repeated string allow_list = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAllowList($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->allow_list = $arr; + + return $this; + } + + /** + * The attributes to deny in this namespace. e.g.: 'blue' + * + * Generated from protobuf field repeated string deny_list = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDenyList() + { + return $this->deny_list; + } + + /** + * The attributes to deny in this namespace. e.g.: 'blue' + * + * Generated from protobuf field repeated string deny_list = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDenyList($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->deny_list = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Restriction::class, \Google\Cloud\AIPlatform\V1\IndexDatapoint_Restriction::class); + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexEndpoint.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexEndpoint.php new file mode 100644 index 000000000000..4bdef3fded1e --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexEndpoint.php @@ -0,0 +1,695 @@ +google.cloud.aiplatform.v1.IndexEndpoint + */ +class IndexEndpoint extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the IndexEndpoint. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The display name of the IndexEndpoint. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * The description of the IndexEndpoint. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Output only. The indexes deployed in this endpoint. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $deployed_indexes; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 5; + */ + protected $etag = ''; + /** + * The labels with user-defined metadata to organize your IndexEndpoints. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 6; + */ + private $labels; + /** + * Output only. Timestamp when this IndexEndpoint was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Timestamp when this IndexEndpoint was last updated. + * This timestamp is not updated when the endpoint's DeployedIndexes are + * updated, e.g. due to updates of the original Indexes they are the + * deployments of. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. The full name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the IndexEndpoint should be peered. + * Private services access must already be configured for the network. If left + * unspecified, the Endpoint is not peered with any network. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. + * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + * `projects/{project}/global/networks/{network}`. + * Where {project} is a project number, as in '12345', and {network} is + * network name. + * + * Generated from protobuf field string network = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $network = ''; + /** + * Optional. Deprecated: If true, expose the IndexEndpoint via private service + * connect. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], + * can be set. + * + * Generated from protobuf field bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $enable_private_service_connect = false; + /** + * Optional. Configuration for private service connect. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $private_service_connect_config = null; + /** + * Optional. If true, the deployed index will be accessible through public + * endpoint. + * + * Generated from protobuf field bool public_endpoint_enabled = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $public_endpoint_enabled = false; + /** + * Output only. If + * [public_endpoint_enabled][google.cloud.aiplatform.v1.IndexEndpoint.public_endpoint_enabled] + * is true, this field will be populated with the domain name to use for this + * index endpoint. + * + * Generated from protobuf field string public_endpoint_domain_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $public_endpoint_domain_name = ''; + /** + * Immutable. Customer-managed encryption key spec for an IndexEndpoint. If + * set, this IndexEndpoint and all sub-resources of this IndexEndpoint will be + * secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 15 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $encryption_spec = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the IndexEndpoint. + * @type string $display_name + * Required. The display name of the IndexEndpoint. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * @type string $description + * The description of the IndexEndpoint. + * @type array<\Google\Cloud\AIPlatform\V1\DeployedIndex>|\Google\Protobuf\Internal\RepeatedField $deployed_indexes + * Output only. The indexes deployed in this endpoint. + * @type string $etag + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels with user-defined metadata to organize your IndexEndpoints. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Timestamp when this IndexEndpoint was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Timestamp when this IndexEndpoint was last updated. + * This timestamp is not updated when the endpoint's DeployedIndexes are + * updated, e.g. due to updates of the original Indexes they are the + * deployments of. + * @type string $network + * Optional. The full name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the IndexEndpoint should be peered. + * Private services access must already be configured for the network. If left + * unspecified, the Endpoint is not peered with any network. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. + * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + * `projects/{project}/global/networks/{network}`. + * Where {project} is a project number, as in '12345', and {network} is + * network name. + * @type bool $enable_private_service_connect + * Optional. Deprecated: If true, expose the IndexEndpoint via private service + * connect. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], + * can be set. + * @type \Google\Cloud\AIPlatform\V1\PrivateServiceConnectConfig $private_service_connect_config + * Optional. Configuration for private service connect. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. + * @type bool $public_endpoint_enabled + * Optional. If true, the deployed index will be accessible through public + * endpoint. + * @type string $public_endpoint_domain_name + * Output only. If + * [public_endpoint_enabled][google.cloud.aiplatform.v1.IndexEndpoint.public_endpoint_enabled] + * is true, this field will be populated with the domain name to use for this + * index endpoint. + * @type \Google\Cloud\AIPlatform\V1\EncryptionSpec $encryption_spec + * Immutable. Customer-managed encryption key spec for an IndexEndpoint. If + * set, this IndexEndpoint and all sub-resources of this IndexEndpoint will be + * secured by this key. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpoint::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the IndexEndpoint. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of the IndexEndpoint. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the IndexEndpoint. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of the IndexEndpoint. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The description of the IndexEndpoint. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the IndexEndpoint. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. The indexes deployed in this endpoint. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeployedIndexes() + { + return $this->deployed_indexes; + } + + /** + * Output only. The indexes deployed in this endpoint. + * + * Generated from protobuf field repeated .google.cloud.aiplatform.v1.DeployedIndex deployed_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\AIPlatform\V1\DeployedIndex>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeployedIndexes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\DeployedIndex::class); + $this->deployed_indexes = $arr; + + return $this; + } + + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 5; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Used to perform consistent read-modify-write updates. If not set, a blind + * "overwrite" update happens. + * + * Generated from protobuf field string etag = 5; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * The labels with user-defined metadata to organize your IndexEndpoints. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels with user-defined metadata to organize your IndexEndpoints. + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * See https://goo.gl/xmQnxf for more information and examples of labels. + * + * Generated from protobuf field map labels = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Timestamp when this IndexEndpoint was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Timestamp when this IndexEndpoint was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Timestamp when this IndexEndpoint was last updated. + * This timestamp is not updated when the endpoint's DeployedIndexes are + * updated, e.g. due to updates of the original Indexes they are the + * deployments of. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Timestamp when this IndexEndpoint was last updated. + * This timestamp is not updated when the endpoint's DeployedIndexes are + * updated, e.g. due to updates of the original Indexes they are the + * deployments of. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. The full name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the IndexEndpoint should be peered. + * Private services access must already be configured for the network. If left + * unspecified, the Endpoint is not peered with any network. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. + * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + * `projects/{project}/global/networks/{network}`. + * Where {project} is a project number, as in '12345', and {network} is + * network name. + * + * Generated from protobuf field string network = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Optional. The full name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the IndexEndpoint should be peered. + * Private services access must already be configured for the network. If left + * unspecified, the Endpoint is not peered with any network. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. + * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + * `projects/{project}/global/networks/{network}`. + * Where {project} is a project number, as in '12345', and {network} is + * network name. + * + * Generated from protobuf field string network = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * Optional. Deprecated: If true, expose the IndexEndpoint via private service + * connect. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], + * can be set. + * + * Generated from protobuf field bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return bool + * @deprecated + */ + public function getEnablePrivateServiceConnect() + { + @trigger_error('enable_private_service_connect is deprecated.', E_USER_DEPRECATED); + return $this->enable_private_service_connect; + } + + /** + * Optional. Deprecated: If true, expose the IndexEndpoint via private service + * connect. + * Only one of the fields, + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or + * [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], + * can be set. + * + * Generated from protobuf field bool enable_private_service_connect = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setEnablePrivateServiceConnect($var) + { + @trigger_error('enable_private_service_connect is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->enable_private_service_connect = $var; + + return $this; + } + + /** + * Optional. Configuration for private service connect. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\PrivateServiceConnectConfig|null + */ + public function getPrivateServiceConnectConfig() + { + return $this->private_service_connect_config; + } + + public function hasPrivateServiceConnectConfig() + { + return isset($this->private_service_connect_config); + } + + public function clearPrivateServiceConnectConfig() + { + unset($this->private_service_connect_config); + } + + /** + * Optional. Configuration for private service connect. + * [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + * [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + * are mutually exclusive. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\PrivateServiceConnectConfig $var + * @return $this + */ + public function setPrivateServiceConnectConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\PrivateServiceConnectConfig::class); + $this->private_service_connect_config = $var; + + return $this; + } + + /** + * Optional. If true, the deployed index will be accessible through public + * endpoint. + * + * Generated from protobuf field bool public_endpoint_enabled = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getPublicEndpointEnabled() + { + return $this->public_endpoint_enabled; + } + + /** + * Optional. If true, the deployed index will be accessible through public + * endpoint. + * + * Generated from protobuf field bool public_endpoint_enabled = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setPublicEndpointEnabled($var) + { + GPBUtil::checkBool($var); + $this->public_endpoint_enabled = $var; + + return $this; + } + + /** + * Output only. If + * [public_endpoint_enabled][google.cloud.aiplatform.v1.IndexEndpoint.public_endpoint_enabled] + * is true, this field will be populated with the domain name to use for this + * index endpoint. + * + * Generated from protobuf field string public_endpoint_domain_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPublicEndpointDomainName() + { + return $this->public_endpoint_domain_name; + } + + /** + * Output only. If + * [public_endpoint_enabled][google.cloud.aiplatform.v1.IndexEndpoint.public_endpoint_enabled] + * is true, this field will be populated with the domain name to use for this + * index endpoint. + * + * Generated from protobuf field string public_endpoint_domain_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPublicEndpointDomainName($var) + { + GPBUtil::checkString($var, True); + $this->public_endpoint_domain_name = $var; + + return $this; + } + + /** + * Immutable. Customer-managed encryption key spec for an IndexEndpoint. If + * set, this IndexEndpoint and all sub-resources of this IndexEndpoint will be + * secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\AIPlatform\V1\EncryptionSpec|null + */ + public function getEncryptionSpec() + { + return $this->encryption_spec; + } + + public function hasEncryptionSpec() + { + return isset($this->encryption_spec); + } + + public function clearEncryptionSpec() + { + unset($this->encryption_spec); + } + + /** + * Immutable. Customer-managed encryption key spec for an IndexEndpoint. If + * set, this IndexEndpoint and all sub-resources of this IndexEndpoint will be + * secured by this key. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\AIPlatform\V1\EncryptionSpec $var + * @return $this + */ + public function setEncryptionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EncryptionSpec::class); + $this->encryption_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexPrivateEndpoints.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexPrivateEndpoints.php new file mode 100644 index 000000000000..29c83fa03ec4 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexPrivateEndpoints.php @@ -0,0 +1,109 @@ +google.cloud.aiplatform.v1.IndexPrivateEndpoints + */ +class IndexPrivateEndpoints extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The ip address used to send match gRPC requests. + * + * Generated from protobuf field string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $match_grpc_address = ''; + /** + * Output only. The name of the service attachment resource. Populated if + * private service connect is enabled. + * + * Generated from protobuf field string service_attachment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service_attachment = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $match_grpc_address + * Output only. The ip address used to send match gRPC requests. + * @type string $service_attachment + * Output only. The name of the service attachment resource. Populated if + * private service connect is enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\IndexEndpoint::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The ip address used to send match gRPC requests. + * + * Generated from protobuf field string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMatchGrpcAddress() + { + return $this->match_grpc_address; + } + + /** + * Output only. The ip address used to send match gRPC requests. + * + * Generated from protobuf field string match_grpc_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMatchGrpcAddress($var) + { + GPBUtil::checkString($var, True); + $this->match_grpc_address = $var; + + return $this; + } + + /** + * Output only. The name of the service attachment resource. Populated if + * private service connect is enabled. + * + * Generated from protobuf field string service_attachment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getServiceAttachment() + { + return $this->service_attachment; + } + + /** + * Output only. The name of the service attachment resource. Populated if + * private service connect is enabled. + * + * Generated from protobuf field string service_attachment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setServiceAttachment($var) + { + GPBUtil::checkString($var, True); + $this->service_attachment = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexStats.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexStats.php new file mode 100644 index 000000000000..35b1d07e1e87 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/IndexStats.php @@ -0,0 +1,101 @@ +google.cloud.aiplatform.v1.IndexStats + */ +class IndexStats extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The number of vectors in the Index. + * + * Generated from protobuf field int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $vectors_count = 0; + /** + * Output only. The number of shards in the Index. + * + * Generated from protobuf field int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $shards_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $vectors_count + * Output only. The number of vectors in the Index. + * @type int $shards_count + * Output only. The number of shards in the Index. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Index::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The number of vectors in the Index. + * + * Generated from protobuf field int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getVectorsCount() + { + return $this->vectors_count; + } + + /** + * Output only. The number of vectors in the Index. + * + * Generated from protobuf field int64 vectors_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setVectorsCount($var) + { + GPBUtil::checkInt64($var); + $this->vectors_count = $var; + + return $this; + } + + /** + * Output only. The number of shards in the Index. + * + * Generated from protobuf field int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getShardsCount() + { + return $this->shards_count; + } + + /** + * Output only. The number of shards in the Index. + * + * Generated from protobuf field int32 shards_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setShardsCount($var) + { + GPBUtil::checkInt32($var); + $this->shards_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/InputDataConfig.php b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/InputDataConfig.php new file mode 100644 index 000000000000..d29879a01bb4 --- /dev/null +++ b/owl-bot-staging/AiPlatform/v1/proto/src/Google/Cloud/AIPlatform/V1/InputDataConfig.php @@ -0,0 +1,741 @@ +google.cloud.aiplatform.v1.InputDataConfig + */ +class InputDataConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID of the Dataset in the same Project and Location which data + * will be used to train the Model. The Dataset must use schema compatible + * with Model being trained, and what is compatible should be described in the + * used TrainingPipeline's [training_task_definition] + * [google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition]. + * For tabular Datasets, all their data is exported to training, to pick + * and choose from. + * + * Generated from protobuf field string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dataset_id = ''; + /** + * Applicable only to Datasets that have DataItems and Annotations. + * A filter on Annotations of the Dataset. Only Annotations that both + * match this filter and belong to DataItems not ignored by the split method + * are used in respectively training, validation or test role, depending on + * the role of the DataItem they are on (for the auto-assigned that role is + * decided by Vertex AI). A filter with same syntax as the one used in + * [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] + * may be used, but note here it filters across all Annotations of the + * Dataset, and not just within a single DataItem. + * + * Generated from protobuf field string annotations_filter = 6; + */ + protected $annotations_filter = ''; + /** + * Applicable only to custom training with Datasets that have DataItems and + * Annotations. + * Cloud Storage URI that points to a YAML file describing the annotation + * schema. The schema is defined as an OpenAPI 3.0.2 [Schema + * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). + * The schema files that can be used here are found in + * gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the + * chosen schema must be consistent with + * [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] of the + * Dataset specified by + * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id]. + * Only Annotations that both match this schema and belong to DataItems not + * ignored by the split method are used in respectively training, validation + * or test role, depending on the role of the DataItem they are on. + * When used in conjunction with + * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], + * the Annotations used for training are filtered by both + * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter] + * and + * [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri]. + * + * Generated from protobuf field string annotation_schema_uri = 9; + */ + protected $annotation_schema_uri = ''; + /** + * Only applicable to Datasets that have SavedQueries. + * The ID of a SavedQuery (annotation set) under the Dataset specified by + * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used + * for filtering Annotations for training. + * Only Annotations that are associated with this SavedQuery are used in + * respectively training. When used in conjunction with + * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], + * the Annotations used for training are filtered by both + * [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] + * and + * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter]. + * Only one of + * [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] + * and + * [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] + * should be specified as both of them represent the same thing: problem type. + * + * Generated from protobuf field string saved_query_id = 7; + */ + protected $saved_query_id = ''; + /** + * Whether to persist the ML use assignment to data item system labels. + * + * Generated from protobuf field bool persist_ml_use_assignment = 11; + */ + protected $persist_ml_use_assignment = false; + protected $split; + protected $destination; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AIPlatform\V1\FractionSplit $fraction_split + * Split based on fractions defining the size of each set. + * @type \Google\Cloud\AIPlatform\V1\FilterSplit $filter_split + * Split based on the provided filters for each set. + * @type \Google\Cloud\AIPlatform\V1\PredefinedSplit $predefined_split + * Supported only for tabular Datasets. + * Split based on a predefined key. + * @type \Google\Cloud\AIPlatform\V1\TimestampSplit $timestamp_split + * Supported only for tabular Datasets. + * Split based on the timestamp of the input data pieces. + * @type \Google\Cloud\AIPlatform\V1\StratifiedSplit $stratified_split + * Supported only for tabular Datasets. + * Split based on the distribution of the specified column. + * @type \Google\Cloud\AIPlatform\V1\GcsDestination $gcs_destination + * The Cloud Storage location where the training data is to be + * written to. In the given directory a new directory is created with + * name: + * `dataset---` + * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. + * All training input data is written into that directory. + * The Vertex AI environment variables representing Cloud Storage + * data URIs are represented in the Cloud Storage wildcard + * format to support sharded data. e.g.: "gs://.../training-*.jsonl" + * * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data + * * AIP_TRAINING_DATA_URI = + * "gcs_destination/dataset---