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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Message.Body.BuilderImplements
Message.BodyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Message.Body.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Message.Body.Builder |
build()
public Message.Body build()
Type | Description |
Message.Body |
buildPartial()
public Message.Body buildPartial()
Type | Description |
Message.Body |
clear()
public Message.Body.Builder clear()
Type | Description |
Message.Body.Builder |
clearField(Descriptors.FieldDescriptor field)
public Message.Body.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Message.Body.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Message.Body.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Message.Body.Builder |
clearText()
public Message.Body.Builder clearText()
The text content of the message body.
.google.cloud.advisorynotifications.v1.Text text = 1;
Type | Description |
Message.Body.Builder |
clone()
public Message.Body.Builder clone()
Type | Description |
Message.Body.Builder |
getDefaultInstanceForType()
public Message.Body getDefaultInstanceForType()
Type | Description |
Message.Body |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getText()
public Text getText()
The text content of the message body.
.google.cloud.advisorynotifications.v1.Text text = 1;
Type | Description |
Text | The text. |
getTextBuilder()
public Text.Builder getTextBuilder()
The text content of the message body.
.google.cloud.advisorynotifications.v1.Text text = 1;
Type | Description |
Text.Builder |
getTextOrBuilder()
public TextOrBuilder getTextOrBuilder()
The text content of the message body.
.google.cloud.advisorynotifications.v1.Text text = 1;
Type | Description |
TextOrBuilder |
hasText()
public boolean hasText()
The text content of the message body.
.google.cloud.advisorynotifications.v1.Text text = 1;
Type | Description |
boolean | Whether the text field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Message.Body other)
public Message.Body.Builder mergeFrom(Message.Body other)
Name | Description |
other | Message.Body |
Type | Description |
Message.Body.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Message.Body.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Message.Body.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Message.Body.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Message.Body.Builder |
mergeText(Text value)
public Message.Body.Builder mergeText(Text value)
The text content of the message body.
.google.cloud.advisorynotifications.v1.Text text = 1;
Name | Description |
value | Text |
Type | Description |
Message.Body.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Message.Body.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Message.Body.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Message.Body.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Message.Body.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Message.Body.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Message.Body.Builder |
setText(Text value)
public Message.Body.Builder setText(Text value)
The text content of the message body.
.google.cloud.advisorynotifications.v1.Text text = 1;
Name | Description |
value | Text |
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;
Name | Description |
builderForValue | Text.Builder |
Type | Description |
Message.Body.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Message.Body.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Message.Body.Builder |