Class CallFunctionResponse.Builder (2.35.0)

public static final class CallFunctionResponse.Builder extends GeneratedMessageV3.Builder<CallFunctionResponse.Builder> implements CallFunctionResponseOrBuilder

Response of CallFunction method.

Protobuf type google.cloud.functions.v1.CallFunctionResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CallFunctionResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides

build()

public CallFunctionResponse build()
Returns
TypeDescription
CallFunctionResponse

buildPartial()

public CallFunctionResponse buildPartial()
Returns
TypeDescription
CallFunctionResponse

clear()

public CallFunctionResponse.Builder clear()
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides

clearError()

public CallFunctionResponse.Builder clearError()

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

string error = 3;

Returns
TypeDescription
CallFunctionResponse.Builder

This builder for chaining.

clearExecutionId()

public CallFunctionResponse.Builder clearExecutionId()

Execution id of function invocation.

string execution_id = 1;

Returns
TypeDescription
CallFunctionResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CallFunctionResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CallFunctionResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides

clearResult()

public CallFunctionResponse.Builder clearResult()

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

This builder for chaining.

clone()

public CallFunctionResponse.Builder clone()
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides

getDefaultInstanceForType()

public CallFunctionResponse getDefaultInstanceForType()
Returns
TypeDescription
CallFunctionResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CallFunctionResponse other)

public CallFunctionResponse.Builder mergeFrom(CallFunctionResponse other)
Parameter
NameDescription
otherCallFunctionResponse
Returns
TypeDescription
CallFunctionResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CallFunctionResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CallFunctionResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CallFunctionResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides

setError(String value)

public CallFunctionResponse.Builder setError(String value)

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

string error = 3;

Parameter
NameDescription
valueString

The error to set.

Returns
TypeDescription
CallFunctionResponse.Builder

This builder for chaining.

setErrorBytes(ByteString value)

public CallFunctionResponse.Builder setErrorBytes(ByteString value)

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

string error = 3;

Parameter
NameDescription
valueByteString

The bytes for error to set.

Returns
TypeDescription
CallFunctionResponse.Builder

This builder for chaining.

setExecutionId(String value)

public CallFunctionResponse.Builder setExecutionId(String value)

Execution id of function invocation.

string execution_id = 1;

Parameter
NameDescription
valueString

The executionId to set.

Returns
TypeDescription
CallFunctionResponse.Builder

This builder for chaining.

setExecutionIdBytes(ByteString value)

public CallFunctionResponse.Builder setExecutionIdBytes(ByteString value)

Execution id of function invocation.

string execution_id = 1;

Parameter
NameDescription
valueByteString

The bytes for executionId to set.

Returns
TypeDescription
CallFunctionResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CallFunctionResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides

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

public CallFunctionResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides

setResult(String value)

public CallFunctionResponse.Builder setResult(String value)

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
NameDescription
valueString

The result to set.

Returns
TypeDescription
CallFunctionResponse.Builder

This builder for chaining.

setResultBytes(ByteString value)

public CallFunctionResponse.Builder setResultBytes(ByteString value)

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
NameDescription
valueByteString

The bytes for result to set.

Returns
TypeDescription
CallFunctionResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CallFunctionResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CallFunctionResponse.Builder
Overrides