Class Message.Body.Builder (0.35.0)

public static final class Message.Body.Builder extends GeneratedMessageV3.Builder<Message.Body.Builder> implements Message.BodyOrBuilder

A message body containing text.

Protobuf type google.cloud.advisorynotifications.v1.Message.Body

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Message.Body build()
Returns
Type Description
Message.Body

buildPartial()

public Message.Body buildPartial()
Returns
Type Description
Message.Body

clear()

public Message.Body.Builder clear()
Returns
Type Description
Message.Body.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearText()

public Message.Body.Builder clearText()

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
Type Description
Message.Body.Builder

clone()

public Message.Body.Builder clone()
Returns
Type Description
Message.Body.Builder
Overrides

getDefaultInstanceForType()

public Message.Body getDefaultInstanceForType()
Returns
Type Description
Message.Body

getDescriptorForType()

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

getText()

public Text getText()

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
Type Description
Text

The text.

getTextBuilder()

public Text.Builder getTextBuilder()

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
Type Description
Text.Builder

getTextOrBuilder()

public TextOrBuilder getTextOrBuilder()

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
Type Description
TextOrBuilder

hasText()

public boolean hasText()

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
Type Description
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Message.Body other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeText(Text value)

public Message.Body.Builder mergeText(Text value)

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Parameter
Name Description
value Text
Returns
Type Description
Message.Body.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setText(Text value)

public Message.Body.Builder setText(Text value)

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Parameter
Name Description
value Text
Returns
Type Description
Message.Body.Builder

setText(Text.Builder builderForValue)

public Message.Body.Builder setText(Text.Builder builderForValue)

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Parameter
Name Description
builderForValue Text.Builder
Returns
Type Description
Message.Body.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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