public static final class Message.Builder extends GeneratedMessageV3.Builder<Message.Builder> implements MessageOrBuilder
A message which contains notification details.
Protobuf type google.cloud.advisorynotifications.v1.Message
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllAttachments(Iterable<? extends Attachment> values)
public Message.Builder addAllAttachments(Iterable<? extends Attachment> values)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.advisorynotifications.v1.Attachment>
|
Returns
addAttachments(Attachment value)
public Message.Builder addAttachments(Attachment value)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter
Returns
addAttachments(Attachment.Builder builderForValue)
public Message.Builder addAttachments(Attachment.Builder builderForValue)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter
Returns
addAttachments(int index, Attachment value)
public Message.Builder addAttachments(int index, Attachment value)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameters
Returns
addAttachments(int index, Attachment.Builder builderForValue)
public Message.Builder addAttachments(int index, Attachment.Builder builderForValue)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameters
Returns
addAttachmentsBuilder()
public Attachment.Builder addAttachmentsBuilder()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Returns
addAttachmentsBuilder(int index)
public Attachment.Builder addAttachmentsBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Message.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Message buildPartial()
Returns
clear()
public Message.Builder clear()
Returns
Overrides
clearAttachments()
public Message.Builder clearAttachments()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Returns
clearBody()
public Message.Builder clearBody()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Returns
clearCreateTime()
public Message.Builder clearCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public Message.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLocalizationTime()
public Message.Builder clearLocalizationTime()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Message.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Message.Builder clone()
Returns
Overrides
getAttachments(int index)
public Attachment getAttachments(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter
Returns
getAttachmentsBuilder(int index)
public Attachment.Builder getAttachmentsBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter
Returns
getAttachmentsBuilderList()
public List<Attachment.Builder> getAttachmentsBuilderList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Returns
getAttachmentsCount()
public int getAttachmentsCount()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Returns
getAttachmentsList()
public List<Attachment> getAttachmentsList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Returns
getAttachmentsOrBuilder(int index)
public AttachmentOrBuilder getAttachmentsOrBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter
Returns
getAttachmentsOrBuilderList()
public List<? extends AttachmentOrBuilder> getAttachmentsOrBuilderList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Returns
Type | Description |
List<? extends com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder> | |
getBody()
public Message.Body getBody()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Returns
getBodyBuilder()
public Message.Body.Builder getBodyBuilder()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Returns
getBodyOrBuilder()
public Message.BodyOrBuilder getBodyOrBuilder()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Returns
getCreateTime()
public Timestamp getCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Returns
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Returns
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Returns
getDefaultInstanceForType()
public Message getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLocalizationTime()
public Timestamp getLocalizationTime()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Returns
Type | Description |
Timestamp | The localizationTime.
|
getLocalizationTimeBuilder()
public Timestamp.Builder getLocalizationTimeBuilder()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Returns
getLocalizationTimeOrBuilder()
public TimestampOrBuilder getLocalizationTimeOrBuilder()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Returns
hasBody()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Returns
Type | Description |
boolean | Whether the body field is set.
|
hasCreateTime()
public boolean hasCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
hasLocalizationTime()
public boolean hasLocalizationTime()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Returns
Type | Description |
boolean | Whether the localizationTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeBody(Message.Body value)
public Message.Builder mergeBody(Message.Body value)
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Parameter
Returns
mergeCreateTime(Timestamp value)
public Message.Builder mergeCreateTime(Timestamp value)
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Parameter
Returns
mergeFrom(Message other)
public Message.Builder mergeFrom(Message other)
Parameter
Returns
public Message.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Message.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeLocalizationTime(Timestamp value)
public Message.Builder mergeLocalizationTime(Timestamp value)
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Message.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeAttachments(int index)
public Message.Builder removeAttachments(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter
Returns
setAttachments(int index, Attachment value)
public Message.Builder setAttachments(int index, Attachment value)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameters
Returns
setAttachments(int index, Attachment.Builder builderForValue)
public Message.Builder setAttachments(int index, Attachment.Builder builderForValue)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameters
Returns
setBody(Message.Body value)
public Message.Builder setBody(Message.Body value)
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Parameter
Returns
setBody(Message.Body.Builder builderForValue)
public Message.Builder setBody(Message.Body.Builder builderForValue)
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Parameter
Returns
setCreateTime(Timestamp value)
public Message.Builder setCreateTime(Timestamp value)
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Parameter
Returns
setCreateTime(Timestamp.Builder builderForValue)
public Message.Builder setCreateTime(Timestamp.Builder builderForValue)
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Message.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setLocalizationTime(Timestamp value)
public Message.Builder setLocalizationTime(Timestamp value)
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Parameter
Returns
setLocalizationTime(Timestamp.Builder builderForValue)
public Message.Builder setLocalizationTime(Timestamp.Builder builderForValue)
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Message.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Message.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides