Class StateMessage.Builder (2.26.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.cloud.functions.v2.StateMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StateMessage build()
Returns
TypeDescription
StateMessage

buildPartial()

public StateMessage buildPartial()
Returns
TypeDescription
StateMessage

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public StateMessage.Builder clearMessage()

The message.

string message = 3;

Returns
TypeDescription
StateMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSeverity()

public StateMessage.Builder clearSeverity()

Severity of the state message.

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

Returns
TypeDescription
StateMessage.Builder

This builder for chaining.

clearType()

public StateMessage.Builder clearType()

One-word CamelCase type of the state message.

string type = 2;

Returns
TypeDescription
StateMessage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public StateMessage getDefaultInstanceForType()
Returns
TypeDescription
StateMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessage()

public String getMessage()

The message.

string message = 3;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The message.

string message = 3;

Returns
TypeDescription
ByteString

The bytes for message.

getSeverity()

public StateMessage.Severity getSeverity()

Severity of the state message.

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

Returns
TypeDescription
StateMessage.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Severity of the state message.

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

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

The type.

getTypeBytes()

public ByteString getTypeBytes()

One-word CamelCase type of the state message.

string type = 2;

Returns
TypeDescription
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StateMessage other)

public StateMessage.Builder mergeFrom(StateMessage other)
Parameter
NameDescription
otherStateMessage
Returns
TypeDescription
StateMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(String value)

public StateMessage.Builder setMessage(String value)

The message.

string message = 3;

Parameter
NameDescription
valueString

The message to set.

Returns
TypeDescription
StateMessage.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public StateMessage.Builder setMessageBytes(ByteString value)

The message.

string message = 3;

Parameter
NameDescription
valueByteString

The bytes for message to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StateMessage.Builder
Overrides

setSeverity(StateMessage.Severity value)

public StateMessage.Builder setSeverity(StateMessage.Severity value)

Severity of the state message.

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

Parameter
NameDescription
valueStateMessage.Severity

The severity to set.

Returns
TypeDescription
StateMessage.Builder

This builder for chaining.

setSeverityValue(int value)

public StateMessage.Builder setSeverityValue(int value)

Severity of the state message.

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

Parameter
NameDescription
valueint

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

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

The type to set.

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

The bytes for type to set.

Returns
TypeDescription
StateMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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