Class CallFunctionResponse (2.24.0)

public final class CallFunctionResponse extends GeneratedMessageV3 implements CallFunctionResponseOrBuilder

Response of CallFunction method.

Protobuf type google.cloud.functions.v1.CallFunctionResponse

Static Fields

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

EXECUTION_ID_FIELD_NUMBER

public static final int EXECUTION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

RESULT_FIELD_NUMBER

public static final int RESULT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CallFunctionResponse getDefaultInstance()
Returns
TypeDescription
CallFunctionResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CallFunctionResponse.Builder newBuilder()
Returns
TypeDescription
CallFunctionResponse.Builder

newBuilder(CallFunctionResponse prototype)

public static CallFunctionResponse.Builder newBuilder(CallFunctionResponse prototype)
Parameter
NameDescription
prototypeCallFunctionResponse
Returns
TypeDescription
CallFunctionResponse.Builder

parseDelimitedFrom(InputStream input)

public static CallFunctionResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CallFunctionResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CallFunctionResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CallFunctionResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CallFunctionResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CallFunctionResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CallFunctionResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CallFunctionResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CallFunctionResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CallFunctionResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CallFunctionResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CallFunctionResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CallFunctionResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CallFunctionResponse> parser()
Returns
TypeDescription
Parser<CallFunctionResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CallFunctionResponse getDefaultInstanceForType()
Returns
TypeDescription
CallFunctionResponse

getError()

public String getError()

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

string error = 3;

Returns
TypeDescription
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

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

string error = 3;

Returns
TypeDescription
ByteString

The bytes for error.

getExecutionId()

public String getExecutionId()

Execution id of function invocation.

string execution_id = 1;

Returns
TypeDescription
String

The executionId.

getExecutionIdBytes()

public ByteString getExecutionIdBytes()

Execution id of function invocation.

string execution_id = 1;

Returns
TypeDescription
ByteString

The bytes for executionId.

getParserForType()

public Parser<CallFunctionResponse> getParserForType()
Returns
TypeDescription
Parser<CallFunctionResponse>
Overrides

getResult()

public String getResult()

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
TypeDescription
String

The result.

getResultBytes()

public ByteString getResultBytes()

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
TypeDescription
ByteString

The bytes for result.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CallFunctionResponse.Builder newBuilderForType()
Returns
TypeDescription
CallFunctionResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CallFunctionResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CallFunctionResponse.Builder toBuilder()
Returns
TypeDescription
CallFunctionResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException