Class AppPlatformCloudFunctionResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AppPlatformCloudFunctionResponse.Builder>
com.google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.Builder
All Implemented Interfaces:
AppPlatformCloudFunctionResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AppPlatformCloudFunctionResponse

public static final class AppPlatformCloudFunctionResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<AppPlatformCloudFunctionResponse.Builder> implements AppPlatformCloudFunctionResponseOrBuilder
 Message of the response from customer's Cloud Function to AppPlatform.
 
Protobuf type google.cloud.visionai.v1.AppPlatformCloudFunctionResponse
  • 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.Builder<AppPlatformCloudFunctionResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AppPlatformCloudFunctionResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AppPlatformCloudFunctionResponse.Builder>
    • getDefaultInstanceForType

      public AppPlatformCloudFunctionResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AppPlatformCloudFunctionResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AppPlatformCloudFunctionResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppPlatformCloudFunctionResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AppPlatformCloudFunctionResponse.Builder>
    • mergeFrom

      public AppPlatformCloudFunctionResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppPlatformCloudFunctionResponse.Builder>
      Throws:
      IOException
    • getAnnotationsList

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
      Specified by:
      getAnnotationsList in interface AppPlatformCloudFunctionResponseOrBuilder
    • getAnnotationsCount

      public int getAnnotationsCount()
       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
      Specified by:
      getAnnotationsCount in interface AppPlatformCloudFunctionResponseOrBuilder
    • getAnnotations

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
      Specified by:
      getAnnotations in interface AppPlatformCloudFunctionResponseOrBuilder
    • setAnnotations

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • setAnnotations

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • addAnnotations

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • addAnnotations

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • addAnnotations

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • addAnnotations

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • addAllAnnotations

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • clearAnnotations

      public AppPlatformCloudFunctionResponse.Builder clearAnnotations()
       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • removeAnnotations

      public AppPlatformCloudFunctionResponse.Builder removeAnnotations(int index)
       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • getAnnotationsBuilder

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • getAnnotationsOrBuilder

      public AppPlatformCloudFunctionResponse.StructedOutputAnnotationOrBuilder getAnnotationsOrBuilder(int index)
       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
      Specified by:
      getAnnotationsOrBuilder in interface AppPlatformCloudFunctionResponseOrBuilder
    • getAnnotationsOrBuilderList

      public List<? extends AppPlatformCloudFunctionResponse.StructedOutputAnnotationOrBuilder> getAnnotationsOrBuilderList()
       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
      Specified by:
      getAnnotationsOrBuilderList in interface AppPlatformCloudFunctionResponseOrBuilder
    • addAnnotationsBuilder

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • addAnnotationsBuilder

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • getAnnotationsBuilderList

       The modified annotations that is returned back to AppPlatform.
       If the annotations fields are empty, then those annotations will be dropped
       by AppPlatform.
       
      repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation annotations = 2;
    • getAnnotationPassthrough

      public boolean getAnnotationPassthrough()
       If set to true, AppPlatform will use original annotations instead of
       dropping them, even if it is empty in the annotations filed.
       
      bool annotation_passthrough = 3;
      Specified by:
      getAnnotationPassthrough in interface AppPlatformCloudFunctionResponseOrBuilder
      Returns:
      The annotationPassthrough.
    • setAnnotationPassthrough

      public AppPlatformCloudFunctionResponse.Builder setAnnotationPassthrough(boolean value)
       If set to true, AppPlatform will use original annotations instead of
       dropping them, even if it is empty in the annotations filed.
       
      bool annotation_passthrough = 3;
      Parameters:
      value - The annotationPassthrough to set.
      Returns:
      This builder for chaining.
    • clearAnnotationPassthrough

      public AppPlatformCloudFunctionResponse.Builder clearAnnotationPassthrough()
       If set to true, AppPlatform will use original annotations instead of
       dropping them, even if it is empty in the annotations filed.
       
      bool annotation_passthrough = 3;
      Returns:
      This builder for chaining.
    • getEventsList

      public List<AppPlatformEventBody> getEventsList()
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
      Specified by:
      getEventsList in interface AppPlatformCloudFunctionResponseOrBuilder
    • getEventsCount

      public int getEventsCount()
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
      Specified by:
      getEventsCount in interface AppPlatformCloudFunctionResponseOrBuilder
    • getEvents

      public AppPlatformEventBody getEvents(int index)
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
      Specified by:
      getEvents in interface AppPlatformCloudFunctionResponseOrBuilder
    • setEvents

      public AppPlatformCloudFunctionResponse.Builder setEvents(int index, AppPlatformEventBody value)
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • setEvents

      public AppPlatformCloudFunctionResponse.Builder setEvents(int index, AppPlatformEventBody.Builder builderForValue)
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • addEvents

       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • addEvents

      public AppPlatformCloudFunctionResponse.Builder addEvents(int index, AppPlatformEventBody value)
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • addEvents

       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • addEvents

      public AppPlatformCloudFunctionResponse.Builder addEvents(int index, AppPlatformEventBody.Builder builderForValue)
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • addAllEvents

       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • clearEvents

       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • removeEvents

      public AppPlatformCloudFunctionResponse.Builder removeEvents(int index)
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • getEventsBuilder

      public AppPlatformEventBody.Builder getEventsBuilder(int index)
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • getEventsOrBuilder

      public AppPlatformEventBodyOrBuilder getEventsOrBuilder(int index)
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
      Specified by:
      getEventsOrBuilder in interface AppPlatformCloudFunctionResponseOrBuilder
    • getEventsOrBuilderList

      public List<? extends AppPlatformEventBodyOrBuilder> getEventsOrBuilderList()
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
      Specified by:
      getEventsOrBuilderList in interface AppPlatformCloudFunctionResponseOrBuilder
    • addEventsBuilder

      public AppPlatformEventBody.Builder addEventsBuilder()
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • addEventsBuilder

      public AppPlatformEventBody.Builder addEventsBuilder(int index)
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;
    • getEventsBuilderList

      public List<AppPlatformEventBody.Builder> getEventsBuilderList()
       The event notifications that is returned back to AppPlatform. Typically it
       will then be configured to be consumed/forwared to a operator that handles
       events, such as Pub/Sub operator.
       
      repeated .google.cloud.visionai.v1.AppPlatformEventBody events = 4;