Struct google_api_proto::google::cloud::visionai::v1::VertexCustomConfig
source · pub struct VertexCustomConfig {
pub max_prediction_fps: i32,
pub dedicated_resources: Option<DedicatedResources>,
pub post_processing_cloud_function: String,
pub attach_application_metadata: bool,
pub dynamic_config_input_topic: Option<String>,
}
Expand description
Message describing VertexCustomConfig.
Fields§
§max_prediction_fps: i32
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.
dedicated_resources: Option<DedicatedResources>
A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.
post_processing_cloud_function: String
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.
attach_application_metadata: bool
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; }
dynamic_config_input_topic: Option<String>
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; }
Implementations§
source§impl VertexCustomConfig
impl VertexCustomConfig
sourcepub fn dynamic_config_input_topic(&self) -> &str
pub fn dynamic_config_input_topic(&self) -> &str
Returns the value of dynamic_config_input_topic
, or the default value if dynamic_config_input_topic
is unset.
Trait Implementations§
source§impl Clone for VertexCustomConfig
impl Clone for VertexCustomConfig
source§fn clone(&self) -> VertexCustomConfig
fn clone(&self) -> VertexCustomConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VertexCustomConfig
impl Debug for VertexCustomConfig
source§impl Default for VertexCustomConfig
impl Default for VertexCustomConfig
source§impl Message for VertexCustomConfig
impl Message for VertexCustomConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for VertexCustomConfig
impl PartialEq for VertexCustomConfig
source§fn eq(&self, other: &VertexCustomConfig) -> bool
fn eq(&self, other: &VertexCustomConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VertexCustomConfig
Auto Trait Implementations§
impl Freeze for VertexCustomConfig
impl RefUnwindSafe for VertexCustomConfig
impl Send for VertexCustomConfig
impl Sync for VertexCustomConfig
impl Unpin for VertexCustomConfig
impl UnwindSafe for VertexCustomConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request