Class VertexCustomConfig (0.14.1)

public final class VertexCustomConfig extends GeneratedMessageV3 implements VertexCustomConfigOrBuilder

Message describing VertexCustomConfig.

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

Static Fields

ATTACH_APPLICATION_METADATA_FIELD_NUMBER

public static final int ATTACH_APPLICATION_METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

DEDICATED_RESOURCES_FIELD_NUMBER

public static final int DEDICATED_RESOURCES_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_PREDICTION_FPS_FIELD_NUMBER

public static final int MAX_PREDICTION_FPS_FIELD_NUMBER
Field Value
TypeDescription
int

POST_PROCESSING_CLOUD_FUNCTION_FIELD_NUMBER

public static final int POST_PROCESSING_CLOUD_FUNCTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VertexCustomConfig getDefaultInstance()
Returns
TypeDescription
VertexCustomConfig

getDescriptor()

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

newBuilder()

public static VertexCustomConfig.Builder newBuilder()
Returns
TypeDescription
VertexCustomConfig.Builder

newBuilder(VertexCustomConfig prototype)

public static VertexCustomConfig.Builder newBuilder(VertexCustomConfig prototype)
Parameter
NameDescription
prototypeVertexCustomConfig
Returns
TypeDescription
VertexCustomConfig.Builder

parseDelimitedFrom(InputStream input)

public static VertexCustomConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VertexCustomConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VertexCustomConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VertexCustomConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VertexCustomConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VertexCustomConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VertexCustomConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VertexCustomConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VertexCustomConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VertexCustomConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VertexCustomConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VertexCustomConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VertexCustomConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VertexCustomConfig> parser()
Returns
TypeDescription
Parser<VertexCustomConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

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.

getParserForType()

public Parser<VertexCustomConfig> getParserForType()
Returns
TypeDescription
Parser<VertexCustomConfig>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VertexCustomConfig.Builder newBuilderForType()
Returns
TypeDescription
VertexCustomConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VertexCustomConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VertexCustomConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VertexCustomConfig.Builder toBuilder()
Returns
TypeDescription
VertexCustomConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException