Class VertexCustomConfig.Builder (0.14.1)

public static final class VertexCustomConfig.Builder extends GeneratedMessageV3.Builder<VertexCustomConfig.Builder> implements VertexCustomConfigOrBuilder

Message describing VertexCustomConfig.

Protobuf type google.events.cloud.visionai.v1.VertexCustomConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VertexCustomConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides

build()

public VertexCustomConfig build()
Returns
TypeDescription
VertexCustomConfig

buildPartial()

public VertexCustomConfig buildPartial()
Returns
TypeDescription
VertexCustomConfig

clear()

public VertexCustomConfig.Builder clear()
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides

clearAttachApplicationMetadata()

public VertexCustomConfig.Builder clearAttachApplicationMetadata()

If true, the prediction request received by custom model will also contain metadata with the following schema: 'appPlatformMetadata': { 'ingestionTime': DOUBLE; (UNIX timestamp) 'application': STRING; 'instanceId': STRING; 'node': STRING; 'processor': STRING; }

bool attach_application_metadata = 4;

Returns
TypeDescription
VertexCustomConfig.Builder

This builder for chaining.

clearDedicatedResources()

public VertexCustomConfig.Builder clearDedicatedResources()

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.events.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;

Returns
TypeDescription
VertexCustomConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public VertexCustomConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides

clearMaxPredictionFps()

public VertexCustomConfig.Builder clearMaxPredictionFps()

The max prediction frame per second. This attribute sets how fast the operator sends prediction requests to Vertex AI endpoint. Default value is 0, which means there is no max prediction fps limit. The operator sends prediction requests at input fps.

int32 max_prediction_fps = 1;

Returns
TypeDescription
VertexCustomConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VertexCustomConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides

clearPostProcessingCloudFunction()

public VertexCustomConfig.Builder clearPostProcessingCloudFunction()

If not empty, the prediction result will be sent to the specified cloud function for post processing.

  • The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of proto PredictResponse.
  • The cloud function should return AppPlatformCloudFunctionResponse with PredictResponse stored in the annotations field.
  • To drop the prediction output, simply clear the payload field in the returned AppPlatformCloudFunctionResponse.

string post_processing_cloud_function = 3;

Returns
TypeDescription
VertexCustomConfig.Builder

This builder for chaining.

clone()

public VertexCustomConfig.Builder clone()
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides

getAttachApplicationMetadata()

public boolean getAttachApplicationMetadata()

If true, the prediction request received by custom model will also contain metadata with the following schema: 'appPlatformMetadata': { 'ingestionTime': DOUBLE; (UNIX timestamp) 'application': STRING; 'instanceId': STRING; 'node': STRING; 'processor': STRING; }

bool attach_application_metadata = 4;

Returns
TypeDescription
boolean

The attachApplicationMetadata.

getDedicatedResources()

public DedicatedResources getDedicatedResources()

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.events.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;

Returns
TypeDescription
DedicatedResources

The dedicatedResources.

getDedicatedResourcesBuilder()

public DedicatedResources.Builder getDedicatedResourcesBuilder()

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.events.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;

Returns
TypeDescription
DedicatedResources.Builder

getDedicatedResourcesOrBuilder()

public DedicatedResourcesOrBuilder getDedicatedResourcesOrBuilder()

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.events.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;

Returns
TypeDescription
DedicatedResourcesOrBuilder

getDefaultInstanceForType()

public VertexCustomConfig getDefaultInstanceForType()
Returns
TypeDescription
VertexCustomConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMaxPredictionFps()

public int getMaxPredictionFps()

The max prediction frame per second. This attribute sets how fast the operator sends prediction requests to Vertex AI endpoint. Default value is 0, which means there is no max prediction fps limit. The operator sends prediction requests at input fps.

int32 max_prediction_fps = 1;

Returns
TypeDescription
int

The maxPredictionFps.

getPostProcessingCloudFunction()

public String getPostProcessingCloudFunction()

If not empty, the prediction result will be sent to the specified cloud function for post processing.

  • The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of proto PredictResponse.
  • The cloud function should return AppPlatformCloudFunctionResponse with PredictResponse stored in the annotations field.
  • To drop the prediction output, simply clear the payload field in the returned AppPlatformCloudFunctionResponse.

string post_processing_cloud_function = 3;

Returns
TypeDescription
String

The postProcessingCloudFunction.

getPostProcessingCloudFunctionBytes()

public ByteString getPostProcessingCloudFunctionBytes()

If not empty, the prediction result will be sent to the specified cloud function for post processing.

  • The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of proto PredictResponse.
  • The cloud function should return AppPlatformCloudFunctionResponse with PredictResponse stored in the annotations field.
  • To drop the prediction output, simply clear the payload field in the returned AppPlatformCloudFunctionResponse.

string post_processing_cloud_function = 3;

Returns
TypeDescription
ByteString

The bytes for postProcessingCloudFunction.

hasDedicatedResources()

public boolean hasDedicatedResources()

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.events.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;

Returns
TypeDescription
boolean

Whether the dedicatedResources field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDedicatedResources(DedicatedResources value)

public VertexCustomConfig.Builder mergeDedicatedResources(DedicatedResources value)

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.events.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;

Parameter
NameDescription
valueDedicatedResources
Returns
TypeDescription
VertexCustomConfig.Builder

mergeFrom(VertexCustomConfig other)

public VertexCustomConfig.Builder mergeFrom(VertexCustomConfig other)
Parameter
NameDescription
otherVertexCustomConfig
Returns
TypeDescription
VertexCustomConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VertexCustomConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VertexCustomConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VertexCustomConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides

setAttachApplicationMetadata(boolean value)

public VertexCustomConfig.Builder setAttachApplicationMetadata(boolean value)

If true, the prediction request received by custom model will also contain metadata with the following schema: 'appPlatformMetadata': { 'ingestionTime': DOUBLE; (UNIX timestamp) 'application': STRING; 'instanceId': STRING; 'node': STRING; 'processor': STRING; }

bool attach_application_metadata = 4;

Parameter
NameDescription
valueboolean

The attachApplicationMetadata to set.

Returns
TypeDescription
VertexCustomConfig.Builder

This builder for chaining.

setDedicatedResources(DedicatedResources value)

public VertexCustomConfig.Builder setDedicatedResources(DedicatedResources value)

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.events.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;

Parameter
NameDescription
valueDedicatedResources
Returns
TypeDescription
VertexCustomConfig.Builder

setDedicatedResources(DedicatedResources.Builder builderForValue)

public VertexCustomConfig.Builder setDedicatedResources(DedicatedResources.Builder builderForValue)

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.events.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;

Parameter
NameDescription
builderForValueDedicatedResources.Builder
Returns
TypeDescription
VertexCustomConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VertexCustomConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides

setMaxPredictionFps(int value)

public VertexCustomConfig.Builder setMaxPredictionFps(int value)

The max prediction frame per second. This attribute sets how fast the operator sends prediction requests to Vertex AI endpoint. Default value is 0, which means there is no max prediction fps limit. The operator sends prediction requests at input fps.

int32 max_prediction_fps = 1;

Parameter
NameDescription
valueint

The maxPredictionFps to set.

Returns
TypeDescription
VertexCustomConfig.Builder

This builder for chaining.

setPostProcessingCloudFunction(String value)

public VertexCustomConfig.Builder setPostProcessingCloudFunction(String value)

If not empty, the prediction result will be sent to the specified cloud function for post processing.

  • The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of proto PredictResponse.
  • The cloud function should return AppPlatformCloudFunctionResponse with PredictResponse stored in the annotations field.
  • To drop the prediction output, simply clear the payload field in the returned AppPlatformCloudFunctionResponse.

string post_processing_cloud_function = 3;

Parameter
NameDescription
valueString

The postProcessingCloudFunction to set.

Returns
TypeDescription
VertexCustomConfig.Builder

This builder for chaining.

setPostProcessingCloudFunctionBytes(ByteString value)

public VertexCustomConfig.Builder setPostProcessingCloudFunctionBytes(ByteString value)

If not empty, the prediction result will be sent to the specified cloud function for post processing.

  • The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of proto PredictResponse.
  • The cloud function should return AppPlatformCloudFunctionResponse with PredictResponse stored in the annotations field.
  • To drop the prediction output, simply clear the payload field in the returned AppPlatformCloudFunctionResponse.

string post_processing_cloud_function = 3;

Parameter
NameDescription
valueByteString

The bytes for postProcessingCloudFunction to set.

Returns
TypeDescription
VertexCustomConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VertexCustomConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VertexCustomConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides