Class AppPlatformCloudFunctionRequest.Builder (0.2.0)

public static final class AppPlatformCloudFunctionRequest.Builder extends GeneratedMessageV3.Builder<AppPlatformCloudFunctionRequest.Builder> 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

Static Methods

getDescriptor()

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

Methods

addAllAnnotations(Iterable<? extends AppPlatformCloudFunctionRequest.StructedInputAnnotation> values)

public AppPlatformCloudFunctionRequest.Builder addAllAnnotations(Iterable<? extends AppPlatformCloudFunctionRequest.StructedInputAnnotation> values)

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

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

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

addAnnotations(AppPlatformCloudFunctionRequest.StructedInputAnnotation value)

public AppPlatformCloudFunctionRequest.Builder addAnnotations(AppPlatformCloudFunctionRequest.StructedInputAnnotation value)

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

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

Parameter
Name Description
value AppPlatformCloudFunctionRequest.StructedInputAnnotation
Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

addAnnotations(AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder builderForValue)

public AppPlatformCloudFunctionRequest.Builder addAnnotations(AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder
Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

addAnnotations(int index, AppPlatformCloudFunctionRequest.StructedInputAnnotation value)

public AppPlatformCloudFunctionRequest.Builder addAnnotations(int index, AppPlatformCloudFunctionRequest.StructedInputAnnotation value)

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

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

Parameters
Name Description
index int
value AppPlatformCloudFunctionRequest.StructedInputAnnotation
Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

addAnnotations(int index, AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder builderForValue)

public AppPlatformCloudFunctionRequest.Builder addAnnotations(int index, AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder
Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

addAnnotationsBuilder()

public AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder addAnnotationsBuilder()

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

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

Returns
Type Description
AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder

addAnnotationsBuilder(int index)

public AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder addAnnotationsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AppPlatformCloudFunctionRequest build()
Returns
Type Description
AppPlatformCloudFunctionRequest

buildPartial()

public AppPlatformCloudFunctionRequest buildPartial()
Returns
Type Description
AppPlatformCloudFunctionRequest

clear()

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

clearAnnotations()

public AppPlatformCloudFunctionRequest.Builder clearAnnotations()

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

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

Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

clearAppPlatformMetadata()

public AppPlatformCloudFunctionRequest.Builder clearAppPlatformMetadata()

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
AppPlatformCloudFunctionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnnotationsBuilder(int index)

public AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder getAnnotationsBuilder(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.Builder

getAnnotationsBuilderList()

public List<AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder> getAnnotationsBuilderList()

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

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

Returns
Type Description
List<Builder>

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.

getAppPlatformMetadataBuilder()

public AppPlatformMetadata.Builder getAppPlatformMetadataBuilder()

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.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAppPlatformMetadata(AppPlatformMetadata value)

public AppPlatformCloudFunctionRequest.Builder mergeAppPlatformMetadata(AppPlatformMetadata value)

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

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

Parameter
Name Description
value AppPlatformMetadata
Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

mergeFrom(AppPlatformCloudFunctionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAnnotations(int index)

public AppPlatformCloudFunctionRequest.Builder removeAnnotations(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.Builder

setAnnotations(int index, AppPlatformCloudFunctionRequest.StructedInputAnnotation value)

public AppPlatformCloudFunctionRequest.Builder setAnnotations(int index, AppPlatformCloudFunctionRequest.StructedInputAnnotation value)

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

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

Parameters
Name Description
index int
value AppPlatformCloudFunctionRequest.StructedInputAnnotation
Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

setAnnotations(int index, AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder builderForValue)

public AppPlatformCloudFunctionRequest.Builder setAnnotations(int index, AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue AppPlatformCloudFunctionRequest.StructedInputAnnotation.Builder
Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

setAppPlatformMetadata(AppPlatformMetadata value)

public AppPlatformCloudFunctionRequest.Builder setAppPlatformMetadata(AppPlatformMetadata value)

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

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

Parameter
Name Description
value AppPlatformMetadata
Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

setAppPlatformMetadata(AppPlatformMetadata.Builder builderForValue)

public AppPlatformCloudFunctionRequest.Builder setAppPlatformMetadata(AppPlatformMetadata.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue AppPlatformMetadata.Builder
Returns
Type Description
AppPlatformCloudFunctionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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