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()
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>
|
addAttachments(Attachment value)
public Message.Builder addAttachments(Attachment value)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
addAttachments(Attachment.Builder builderForValue)
public Message.Builder addAttachments(Attachment.Builder builderForValue)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
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;
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;
addAttachmentsBuilder()
public Attachment.Builder addAttachmentsBuilder()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
addAttachmentsBuilder(int index)
public Attachment.Builder addAttachmentsBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Message.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Message buildPartial()
clear()
public Message.Builder clear()
Overrides
clearAttachments()
public Message.Builder clearAttachments()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
clearBody()
public Message.Builder clearBody()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
clearCreateTime()
public Message.Builder clearCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
clearField(Descriptors.FieldDescriptor field)
public Message.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLocalizationTime()
public Message.Builder clearLocalizationTime()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
clearOneof(Descriptors.OneofDescriptor oneof)
public Message.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Message.Builder clone()
Overrides
getAttachments(int index)
public Attachment getAttachments(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter |
---|
Name | Description |
index | int
|
getAttachmentsBuilder(int index)
public Attachment.Builder getAttachmentsBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter |
---|
Name | Description |
index | int
|
getAttachmentsBuilderList()
public List<Attachment.Builder> getAttachmentsBuilderList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
getAttachmentsCount()
public int getAttachmentsCount()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Returns |
---|
Type | Description |
int | |
getAttachmentsList()
public List<Attachment> getAttachmentsList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
getAttachmentsOrBuilder(int index)
public AttachmentOrBuilder getAttachmentsOrBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter |
---|
Name | Description |
index | int
|
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;
getBodyBuilder()
public Message.Body.Builder getBodyBuilder()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
getBodyOrBuilder()
public Message.BodyOrBuilder getBodyOrBuilder()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
getCreateTime()
public Timestamp getCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Returns |
---|
Type | Description |
Timestamp | The createTime.
|
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
getDefaultInstanceForType()
public Message getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
getLocalizationTimeOrBuilder()
public TimestampOrBuilder getLocalizationTimeOrBuilder()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeBody(Message.Body value)
public Message.Builder mergeBody(Message.Body value)
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
mergeCreateTime(Timestamp value)
public Message.Builder mergeCreateTime(Timestamp value)
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
mergeFrom(Message other)
public Message.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
public Message.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Message.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeLocalizationTime(Timestamp value)
public Message.Builder mergeLocalizationTime(Timestamp value)
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Message.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeAttachments(int index)
public Message.Builder removeAttachments(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter |
---|
Name | Description |
index | int
|
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;
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;
setBody(Message.Body value)
public Message.Builder setBody(Message.Body value)
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
setBody(Message.Body.Builder builderForValue)
public Message.Builder setBody(Message.Body.Builder builderForValue)
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
setCreateTime(Timestamp value)
public Message.Builder setCreateTime(Timestamp value)
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public Message.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLocalizationTime(Timestamp value)
public Message.Builder setLocalizationTime(Timestamp value)
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
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
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Message.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Message.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides