id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
google_protobuf/google_protobuf_5_1.txt |
fractional digits depending on the precision required to represent the exact
Duration value. For example: “1s”, “1.010s”, “1.000000100s”, “-3.100s”
` ToMicroseconds ` ( ) ¶
Converts a Duration to microseconds.
` ToMilliseconds ` ( ) ¶
Converts a Duration to milliseconds.
` ToNanoseconds ` ( ) ¶
... | |
google_protobuf/comgooglecloudvertex_251_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/PredictionServiceCli_184_0.txt | public final void close() | |
google_protobuf/google_protobuf_13_1.txt | le.protobuf.service_reflection ](service_reflection.html)
* [ google.protobuf.struct_pb2 ](struct_pb2.html)
* [ google.protobuf.symbol_database ](symbol_database.html)
* [ google.protobuf.text_encoding ](text_encoding.html)
* [ google.protobuf.text_format ](text_format.html)
* [ google.protobuf.timestamp_pb2 ... | |
google_protobuf/comgooglecloudvertex_286_0.txt | public final ExplainResponse explain(String endpoint, List<Value> instances, Value parameters, String deployedModelId) | |
google_protobuf/PredictionServiceCli_197_0.txt | Specified by: | |
google_protobuf/comgooglecloudvertex_373_0.txt | public final PredictionServiceClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request) | |
google_protobuf/PredictionServiceCli_65_0.txt | * #### PredictionServiceClient | |
google_protobuf/comgooglecloudvertex_316_0.txt | public final GenerateContentResponse generateContent(String model, List<Content> contents) | |
google_protobuf/comgooglecloudvertex_28_1.txt | rBuilder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.DeployModelResponseOrBuilder)
* [ DeployedModelOrBuilder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.DeployedModelOrBuilder)
* [ DirectPredictRequestOrBuilder ](/java/docs/reference/google... | |
google_protobuf/PredictionServiceCli_101_0.txt | ` com.google.api.gax.rpc.ApiException ` \- if the remote call fails
* #### predict | |
google_protobuf/comgooglecloudvertex_414_0.txt | Perform an online prediction. | |
google_protobuf/PredictionServiceCli_73_0.txt | public static final [PredictionServiceClient](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceClient.html "class in com.google.cloud.aiplatform.v1") create()
throws [IOException](https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true "class or interface in java.io") | |
google_protobuf/604925_186_0.txt | | 10 | |
google_protobuf/comgooglecloudvertex_363_0.txt | ### getStub() | |
google_protobuf/tabular_130_0.txt | To mitigate high latency, provide a warmup request for the runtime to load when it starts. The warmup file should include the various batch sizes you expect your model to receive in production. | |
google_protobuf/comgooglecloudvertex_7_0.txt | [ Related sites ](https://cloud.google.com/) | |
google_protobuf/tabular_39_0.txt | # Get your Google Cloud project ID from gcloud
if not os.getenv("IS_TESTING"):
shell_output = !gcloud config list --format 'value(core.project)' 2>/dev/null
PROJECT_ID = shell_output[0]
print("Project ID: ", PROJECT_ID) | |
google_protobuf/comgooglecloudvertex_558_0.txt | Send feedback | |
google_protobuf/comgooglecloudvertex_39_0.txt | * com.google.cloud.vertexai.api.stub | |
google_protobuf/google_protobuf_3_0.txt | # google.protobuf.wrappers_pb2 ¶
Generated protocol buffer code.
_class_ ` google.protobuf.wrappers_pb2. ` ` BoolValue ` ( _**kwargs_ ) ¶
` ByteSize ` ( ) ¶
` Clear ` ( ) ¶
` ClearExtension ` ( _extension_handle_ ) ¶
Clears the contents of a given extension.
Parameters :
... | |
google_protobuf/PredictionServiceCli_61_0.txt | Perform an online prediction with an arbitrary HTTP payload. | |
google_protobuf/comgooglecloudvertex_199_0.txt | [ Object.wait()
](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) | |
google_protobuf/tabular_239_0.txt | (Optional) Compare prediction results
In this sample the Vertex Prediction optimized TensorFlow runtime is used with the allow_precision_affecting_optimizations flag set to true to gain additional speedup. Now let's check how those optimizations effect prediction results. | |
google_protobuf/comgooglecloudvertex_123_0.txt | If deployed_model_id is specified, the corresponding DeployModel must have
explanation_spec populated. If deployed_model_id is not specified, all
DeployedModels must have explanation_spec populated. | |
google_protobuf/comgooglecloudvertex_375_0.txt | Sample code: | |
google_protobuf/google_protobuf_23_5.txt | R ` _= <google.protobuf.descriptor.Descriptor object> _ ¶
` DiscardUnknownFields ` ( ) ¶
` FindInitializationErrors ` ( ) ¶
Finds required fields which are not initialized.
Returns :
A list of strings. Each string is a path to an uninitialized field from the
top-level message, e.g. “fo... | |
google_protobuf/comgooglecloudvertex_64_0.txt | Predict | |
google_protobuf/comgooglecloudvertex_146_0.txt | * listLocations(ListLocationsRequest request) | |
google_protobuf/comgooglecloudvertex_348_0.txt | Gets information about a location. | |
google_protobuf/comgooglecloudvertex_233_0.txt | ### directPredict(DirectPredictRequest request) | |
google_protobuf/604925_192_0.txt | | 1 | |
google_protobuf/comgooglecloudvertex_333_0.txt | public final Policy getIamPolicy(GetIamPolicyRequest request) | |
google_protobuf/comgooglecloudvertex_352_0.txt | The request object containing all of the parameters for the API call. | |
google_protobuf/tabular_20_0.txt | # The Vertex AI Workbench Notebook product has specific requirements
IS_GOOGLE_CLOUD_NOTEBOOK = os.path.exists("/opt/deeplearning/metadata/env_version") | |
google_protobuf/comgooglecloudvertex_356_0.txt | Gets information about a location. | |
google_protobuf/comgooglecloudvertex_495_0.txt | ### setIamPolicyCallable() | |
google_protobuf/comgooglecloudvertex_463_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/comgooglecloudvertex_247_0.txt | ### directRawPredict(DirectRawPredictRequest request) | |
google_protobuf/tabular_68_0.txt |
! gsutil mb -l
PROJECT_ID $BUCKET_URI | |
google_protobuf/PredictionServiceCli_68_0.txt | Throws: | |
google_protobuf/tabular_225_0.txt | return benchmark(
send_grpc_request,
build_grpc_request,
f"{LOCAL_DIRECTORY_FULL}/requests/requests_100_512.jsonl",
qps_list,
duration_seconds,
model_name="default",
) | |
google_protobuf/PredictionServiceCli_149_0.txt | The response includes the following HTTP headers: | |
google_protobuf/comgooglecloudvertex_157_0.txt | Sets the access control policy on the specified resource. Replacesany existing
policy. | |
google_protobuf/comgooglecloudvertex_16_0.txt | * [ Documentation ](/docs)
* [ Overview ](/java/docs)
* [ Guides ](/java/docs/setup)
* [ Reference ](/java/docs/reference)
* [ Samples ](/docs/samples/?language=java)
* [ Technology areas ](/docs/tech-area-overviews)
* More
* [ Cross-product tools ](/docs/cross-product-overviews)
* More
* [ Related sites ](/)
*... | |
google_protobuf/comgooglecloudvertex_122_0.txt | Perform an online explanation. | |
google_protobuf/tabular_202_0.txt | Import helper functions for benchmarking models. | |
google_protobuf/comgooglecloudvertex_367_0.txt | public boolean isShutdown() | |
google_protobuf/comgooglecloudvertex_83_0.txt | Callable method variants take no parameters and return an immutable API
callable object, which can be used to initiate calls to the service. | |
google_protobuf/google_protobuf_23_17.txt | e specified message into the current message.
The method clears the current message and then merges the specified message
using MergeFrom.
Parameters :
**other_msg** ( [ _Message_ ](message.html#google.protobuf.message.Message
"google.protobuf.message.Message") ) – A message to copy into the current one.
` D... | |
google_protobuf/google_protobuf_24_1.txt | _ ` RegisterExtension ` ( _extension_handle_ ) ¶
` SerializePartialToString ` ( _**kwargs_ ) ¶
` SerializeToString ` ( _**kwargs_ ) ¶
` SetInParent ` ( ) ¶
Sets the _cached_byte_size_dirty bit to true, and propagates this to our
listener iff this was a state change.
` ToJsonString `... | |
google_protobuf/tabular_97_0.txt | if column_name.startswith("cat"):
column_vocabulary_size = VOCABULARY_SIZE[column_name]
hash_bucket_size = min(column_vocabulary_size, 100000)
embedding_dimension = int(
min(50, math.floor(6 * column_vocabulary_size**0.25))
)
categorical_feature_columns.append(
tf.feature_column.embedding_column(
tf.feature_column.cate... | |
google_protobuf/tabular_144_0.txt | Define the node type to use for deployments. To learn about Vertex AI Prediction options, see configure compute resources. | |
google_protobuf/604925_63_0.txt | Bronze 3 | |
google_protobuf/comgooglecloudvertex_114_0.txt | Perform a server-side streaming online prediction request for Vertex LLM
streaming. | |
google_protobuf/comgooglecloudvertex_158_0.txt | Can return ` NOT_FOUND ` , ` INVALID_ARGUMENT ` , and ` PERMISSION_DENIED `
errors. | |
google_protobuf/PredictionServiceCli_69_0.txt | ` [ IOException ](https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true "class or interface in java.io") `
* #### PredictionServiceClient | |
google_protobuf/comgooglecloudvertex_65_0.txt | Perform an online prediction. | |
google_protobuf/comgooglecloudvertex_309_0.txt | Generate content with multimodal inputs. | |
google_protobuf/comgooglecloudvertex_328_0.txt | Generate content with multimodal inputs. | |
google_protobuf/comgooglecloudvertex_148_0.txt | * listLocationsPagedCallable() | |
google_protobuf/PredictionServiceCli_97_0.txt | Sample code: | |
google_protobuf/PredictionServiceCli_13_0.txt |
[@Generated](https://docs.oracle.com/javase/8/docs/api/javax/annotation/Generated.html?is-external=true "class or interface in javax.annotation")([value](https://docs.oracle.com/javase/8/docs/api/javax/annotation/Generated.html?is-external=true#value-- "class or interface in javax.annotation")="by gapic-generator-java... | |
google_protobuf/604925_184_0.txt | User | Count
---|--- | |
google_protobuf/comgooglecloudvertex_324_0.txt | For single-turn queries, this is a single instance. For multi-turn queries,
this is a repeated field that contains conversation history + latest request. | |
google_protobuf/tabular_163_0.txt | Create the VPC connection. | |
google_protobuf/google_protobuf_23_8.txt | _ ` google.protobuf.descriptor_pb2. ` ` FieldOptions ` ( _**kwargs_ )
¶
` ByteSize ` ( ) ¶
` CORD ` _= 1_ ¶
` CTYPE_FIELD_NUMBER ` _= 1_ ¶
` CType ` _= <google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper
object> _ ¶
` Clear ` ( ) ¶
` ClearExtension ` ( _extension_... | |
google_protobuf/comgooglecloudvertex_263_0.txt | Perform an online explanation. | |
google_protobuf/comgooglecloudvertex_527_0.txt | Sample code: | |
google_protobuf/comgooglecloudvertex_84_0.txt | * rawPredictCallable() | |
google_protobuf/comgooglecloudvertex_46_0.txt | * [ Package summary ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.generativeai)
* Classes | |
google_protobuf/comgooglecloudvertex_275_0.txt | **Returns**
---
**Type** | **Description**
` [ ExplainResponse ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.ExplainResponse) ` | | |
google_protobuf/PredictionServiceCli_0_0.txt | JavaScript is disabled on your browser. | |
google_protobuf/comgooglecloudvertex_95_0.txt | DirectRawPredict | |
google_protobuf/PredictionServiceCli_15_0.txt | This class provides the ability to make remote calls to the backing service
through method calls that map to API methods. Sample code to get started: | |
google_protobuf/PredictionServiceCli_126_0.txt | public final com.google.api.HttpBody rawPredict([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true "class or interface in java.lang") endpoint,
com.google.api.HttpBody httpBody) | |
google_protobuf/google_protobuf_23_7.txt | – A message to copy into the current one.
` DEFAULT_VALUE_FIELD_NUMBER ` _= 7_ ¶
` DESCRIPTOR ` _= <google.protobuf.descriptor.Descriptor object> _ ¶
` DiscardUnknownFields ` ( ) ¶
` EXTENDEE_FIELD_NUMBER ` _= 2_ ¶
` FindInitializationErrors ` ( ) ¶
Finds required fields which ar... | |
google_protobuf/tabular_217_0.txt | return benchmark(
send_rest_request,
build_rest_request,
f"{LOCAL_DIRECTORY_FULL}/requests/requests_100_512.jsonl",
qps_list,
duration_seconds,
model_name=model_name,
) | |
google_protobuf/604925_168_0.txt | [ Jump to Solution ](/gc/AI-ML/Vertex-AI-Getting-a-GRPC-Exception-when-
sending-a-prediction/m-p/604925#M2198) | |
google_protobuf/comgooglecloudvertex_284_0.txt | **Returns**
---
**Type** | **Description**
` [ ExplainResponse ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.ExplainResponse) ` | | |
google_protobuf/PredictionServiceCli_140_0.txt | The response includes the following HTTP headers: | |
google_protobuf/604925_141_0.txt | Using endpoint [https://europe-west4-prediction-aiplatform.googleapis.com/]
ERROR: gcloud crashed (ContentDecodingError): ('Received response with content-encoding: gzip, gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check')) | |
google_protobuf/comgooglecloudvertex_206_0.txt | **Returns**
---
**Type** | **Description**
` [ PredictionServiceClient ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.PredictionServiceClient) ` |
**Exceptions**
---
**Type** | **Description**
` [ IOException
](https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html) ` | | |
google_protobuf/604925_128_0.txt |  needs to be called on the PredictionServiceClient object to
clean up resources such as threads. In the example above, try-with-resources
is used, which automatically calls close(). | |
google_protobuf/comgooglecloudvertex_58_0.txt | public class PredictionServiceClient implements BackgroundResource | |
google_protobuf/PredictionServiceCli_174_0.txt |
try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
ExplainRequest request =
ExplainRequest.newBuilder()
.setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
.addAllInstances(new ArrayList<Value>())
.setParameters(Value.newBuilder().build())
.setExpla... | |
google_protobuf/604925_185_0.txt | [

xavidop 
](/gc/user/viewprofilepage/user-id/395393) | |
google_protobuf/comgooglecloudvertex_376_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/comgooglecloudvertex_24_0.txt | * [ Constants ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.Constants)
* [ VertexAI ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.VertexAI)
* [ VertexAI.Builder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.VertexAI.Build... | |
google_protobuf/604925_166_0.txt | I have found an open issue on this topic: [
https://issuetracker.google.com/issues/234474507
](https://issuetracker.google.com/issues/234474507) | |
google_protobuf/comgooglecloudvertex_292_0.txt | Required. The name of the Endpoint requested to serve the explanation. Format:
` projects/{project}/locations/{location}/endpoints/{endpoint} ` | |
google_protobuf/comgooglecloudvertex_36_1.txt | d.vertexai.api.TFRecordDestination)
* [ TFRecordDestination.Builder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.TFRecordDestination.Builder)
* [ Tensor ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.Tensor)
* [ Tensor.Builder ](/java/docs/refer... | |
google_protobuf/604925_62_0.txt | [ Roborg ](https://www.googlecloudcommunity.com/gc/user/viewprofilepage/user-
id/433041)  | |
google_protobuf/tabular_58_0.txt | google_auth.authenticate_user() | |
google_protobuf/PredictionServiceCli_187_0.txt | public void shutdown() | |
google_protobuf/comgooglecloudvertex_161_0.txt | Callable method variants take no parameters and return an immutable API
callable object, which can be used to initiate calls to the service. | |
google_protobuf/tabular_50_0.txt | In the Service account name field, enter a name, and click Create. | |
google_protobuf/604925_8_0.txt | * [ ⚡Cloud Hub ](/gc/Cloud-Hub/bd-p/cloud-hub) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.