Package com.google.cloud.visionai.v1
Class VertexCustomConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VertexCustomConfig.Builder>
com.google.cloud.visionai.v1.VertexCustomConfig.Builder
- All Implemented Interfaces:
VertexCustomConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VertexCustomConfig
public static final class VertexCustomConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VertexCustomConfig.Builder>
implements VertexCustomConfigOrBuilder
Message describing VertexCustomConfig.Protobuf type
google.cloud.visionai.v1.VertexCustomConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()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; }A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.Optional.The max prediction frame per second.If not empty, the prediction result will be sent to the specified cloud function for post processingbooleanIf 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; }A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.intThe max prediction frame per second.If not empty, the prediction result will be sent to the specified cloud function for post processingcom.google.protobuf.ByteStringIf not empty, the prediction result will be sent to the specified cloud function for post processingbooleanA description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanA description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.mergeFrom(VertexCustomConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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; }A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.setDedicatedResources(DedicatedResources.Builder builderForValue) A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.setDynamicConfigInputTopic(String value) Optional.setDynamicConfigInputTopicBytes(com.google.protobuf.ByteString value) Optional.setMaxPredictionFps(int value) The max prediction frame per second.If not empty, the prediction result will be sent to the specified cloud function for post processingsetPostProcessingCloudFunctionBytes(com.google.protobuf.ByteString value) If not empty, the prediction result will be sent to the specified cloud function for post processingMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VertexCustomConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VertexCustomConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VertexCustomConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VertexCustomConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VertexCustomConfig.Builder>
-
mergeFrom
public VertexCustomConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VertexCustomConfig.Builder>- Throws:
IOException
-
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;- Specified by:
getMaxPredictionFpsin interfaceVertexCustomConfigOrBuilder- Returns:
- The maxPredictionFps.
-
setMaxPredictionFps
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;- Parameters:
value- The maxPredictionFps to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasDedicatedResources
public boolean hasDedicatedResources()A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
.google.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;- Specified by:
hasDedicatedResourcesin interfaceVertexCustomConfigOrBuilder- Returns:
- Whether the dedicatedResources field is set.
-
getDedicatedResources
A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
.google.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;- Specified by:
getDedicatedResourcesin interfaceVertexCustomConfigOrBuilder- Returns:
- The dedicatedResources.
-
setDedicatedResources
A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
.google.cloud.visionai.v1.DedicatedResources dedicated_resources = 2; -
setDedicatedResources
A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
.google.cloud.visionai.v1.DedicatedResources dedicated_resources = 2; -
mergeDedicatedResources
A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
.google.cloud.visionai.v1.DedicatedResources dedicated_resources = 2; -
clearDedicatedResources
A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
.google.cloud.visionai.v1.DedicatedResources dedicated_resources = 2; -
getDedicatedResourcesBuilder
A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
.google.cloud.visionai.v1.DedicatedResources dedicated_resources = 2; -
getDedicatedResourcesOrBuilder
A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
.google.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;- Specified by:
getDedicatedResourcesOrBuilderin interfaceVertexCustomConfigOrBuilder
-
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;- Specified by:
getPostProcessingCloudFunctionin interfaceVertexCustomConfigOrBuilder- Returns:
- The postProcessingCloudFunction.
-
getPostProcessingCloudFunctionBytes
public com.google.protobuf.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;- Specified by:
getPostProcessingCloudFunctionBytesin interfaceVertexCustomConfigOrBuilder- Returns:
- The bytes for postProcessingCloudFunction.
-
setPostProcessingCloudFunction
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;- Parameters:
value- The postProcessingCloudFunction to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPostProcessingCloudFunctionBytes
public VertexCustomConfig.Builder setPostProcessingCloudFunctionBytes(com.google.protobuf.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;- Parameters:
value- The bytes for postProcessingCloudFunction to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getAttachApplicationMetadatain interfaceVertexCustomConfigOrBuilder- Returns:
- The attachApplicationMetadata.
-
setAttachApplicationMetadata
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;- Parameters:
value- The attachApplicationMetadata to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasDynamicConfigInputTopic
public boolean hasDynamicConfigInputTopic()Optional. By setting the configuration_input_topic, processor will subscribe to given topic, only pub/sub topic is supported now. Example channel: //pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic message schema should be: message Message { // The ID of the stream that associates with the application instance. string stream_id = 1; // The target fps. By default, the custom processor will *not* send any data to the Vertex Prediction container. Note that once the dynamic_config_input_topic is set, max_prediction_fps will not work and be preceded by the fps set inside the topic. int32 fps = 2; }optional string dynamic_config_input_topic = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDynamicConfigInputTopicin interfaceVertexCustomConfigOrBuilder- Returns:
- Whether the dynamicConfigInputTopic field is set.
-
getDynamicConfigInputTopic
Optional. By setting the configuration_input_topic, processor will subscribe to given topic, only pub/sub topic is supported now. Example channel: //pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic message schema should be: message Message { // The ID of the stream that associates with the application instance. string stream_id = 1; // The target fps. By default, the custom processor will *not* send any data to the Vertex Prediction container. Note that once the dynamic_config_input_topic is set, max_prediction_fps will not work and be preceded by the fps set inside the topic. int32 fps = 2; }optional string dynamic_config_input_topic = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDynamicConfigInputTopicin interfaceVertexCustomConfigOrBuilder- Returns:
- The dynamicConfigInputTopic.
-
getDynamicConfigInputTopicBytes
public com.google.protobuf.ByteString getDynamicConfigInputTopicBytes()Optional. By setting the configuration_input_topic, processor will subscribe to given topic, only pub/sub topic is supported now. Example channel: //pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic message schema should be: message Message { // The ID of the stream that associates with the application instance. string stream_id = 1; // The target fps. By default, the custom processor will *not* send any data to the Vertex Prediction container. Note that once the dynamic_config_input_topic is set, max_prediction_fps will not work and be preceded by the fps set inside the topic. int32 fps = 2; }optional string dynamic_config_input_topic = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDynamicConfigInputTopicBytesin interfaceVertexCustomConfigOrBuilder- Returns:
- The bytes for dynamicConfigInputTopic.
-
setDynamicConfigInputTopic
Optional. By setting the configuration_input_topic, processor will subscribe to given topic, only pub/sub topic is supported now. Example channel: //pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic message schema should be: message Message { // The ID of the stream that associates with the application instance. string stream_id = 1; // The target fps. By default, the custom processor will *not* send any data to the Vertex Prediction container. Note that once the dynamic_config_input_topic is set, max_prediction_fps will not work and be preceded by the fps set inside the topic. int32 fps = 2; }optional string dynamic_config_input_topic = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The dynamicConfigInputTopic to set.- Returns:
- This builder for chaining.
-
clearDynamicConfigInputTopic
Optional. By setting the configuration_input_topic, processor will subscribe to given topic, only pub/sub topic is supported now. Example channel: //pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic message schema should be: message Message { // The ID of the stream that associates with the application instance. string stream_id = 1; // The target fps. By default, the custom processor will *not* send any data to the Vertex Prediction container. Note that once the dynamic_config_input_topic is set, max_prediction_fps will not work and be preceded by the fps set inside the topic. int32 fps = 2; }optional string dynamic_config_input_topic = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDynamicConfigInputTopicBytes
public VertexCustomConfig.Builder setDynamicConfigInputTopicBytes(com.google.protobuf.ByteString value) Optional. By setting the configuration_input_topic, processor will subscribe to given topic, only pub/sub topic is supported now. Example channel: //pubsub.googleapis.com/projects/visionai-testing-stable/topics/test-topic message schema should be: message Message { // The ID of the stream that associates with the application instance. string stream_id = 1; // The target fps. By default, the custom processor will *not* send any data to the Vertex Prediction container. Note that once the dynamic_config_input_topic is set, max_prediction_fps will not work and be preceded by the fps set inside the topic. int32 fps = 2; }optional string dynamic_config_input_topic = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for dynamicConfigInputTopic to set.- Returns:
- This builder for chaining.
-