Class Message.Body.Builder (0.21.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Message.Body build()
Returns
TypeDescription
Message.Body

buildPartial()

public Message.Body buildPartial()
Returns
TypeDescription
Message.Body

clear()

public Message.Body.Builder clear()
Returns
TypeDescription
Message.Body.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Message.Body.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Message.Body.Builder

clone()

public Message.Body.Builder clone()
Returns
TypeDescription
Message.Body.Builder
Overrides

getDefaultInstanceForType()

public Message.Body getDefaultInstanceForType()
Returns
TypeDescription
Message.Body

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getText()

public Text getText()

The text content of the message body.

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

Returns
TypeDescription
Text

The text.

getTextBuilder()

public Text.Builder getTextBuilder()

The text content of the message body.

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

Returns
TypeDescription
Text.Builder

getTextOrBuilder()

public TextOrBuilder getTextOrBuilder()

The text content of the message body.

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

Returns
TypeDescription
TextOrBuilder

hasText()

public boolean hasText()

The text content of the message body.

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

Returns
TypeDescription
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Message.Body other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Message.Body.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueText
Returns
TypeDescription
Message.Body.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Message.Body.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueText
Returns
TypeDescription
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
NameDescription
builderForValueText.Builder
Returns
TypeDescription
Message.Body.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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