Class AppPlatformCloudFunctionResponse.Builder (0.12.0)

public static final class AppPlatformCloudFunctionResponse.Builder extends GeneratedMessageV3.Builder<AppPlatformCloudFunctionResponse.Builder> implements AppPlatformCloudFunctionResponseOrBuilder

Message of the response from customer's Cloud Function to AppPlatform.

Protobuf type google.cloud.visionai.v1.AppPlatformCloudFunctionResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAnnotations(Iterable<? extends AppPlatformCloudFunctionResponse.StructedOutputAnnotation> values)

public AppPlatformCloudFunctionResponse.Builder addAllAnnotations(Iterable<? extends AppPlatformCloudFunctionResponse.StructedOutputAnnotation> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation>
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

addAllEvents(Iterable<? extends AppPlatformEventBody> values)

public AppPlatformCloudFunctionResponse.Builder addAllEvents(Iterable<? extends AppPlatformEventBody> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.AppPlatformEventBody>
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

addAnnotations(AppPlatformCloudFunctionResponse.StructedOutputAnnotation value)

public AppPlatformCloudFunctionResponse.Builder addAnnotations(AppPlatformCloudFunctionResponse.StructedOutputAnnotation value)

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;

Parameter
Name Description
value AppPlatformCloudFunctionResponse.StructedOutputAnnotation
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

addAnnotations(AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder builderForValue)

public AppPlatformCloudFunctionResponse.Builder addAnnotations(AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder builderForValue)

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;

Parameter
Name Description
builderForValue AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

addAnnotations(int index, AppPlatformCloudFunctionResponse.StructedOutputAnnotation value)

public AppPlatformCloudFunctionResponse.Builder addAnnotations(int index, AppPlatformCloudFunctionResponse.StructedOutputAnnotation value)

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;

Parameters
Name Description
index int
value AppPlatformCloudFunctionResponse.StructedOutputAnnotation
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

addAnnotations(int index, AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder builderForValue)

public AppPlatformCloudFunctionResponse.Builder addAnnotations(int index, AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

addAnnotationsBuilder()

public AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder 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;

Returns
Type Description
AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder

addAnnotationsBuilder(int index)

public AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder addAnnotationsBuilder(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;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder

addEvents(AppPlatformEventBody value)

public AppPlatformCloudFunctionResponse.Builder addEvents(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;

Parameter
Name Description
value AppPlatformEventBody
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

addEvents(AppPlatformEventBody.Builder builderForValue)

public AppPlatformCloudFunctionResponse.Builder addEvents(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;

Parameter
Name Description
builderForValue AppPlatformEventBody.Builder
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

addEvents(int index, AppPlatformEventBody value)

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;

Parameters
Name Description
index int
value AppPlatformEventBody
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

addEvents(int index, AppPlatformEventBody.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue AppPlatformEventBody.Builder
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

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;

Returns
Type Description
AppPlatformEventBody.Builder

addEventsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformEventBody.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AppPlatformCloudFunctionResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides

build()

public AppPlatformCloudFunctionResponse build()
Returns
Type Description
AppPlatformCloudFunctionResponse

buildPartial()

public AppPlatformCloudFunctionResponse buildPartial()
Returns
Type Description
AppPlatformCloudFunctionResponse

clear()

public AppPlatformCloudFunctionResponse.Builder clear()
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides

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
Type Description
AppPlatformCloudFunctionResponse.Builder

This builder for chaining.

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;

Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

clearEvents()

public AppPlatformCloudFunctionResponse.Builder 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;

Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public AppPlatformCloudFunctionResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AppPlatformCloudFunctionResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides

clone()

public AppPlatformCloudFunctionResponse.Builder clone()
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides

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;

Returns
Type Description
boolean

The annotationPassthrough.

getAnnotations(int index)

public AppPlatformCloudFunctionResponse.StructedOutputAnnotation getAnnotations(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;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformCloudFunctionResponse.StructedOutputAnnotation

getAnnotationsBuilder(int index)

public AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder getAnnotationsBuilder(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;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder

getAnnotationsBuilderList()

public List<AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder> 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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
int

getAnnotationsList()

public List<AppPlatformCloudFunctionResponse.StructedOutputAnnotation> 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;

Returns
Type Description
List<StructedOutputAnnotation>

getAnnotationsOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformCloudFunctionResponse.StructedOutputAnnotationOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotationOrBuilder>

getDefaultInstanceForType()

public AppPlatformCloudFunctionResponse getDefaultInstanceForType()
Returns
Type Description
AppPlatformCloudFunctionResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEvents(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformEventBody

getEventsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformEventBody.Builder

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
int

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;

Returns
Type Description
List<AppPlatformEventBody>

getEventsOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformEventBodyOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.AppPlatformEventBodyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AppPlatformCloudFunctionResponse other)

public AppPlatformCloudFunctionResponse.Builder mergeFrom(AppPlatformCloudFunctionResponse other)
Parameter
Name Description
other AppPlatformCloudFunctionResponse
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AppPlatformCloudFunctionResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AppPlatformCloudFunctionResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AppPlatformCloudFunctionResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides

removeAnnotations(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

removeEvents(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

setAnnotationPassthrough(boolean value)

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;

Parameter
Name Description
value boolean

The annotationPassthrough to set.

Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

This builder for chaining.

setAnnotations(int index, AppPlatformCloudFunctionResponse.StructedOutputAnnotation value)

public AppPlatformCloudFunctionResponse.Builder setAnnotations(int index, AppPlatformCloudFunctionResponse.StructedOutputAnnotation value)

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;

Parameters
Name Description
index int
value AppPlatformCloudFunctionResponse.StructedOutputAnnotation
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

setAnnotations(int index, AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder builderForValue)

public AppPlatformCloudFunctionResponse.Builder setAnnotations(int index, AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue AppPlatformCloudFunctionResponse.StructedOutputAnnotation.Builder
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

setEvents(int index, AppPlatformEventBody value)

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;

Parameters
Name Description
index int
value AppPlatformEventBody
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

setEvents(int index, AppPlatformEventBody.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue AppPlatformEventBody.Builder
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AppPlatformCloudFunctionResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AppPlatformCloudFunctionResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AppPlatformCloudFunctionResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides