Class AppPlatformCloudFunctionRequest (0.8.0)

public final class AppPlatformCloudFunctionRequest extends GeneratedMessageV3 implements AppPlatformCloudFunctionRequestOrBuilder

For any cloud function based customer processing logic, customer's cloud function is expected to receive AppPlatformCloudFunctionRequest as request and send back AppPlatformCloudFunctionResponse as response. Message of request from AppPlatform to Cloud Function.

Protobuf type google.cloud.visionai.v1.AppPlatformCloudFunctionRequest

Inheritance

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

Static Fields

ANNOTATIONS_FIELD_NUMBER

public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

APP_PLATFORM_METADATA_FIELD_NUMBER

public static final int APP_PLATFORM_METADATA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AppPlatformCloudFunctionRequest getDefaultInstance()
Returns
Type Description
AppPlatformCloudFunctionRequest

getDescriptor()

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

newBuilder()

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

newBuilder(AppPlatformCloudFunctionRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAnnotations(int index)

public AppPlatformCloudFunctionRequest.StructedInputAnnotation getAnnotations(int index)

The actual annotations to be processed by the customized Cloud Function.

repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionRequest.StructedInputAnnotation annotations = 2;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformCloudFunctionRequest.StructedInputAnnotation

getAnnotationsCount()

public int getAnnotationsCount()

The actual annotations to be processed by the customized Cloud Function.

repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionRequest.StructedInputAnnotation annotations = 2;

Returns
Type Description
int

getAnnotationsList()

public List<AppPlatformCloudFunctionRequest.StructedInputAnnotation> getAnnotationsList()

The actual annotations to be processed by the customized Cloud Function.

repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionRequest.StructedInputAnnotation annotations = 2;

Returns
Type Description
List<StructedInputAnnotation>

getAnnotationsOrBuilder(int index)

public AppPlatformCloudFunctionRequest.StructedInputAnnotationOrBuilder getAnnotationsOrBuilder(int index)

The actual annotations to be processed by the customized Cloud Function.

repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionRequest.StructedInputAnnotation annotations = 2;

Parameter
Name Description
index int
Returns
Type Description
AppPlatformCloudFunctionRequest.StructedInputAnnotationOrBuilder

getAnnotationsOrBuilderList()

public List<? extends AppPlatformCloudFunctionRequest.StructedInputAnnotationOrBuilder> getAnnotationsOrBuilderList()

The actual annotations to be processed by the customized Cloud Function.

repeated .google.cloud.visionai.v1.AppPlatformCloudFunctionRequest.StructedInputAnnotation annotations = 2;

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

getAppPlatformMetadata()

public AppPlatformMetadata getAppPlatformMetadata()

The metadata of the AppPlatform for customer to identify the source of the payload.

.google.cloud.visionai.v1.AppPlatformMetadata app_platform_metadata = 1;

Returns
Type Description
AppPlatformMetadata

The appPlatformMetadata.

getAppPlatformMetadataOrBuilder()

public AppPlatformMetadataOrBuilder getAppPlatformMetadataOrBuilder()

The metadata of the AppPlatform for customer to identify the source of the payload.

.google.cloud.visionai.v1.AppPlatformMetadata app_platform_metadata = 1;

Returns
Type Description
AppPlatformMetadataOrBuilder

getDefaultInstanceForType()

public AppPlatformCloudFunctionRequest getDefaultInstanceForType()
Returns
Type Description
AppPlatformCloudFunctionRequest

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAppPlatformMetadata()

public boolean hasAppPlatformMetadata()

The metadata of the AppPlatform for customer to identify the source of the payload.

.google.cloud.visionai.v1.AppPlatformMetadata app_platform_metadata = 1;

Returns
Type Description
boolean

Whether the appPlatformMetadata field is set.

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 AppPlatformCloudFunctionRequest.Builder newBuilderForType()
Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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