Class StateMessage.Builder (0.15.0)

public static final class StateMessage.Builder extends GeneratedMessageV3.Builder<StateMessage.Builder> implements StateMessageOrBuilder

Informational messages about the state of the Cloud Function or Operation.

Protobuf type google.events.cloud.functions.v2.StateMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StateMessage build()
Returns
Type Description
StateMessage

buildPartial()

public StateMessage buildPartial()
Returns
Type Description
StateMessage

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public StateMessage.Builder clearMessage()

The message.

string message = 3;

Returns
Type Description
StateMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSeverity()

public StateMessage.Builder clearSeverity()

Severity of the state message.

.google.events.cloud.functions.v2.StateMessage.Severity severity = 1;

Returns
Type Description
StateMessage.Builder

This builder for chaining.

clearType()

public StateMessage.Builder clearType()

One-word CamelCase type of the state message.

string type = 2;

Returns
Type Description
StateMessage.Builder

This builder for chaining.

clone()

public StateMessage.Builder clone()
Returns
Type Description
StateMessage.Builder
Overrides

getDefaultInstanceForType()

public StateMessage getDefaultInstanceForType()
Returns
Type Description
StateMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMessage()

public String getMessage()

The message.

string message = 3;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The message.

string message = 3;

Returns
Type Description
ByteString

The bytes for message.

getSeverity()

public StateMessage.Severity getSeverity()

Severity of the state message.

.google.events.cloud.functions.v2.StateMessage.Severity severity = 1;

Returns
Type Description
StateMessage.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Severity of the state message.

.google.events.cloud.functions.v2.StateMessage.Severity severity = 1;

Returns
Type Description
int

The enum numeric value on the wire for severity.

getType()

public String getType()

One-word CamelCase type of the state message.

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

One-word CamelCase type of the state message.

string type = 2;

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StateMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(String value)

public StateMessage.Builder setMessage(String value)

The message.

string message = 3;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
StateMessage.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public StateMessage.Builder setMessageBytes(ByteString value)

The message.

string message = 3;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
StateMessage.Builder

This builder for chaining.

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

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

setSeverity(StateMessage.Severity value)

public StateMessage.Builder setSeverity(StateMessage.Severity value)

Severity of the state message.

.google.events.cloud.functions.v2.StateMessage.Severity severity = 1;

Parameter
Name Description
value StateMessage.Severity

The severity to set.

Returns
Type Description
StateMessage.Builder

This builder for chaining.

setSeverityValue(int value)

public StateMessage.Builder setSeverityValue(int value)

Severity of the state message.

.google.events.cloud.functions.v2.StateMessage.Severity severity = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for severity to set.

Returns
Type Description
StateMessage.Builder

This builder for chaining.

setType(String value)

public StateMessage.Builder setType(String value)

One-word CamelCase type of the state message.

string type = 2;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
StateMessage.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public StateMessage.Builder setTypeBytes(ByteString value)

One-word CamelCase type of the state message.

string type = 2;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
StateMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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