public static final class AIInference.Builder extends GeneratedMessageV3.Builder<AIInference.Builder> implements AIInferenceOrBuilder
Configuration for making inference requests against Vertex AI models.
Protobuf type google.pubsub.v1.AIInference
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AIInference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AIInference build()
buildPartial()
public AIInference buildPartial()
clear()
public AIInference.Builder clear()
Overrides
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];
clearField(Descriptors.FieldDescriptor field)
public AIInference.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInferenceMode()
public AIInference.Builder clearInferenceMode()
clearOneof(Descriptors.OneofDescriptor oneof)
public AIInference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
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];
clone()
public AIInference.Builder clone()
Overrides
getDefaultInstanceForType()
public AIInference getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
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];
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];
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];
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public AIInference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AIInference.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeFrom(AIInference other)
public AIInference.Builder mergeFrom(AIInference other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AIInference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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 |
String
The endpoint to set.
|
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 |
ByteString
The bytes for endpoint to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AIInference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AIInference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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 |
String
The serviceAccountEmail to set.
|
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 |
ByteString
The bytes for serviceAccountEmail to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AIInference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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];