Class VertexCustomConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.VertexCustomConfig
All Implemented Interfaces:
VertexCustomConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class VertexCustomConfig extends com.google.protobuf.GeneratedMessage implements VertexCustomConfigOrBuilder
 Message describing VertexCustomConfig.
 
Protobuf type google.cloud.visionai.v1.VertexCustomConfig
See Also:
  • Field Details

    • MAX_PREDICTION_FPS_FIELD_NUMBER

      public static final int MAX_PREDICTION_FPS_FIELD_NUMBER
      See Also:
    • DEDICATED_RESOURCES_FIELD_NUMBER

      public static final int DEDICATED_RESOURCES_FIELD_NUMBER
      See Also:
    • POST_PROCESSING_CLOUD_FUNCTION_FIELD_NUMBER

      public static final int POST_PROCESSING_CLOUD_FUNCTION_FIELD_NUMBER
      See Also:
    • ATTACH_APPLICATION_METADATA_FIELD_NUMBER

      public static final int ATTACH_APPLICATION_METADATA_FIELD_NUMBER
      See Also:
    • DYNAMIC_CONFIG_INPUT_TOPIC_FIELD_NUMBER

      public static final int DYNAMIC_CONFIG_INPUT_TOPIC_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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:
      getMaxPredictionFps in interface VertexCustomConfigOrBuilder
      Returns:
      The maxPredictionFps.
    • 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:
      hasDedicatedResources in interface VertexCustomConfigOrBuilder
      Returns:
      Whether the dedicatedResources field is set.
    • getDedicatedResources

      public DedicatedResources 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:
      getDedicatedResources in interface VertexCustomConfigOrBuilder
      Returns:
      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.cloud.visionai.v1.DedicatedResources dedicated_resources = 2;
      Specified by:
      getDedicatedResourcesOrBuilder in interface VertexCustomConfigOrBuilder
    • 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;
      Specified by:
      getPostProcessingCloudFunction in interface VertexCustomConfigOrBuilder
      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:
      getPostProcessingCloudFunctionBytes in interface VertexCustomConfigOrBuilder
      Returns:
      The bytes for postProcessingCloudFunction.
    • 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:
      getAttachApplicationMetadata in interface VertexCustomConfigOrBuilder
      Returns:
      The attachApplicationMetadata.
    • 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:
      hasDynamicConfigInputTopic in interface VertexCustomConfigOrBuilder
      Returns:
      Whether the dynamicConfigInputTopic field is set.
    • getDynamicConfigInputTopic

      public String 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:
      getDynamicConfigInputTopic in interface VertexCustomConfigOrBuilder
      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:
      getDynamicConfigInputTopicBytes in interface VertexCustomConfigOrBuilder
      Returns:
      The bytes for dynamicConfigInputTopic.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static VertexCustomConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VertexCustomConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VertexCustomConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VertexCustomConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VertexCustomConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VertexCustomConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VertexCustomConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VertexCustomConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VertexCustomConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VertexCustomConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VertexCustomConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VertexCustomConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public VertexCustomConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static VertexCustomConfig.Builder newBuilder()
    • newBuilder

      public static VertexCustomConfig.Builder newBuilder(VertexCustomConfig prototype)
    • toBuilder

      public VertexCustomConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected VertexCustomConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static VertexCustomConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<VertexCustomConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<VertexCustomConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public VertexCustomConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder