Class CallFunctionResponse.Builder (2.31.0)

publicstaticfinalclass CallFunctionResponse.BuilderextendsGeneratedMessageV3.Builder<CallFunctionResponse.Builder>implementsCallFunctionResponseOrBuilder

Response of CallFunction method.

Protobuf type google.cloud.functions.v1.CallFunctionResponse

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCallFunctionResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CallFunctionResponse.Builder
Overrides

build()

publicCallFunctionResponsebuild()
Returns
Type Description
CallFunctionResponse

buildPartial()

publicCallFunctionResponsebuildPartial()
Returns
Type Description
CallFunctionResponse

clear()

publicCallFunctionResponse.Builderclear()
Returns
Type Description
CallFunctionResponse.Builder
Overrides

clearError()

publicCallFunctionResponse.BuilderclearError()

Either system or user-function generated error. Set if execution was not successful.

string error = 3;

Returns
Type Description
CallFunctionResponse.Builder

This builder for chaining.

clearExecutionId()

publicCallFunctionResponse.BuilderclearExecutionId()

Execution id of function invocation.

string execution_id = 1;

Returns
Type Description
CallFunctionResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicCallFunctionResponse.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CallFunctionResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicCallFunctionResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CallFunctionResponse.Builder
Overrides

clearResult()

publicCallFunctionResponse.BuilderclearResult()

Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context.

string result = 2;

Returns
Type Description
CallFunctionResponse.Builder

This builder for chaining.

clone()

publicCallFunctionResponse.Builderclone()
Returns
Type Description
CallFunctionResponse.Builder
Overrides

getDefaultInstanceForType()

publicCallFunctionResponsegetDefaultInstanceForType()
Returns
Type Description
CallFunctionResponse

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getError()

publicStringgetError()

Either system or user-function generated error. Set if execution was not successful.

string error = 3;

Returns
Type Description
String

The error.

getErrorBytes()

publicByteStringgetErrorBytes()

Either system or user-function generated error. Set if execution was not successful.

string error = 3;

Returns
Type Description
ByteString

The bytes for error.

getExecutionId()

publicStringgetExecutionId()

Execution id of function invocation.

string execution_id = 1;

Returns
Type Description
String

The executionId.

getExecutionIdBytes()

publicByteStringgetExecutionIdBytes()

Execution id of function invocation.

string execution_id = 1;

Returns
Type Description
ByteString

The bytes for executionId.

getResult()

publicStringgetResult()

Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context.

string result = 2;

Returns
Type Description
String

The result.

getResultBytes()

publicByteStringgetResultBytes()

Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context.

string result = 2;

Returns
Type Description
ByteString

The bytes for result.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CallFunctionResponse other)

publicCallFunctionResponse.BuildermergeFrom(CallFunctionResponseother)
Parameter
Name Description
other CallFunctionResponse
Returns
Type Description
CallFunctionResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCallFunctionResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CallFunctionResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCallFunctionResponse.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CallFunctionResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCallFunctionResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CallFunctionResponse.Builder
Overrides

setError(String value)

publicCallFunctionResponse.BuildersetError(Stringvalue)

Either system or user-function generated error. Set if execution was not successful.

string error = 3;

Parameter
Name Description
value String

The error to set.

Returns
Type Description
CallFunctionResponse.Builder

This builder for chaining.

setErrorBytes(ByteString value)

publicCallFunctionResponse.BuildersetErrorBytes(ByteStringvalue)

Either system or user-function generated error. Set if execution was not successful.

string error = 3;

Parameter
Name Description
value ByteString

The bytes for error to set.

Returns
Type Description
CallFunctionResponse.Builder

This builder for chaining.

setExecutionId(String value)

publicCallFunctionResponse.BuildersetExecutionId(Stringvalue)

Execution id of function invocation.

string execution_id = 1;

Parameter
Name Description
value String

The executionId to set.

Returns
Type Description
CallFunctionResponse.Builder

This builder for chaining.

setExecutionIdBytes(ByteString value)

publicCallFunctionResponse.BuildersetExecutionIdBytes(ByteStringvalue)

Execution id of function invocation.

string execution_id = 1;

Parameter
Name Description
value ByteString

The bytes for executionId to set.

Returns
Type Description
CallFunctionResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicCallFunctionResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CallFunctionResponse.Builder
Overrides

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

publicCallFunctionResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CallFunctionResponse.Builder
Overrides

setResult(String value)

publicCallFunctionResponse.BuildersetResult(Stringvalue)

Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context.

string result = 2;

Parameter
Name Description
value String

The result to set.

Returns
Type Description
CallFunctionResponse.Builder

This builder for chaining.

setResultBytes(ByteString value)

publicCallFunctionResponse.BuildersetResultBytes(ByteStringvalue)

Result populated for successful execution of synchronous function. Will not be populated if function does not return a result through context.

string result = 2;

Parameter
Name Description
value ByteString

The bytes for result to set.

Returns
Type Description
CallFunctionResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCallFunctionResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CallFunctionResponse.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.