public static final class AIInference.Builder extends GeneratedMessage.Builder<AIInference.Builder> implements AIInferenceOrBuilderConfiguration for making inference requests against Vertex AI models.
Protobuf type google.pubsub.v1.AIInference
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AIInference.BuilderImplements
AIInferenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AIInference build()| Returns | |
|---|---|
| Type | Description |
AIInference |
|
buildPartial()
public AIInference buildPartial()| Returns | |
|---|---|
| Type | Description |
AIInference |
|
clear()
public AIInference.Builder clear()| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
|
clearEndpoint()
public AIInference.Builder clearEndpoint() Required. An endpoint to a Vertex AI model of the form
projects/{project}/locations/{location}/endpoints/{endpoint} or
projects/{project}/locations/{location}/publishers/{publisher}/models/{model}.
Vertex AI API requests will be sent to this endpoint.
string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
This builder for chaining. |
clearInferenceMode()
public AIInference.Builder clearInferenceMode()| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
|
clearServiceAccountEmail()
public AIInference.Builder clearServiceAccountEmail() Optional. The service account to use to make prediction requests against
endpoints. The resource creator or updater that specifies this field must
have iam.serviceAccounts.actAs permission on the service account. If not
specified, the Pub/Sub service
agent,
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
This builder for chaining. |
clearUnstructuredInference()
public AIInference.Builder clearUnstructuredInference()Optional. Requests and responses can be any arbitrary JSON object.
.google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
|
getDefaultInstanceForType()
public AIInference getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AIInference |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndpoint()
public String getEndpoint() Required. An endpoint to a Vertex AI model of the form
projects/{project}/locations/{location}/endpoints/{endpoint} or
projects/{project}/locations/{location}/publishers/{publisher}/models/{model}.
Vertex AI API requests will be sent to this endpoint.
string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The endpoint. |
getEndpointBytes()
public ByteString getEndpointBytes() Required. An endpoint to a Vertex AI model of the form
projects/{project}/locations/{location}/endpoints/{endpoint} or
projects/{project}/locations/{location}/publishers/{publisher}/models/{model}.
Vertex AI API requests will be sent to this endpoint.
string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for endpoint. |
getInferenceModeCase()
public AIInference.InferenceModeCase getInferenceModeCase()| Returns | |
|---|---|
| Type | Description |
AIInference.InferenceModeCase |
|
getServiceAccountEmail()
public String getServiceAccountEmail() Optional. The service account to use to make prediction requests against
endpoints. The resource creator or updater that specifies this field must
have iam.serviceAccounts.actAs permission on the service account. If not
specified, the Pub/Sub service
agent,
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The serviceAccountEmail. |
getServiceAccountEmailBytes()
public ByteString getServiceAccountEmailBytes() Optional. The service account to use to make prediction requests against
endpoints. The resource creator or updater that specifies this field must
have iam.serviceAccounts.actAs permission on the service account. If not
specified, the Pub/Sub service
agent,
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for serviceAccountEmail. |
getUnstructuredInference()
public AIInference.UnstructuredInference getUnstructuredInference()Optional. Requests and responses can be any arbitrary JSON object.
.google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AIInference.UnstructuredInference |
The unstructuredInference. |
getUnstructuredInferenceBuilder()
public AIInference.UnstructuredInference.Builder getUnstructuredInferenceBuilder()Optional. Requests and responses can be any arbitrary JSON object.
.google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AIInference.UnstructuredInference.Builder |
|
getUnstructuredInferenceOrBuilder()
public AIInference.UnstructuredInferenceOrBuilder getUnstructuredInferenceOrBuilder()Optional. Requests and responses can be any arbitrary JSON object.
.google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AIInference.UnstructuredInferenceOrBuilder |
|
hasUnstructuredInference()
public boolean hasUnstructuredInference()Optional. Requests and responses can be any arbitrary JSON object.
.google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the unstructuredInference field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AIInference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AIInference.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
|
mergeFrom(AIInference other)
public AIInference.Builder mergeFrom(AIInference other)| Parameter | |
|---|---|
| Name | Description |
other |
AIInference |
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
|
mergeUnstructuredInference(AIInference.UnstructuredInference value)
public AIInference.Builder mergeUnstructuredInference(AIInference.UnstructuredInference value)Optional. Requests and responses can be any arbitrary JSON object.
.google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AIInference.UnstructuredInference |
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
|
setEndpoint(String value)
public AIInference.Builder setEndpoint(String value) Required. An endpoint to a Vertex AI model of the form
projects/{project}/locations/{location}/endpoints/{endpoint} or
projects/{project}/locations/{location}/publishers/{publisher}/models/{model}.
Vertex AI API requests will be sent to this endpoint.
string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe endpoint to set. |
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
This builder for chaining. |
setEndpointBytes(ByteString value)
public AIInference.Builder setEndpointBytes(ByteString value) Required. An endpoint to a Vertex AI model of the form
projects/{project}/locations/{location}/endpoints/{endpoint} or
projects/{project}/locations/{location}/publishers/{publisher}/models/{model}.
Vertex AI API requests will be sent to this endpoint.
string endpoint = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for endpoint to set. |
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
This builder for chaining. |
setServiceAccountEmail(String value)
public AIInference.Builder setServiceAccountEmail(String value) Optional. The service account to use to make prediction requests against
endpoints. The resource creator or updater that specifies this field must
have iam.serviceAccounts.actAs permission on the service account. If not
specified, the Pub/Sub service
agent,
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe serviceAccountEmail to set. |
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
This builder for chaining. |
setServiceAccountEmailBytes(ByteString value)
public AIInference.Builder setServiceAccountEmailBytes(ByteString value) Optional. The service account to use to make prediction requests against
endpoints. The resource creator or updater that specifies this field must
have iam.serviceAccounts.actAs permission on the service account. If not
specified, the Pub/Sub service
agent,
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for serviceAccountEmail to set. |
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
This builder for chaining. |
setUnstructuredInference(AIInference.UnstructuredInference value)
public AIInference.Builder setUnstructuredInference(AIInference.UnstructuredInference value)Optional. Requests and responses can be any arbitrary JSON object.
.google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AIInference.UnstructuredInference |
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
|
setUnstructuredInference(AIInference.UnstructuredInference.Builder builderForValue)
public AIInference.Builder setUnstructuredInference(AIInference.UnstructuredInference.Builder builderForValue)Optional. Requests and responses can be any arbitrary JSON object.
.google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AIInference.UnstructuredInference.Builder |
| Returns | |
|---|---|
| Type | Description |
AIInference.Builder |
|