Class Message.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
- com.google.cloud.advisorynotifications.v1.Message.Builder
-
- All Implemented Interfaces:
MessageOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Message
public static final class Message.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder> implements MessageOrBuilder
A message which contains notification details.
Protobuf typegoogle.cloud.advisorynotifications.v1.Message
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Message.Builder
addAllAttachments(Iterable<? extends Attachment> values)
The attachments to download.Message.Builder
addAttachments(int index, Attachment value)
The attachments to download.Message.Builder
addAttachments(int index, Attachment.Builder builderForValue)
The attachments to download.Message.Builder
addAttachments(Attachment value)
The attachments to download.Message.Builder
addAttachments(Attachment.Builder builderForValue)
The attachments to download.Attachment.Builder
addAttachmentsBuilder()
The attachments to download.Attachment.Builder
addAttachmentsBuilder(int index)
The attachments to download.Message.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Message
build()
Message
buildPartial()
Message.Builder
clear()
Message.Builder
clearAttachments()
The attachments to download.Message.Builder
clearBody()
The message content.Message.Builder
clearCreateTime()
The Message creation timestamp.Message.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Message.Builder
clearLocalizationTime()
Time when Message was localizedMessage.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Message.Builder
clone()
Attachment
getAttachments(int index)
The attachments to download.Attachment.Builder
getAttachmentsBuilder(int index)
The attachments to download.List<Attachment.Builder>
getAttachmentsBuilderList()
The attachments to download.int
getAttachmentsCount()
The attachments to download.List<Attachment>
getAttachmentsList()
The attachments to download.AttachmentOrBuilder
getAttachmentsOrBuilder(int index)
The attachments to download.List<? extends AttachmentOrBuilder>
getAttachmentsOrBuilderList()
The attachments to download.Message.Body
getBody()
The message content.Message.Body.Builder
getBodyBuilder()
The message content.Message.BodyOrBuilder
getBodyOrBuilder()
The message content.com.google.protobuf.Timestamp
getCreateTime()
The Message creation timestamp.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
The Message creation timestamp.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
The Message creation timestamp.Message
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Timestamp
getLocalizationTime()
Time when Message was localizedcom.google.protobuf.Timestamp.Builder
getLocalizationTimeBuilder()
Time when Message was localizedcom.google.protobuf.TimestampOrBuilder
getLocalizationTimeOrBuilder()
Time when Message was localizedboolean
hasBody()
The message content.boolean
hasCreateTime()
The Message creation timestamp.boolean
hasLocalizationTime()
Time when Message was localizedprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Message.Builder
mergeBody(Message.Body value)
The message content.Message.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
The Message creation timestamp.Message.Builder
mergeFrom(Message other)
Message.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Message.Builder
mergeFrom(com.google.protobuf.Message other)
Message.Builder
mergeLocalizationTime(com.google.protobuf.Timestamp value)
Time when Message was localizedMessage.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Message.Builder
removeAttachments(int index)
The attachments to download.Message.Builder
setAttachments(int index, Attachment value)
The attachments to download.Message.Builder
setAttachments(int index, Attachment.Builder builderForValue)
The attachments to download.Message.Builder
setBody(Message.Body value)
The message content.Message.Builder
setBody(Message.Body.Builder builderForValue)
The message content.Message.Builder
setCreateTime(com.google.protobuf.Timestamp value)
The Message creation timestamp.Message.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The Message creation timestamp.Message.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Message.Builder
setLocalizationTime(com.google.protobuf.Timestamp value)
Time when Message was localizedMessage.Builder
setLocalizationTime(com.google.protobuf.Timestamp.Builder builderForValue)
Time when Message was localizedMessage.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Message.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
clear
public Message.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
getDefaultInstanceForType
public Message getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Message build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Message buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Message.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
setField
public Message.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
clearField
public Message.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
clearOneof
public Message.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
setRepeatedField
public Message.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
addRepeatedField
public Message.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
mergeFrom
public Message.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Message.Builder>
-
mergeFrom
public Message.Builder mergeFrom(Message other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
mergeFrom
public Message.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Message.Builder>
- Throws:
IOException
-
hasBody
public boolean hasBody()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
- Specified by:
hasBody
in interfaceMessageOrBuilder
- Returns:
- Whether the body field is set.
-
getBody
public Message.Body getBody()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
- Specified by:
getBody
in interfaceMessageOrBuilder
- Returns:
- The body.
-
setBody
public Message.Builder setBody(Message.Body value)
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
-
setBody
public Message.Builder setBody(Message.Body.Builder builderForValue)
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
-
mergeBody
public Message.Builder mergeBody(Message.Body value)
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
-
clearBody
public Message.Builder clearBody()
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;
- Specified by:
getBodyOrBuilder
in interfaceMessageOrBuilder
-
getAttachmentsList
public List<Attachment> getAttachmentsList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
- Specified by:
getAttachmentsList
in interfaceMessageOrBuilder
-
getAttachmentsCount
public int getAttachmentsCount()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
- Specified by:
getAttachmentsCount
in interfaceMessageOrBuilder
-
getAttachments
public Attachment getAttachments(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
- Specified by:
getAttachments
in interfaceMessageOrBuilder
-
setAttachments
public Message.Builder setAttachments(int index, Attachment value)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
setAttachments
public Message.Builder setAttachments(int index, Attachment.Builder builderForValue)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
addAttachments
public Message.Builder addAttachments(Attachment value)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
addAttachments
public Message.Builder addAttachments(int index, Attachment value)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
addAttachments
public Message.Builder addAttachments(Attachment.Builder builderForValue)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
addAttachments
public Message.Builder addAttachments(int index, Attachment.Builder builderForValue)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
addAllAttachments
public Message.Builder addAllAttachments(Iterable<? extends Attachment> values)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
clearAttachments
public Message.Builder clearAttachments()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
removeAttachments
public Message.Builder removeAttachments(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
getAttachmentsBuilder
public Attachment.Builder getAttachmentsBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
getAttachmentsOrBuilder
public AttachmentOrBuilder getAttachmentsOrBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
- Specified by:
getAttachmentsOrBuilder
in interfaceMessageOrBuilder
-
getAttachmentsOrBuilderList
public List<? extends AttachmentOrBuilder> getAttachmentsOrBuilderList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
- Specified by:
getAttachmentsOrBuilderList
in interfaceMessageOrBuilder
-
addAttachmentsBuilder
public Attachment.Builder addAttachmentsBuilder()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
addAttachmentsBuilder
public Attachment.Builder addAttachmentsBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
getAttachmentsBuilderList
public List<Attachment.Builder> getAttachmentsBuilderList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
-
hasCreateTime
public boolean hasCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
- Specified by:
hasCreateTime
in interfaceMessageOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
- Specified by:
getCreateTime
in interfaceMessageOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public Message.Builder setCreateTime(com.google.protobuf.Timestamp value)
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
-
setCreateTime
public Message.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
-
mergeCreateTime
public Message.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
-
clearCreateTime
public Message.Builder clearCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
- Specified by:
getCreateTimeOrBuilder
in interfaceMessageOrBuilder
-
hasLocalizationTime
public boolean hasLocalizationTime()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
- Specified by:
hasLocalizationTime
in interfaceMessageOrBuilder
- Returns:
- Whether the localizationTime field is set.
-
getLocalizationTime
public com.google.protobuf.Timestamp getLocalizationTime()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
- Specified by:
getLocalizationTime
in interfaceMessageOrBuilder
- Returns:
- The localizationTime.
-
setLocalizationTime
public Message.Builder setLocalizationTime(com.google.protobuf.Timestamp value)
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
-
setLocalizationTime
public Message.Builder setLocalizationTime(com.google.protobuf.Timestamp.Builder builderForValue)
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
-
mergeLocalizationTime
public Message.Builder mergeLocalizationTime(com.google.protobuf.Timestamp value)
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
-
clearLocalizationTime
public Message.Builder clearLocalizationTime()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
-
getLocalizationTimeBuilder
public com.google.protobuf.Timestamp.Builder getLocalizationTimeBuilder()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
-
getLocalizationTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLocalizationTimeOrBuilder()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
- Specified by:
getLocalizationTimeOrBuilder
in interfaceMessageOrBuilder
-
setUnknownFields
public final Message.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
mergeUnknownFields
public final Message.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
-