Class AppPlatformCloudFunctionResponse (0.11.0)

public final class AppPlatformCloudFunctionResponse extends GeneratedMessageV3 implements AppPlatformCloudFunctionResponseOrBuilder

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

Protobuf type google.cloud.visionai.v1.AppPlatformCloudFunctionResponse

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AppPlatformCloudFunctionResponse

Static Fields

ANNOTATIONS_FIELD_NUMBER

public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

ANNOTATION_PASSTHROUGH_FIELD_NUMBER

public static final int ANNOTATION_PASSTHROUGH_FIELD_NUMBER
Field Value
Type Description
int

EVENTS_FIELD_NUMBER

public static final int EVENTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AppPlatformCloudFunctionResponse getDefaultInstance()
Returns
Type Description
AppPlatformCloudFunctionResponse

getDescriptor()

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

newBuilder()

public static AppPlatformCloudFunctionResponse.Builder newBuilder()
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

newBuilder(AppPlatformCloudFunctionResponse prototype)

public static AppPlatformCloudFunctionResponse.Builder newBuilder(AppPlatformCloudFunctionResponse prototype)
Parameter
Name Description
prototype AppPlatformCloudFunctionResponse
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

parseDelimitedFrom(InputStream input)

public static AppPlatformCloudFunctionResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AppPlatformCloudFunctionResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AppPlatformCloudFunctionResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AppPlatformCloudFunctionResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AppPlatformCloudFunctionResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AppPlatformCloudFunctionResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AppPlatformCloudFunctionResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AppPlatformCloudFunctionResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AppPlatformCloudFunctionResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AppPlatformCloudFunctionResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AppPlatformCloudFunctionResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AppPlatformCloudFunctionResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AppPlatformCloudFunctionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AppPlatformCloudFunctionResponse> parser()
Returns
Type Description
Parser<AppPlatformCloudFunctionResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

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

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>

getParserForType()

public Parser<AppPlatformCloudFunctionResponse> getParserForType()
Returns
Type Description
Parser<AppPlatformCloudFunctionResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AppPlatformCloudFunctionResponse.Builder newBuilderForType()
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AppPlatformCloudFunctionResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AppPlatformCloudFunctionResponse.Builder toBuilder()
Returns
Type Description
AppPlatformCloudFunctionResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException