Class Message.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Message.Builder>
implements MessageOrBuilder
A message which contains notification details.Protobuf type
google.cloud.advisorynotifications.v1.Message-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttachments(Iterable<? extends Attachment> values) The attachments to download.addAttachments(int index, Attachment value) The attachments to download.addAttachments(int index, Attachment.Builder builderForValue) The attachments to download.addAttachments(Attachment value) The attachments to download.addAttachments(Attachment.Builder builderForValue) The attachments to download.The attachments to download.addAttachmentsBuilder(int index) The attachments to download.build()clear()The attachments to download.The message content.The Message creation timestamp.Time when Message was localizedgetAttachments(int index) The attachments to download.getAttachmentsBuilder(int index) The attachments to download.The attachments to download.intThe attachments to download.The attachments to download.getAttachmentsOrBuilder(int index) The attachments to download.List<? extends AttachmentOrBuilder>The attachments to download.getBody()The message content.The message content.The message content.com.google.protobuf.TimestampThe Message creation timestamp.com.google.protobuf.Timestamp.BuilderThe Message creation timestamp.com.google.protobuf.TimestampOrBuilderThe Message creation timestamp.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampTime when Message was localizedcom.google.protobuf.Timestamp.BuilderTime when Message was localizedcom.google.protobuf.TimestampOrBuilderTime when Message was localizedbooleanhasBody()The message content.booleanThe Message creation timestamp.booleanTime when Message was localizedprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBody(Message.Body value) The message content.mergeCreateTime(com.google.protobuf.Timestamp value) The Message creation timestamp.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLocalizationTime(com.google.protobuf.Timestamp value) Time when Message was localizedremoveAttachments(int index) The attachments to download.setAttachments(int index, Attachment value) The attachments to download.setAttachments(int index, Attachment.Builder builderForValue) The attachments to download.setBody(Message.Body value) The message content.setBody(Message.Body.Builder builderForValue) The message content.setCreateTime(com.google.protobuf.Timestamp value) The Message creation timestamp.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The Message creation timestamp.setLocalizationTime(com.google.protobuf.Timestamp value) Time when Message was localizedsetLocalizationTime(com.google.protobuf.Timestamp.Builder builderForValue) Time when Message was localizedMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Message.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Message.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Message.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Message.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Message.Builder>
-
mergeFrom
public Message.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasBodyin interfaceMessageOrBuilder- Returns:
- Whether the body field is set.
-
getBody
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;- Specified by:
getBodyin interfaceMessageOrBuilder- Returns:
- The body.
-
setBody
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1; -
setBody
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1; -
mergeBody
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1; -
clearBody
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1; -
getBodyBuilder
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1; -
getBodyOrBuilder
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;- Specified by:
getBodyOrBuilderin interfaceMessageOrBuilder
-
getAttachmentsList
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;- Specified by:
getAttachmentsListin interfaceMessageOrBuilder
-
getAttachmentsCount
public int getAttachmentsCount()The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;- Specified by:
getAttachmentsCountin interfaceMessageOrBuilder
-
getAttachments
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;- Specified by:
getAttachmentsin interfaceMessageOrBuilder
-
setAttachments
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
setAttachments
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
addAttachments
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
addAttachments
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
addAttachments
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
addAttachments
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
addAllAttachments
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
clearAttachments
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
removeAttachments
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
getAttachmentsBuilder
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
getAttachmentsOrBuilder
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;- Specified by:
getAttachmentsOrBuilderin interfaceMessageOrBuilder
-
getAttachmentsOrBuilderList
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;- Specified by:
getAttachmentsOrBuilderListin interfaceMessageOrBuilder
-
addAttachmentsBuilder
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
addAttachmentsBuilder
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; -
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:
hasCreateTimein 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:
getCreateTimein interfaceMessageOrBuilder- Returns:
- The createTime.
-
setCreateTime
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3; -
setCreateTime
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3; -
mergeCreateTime
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3; -
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:
getCreateTimeOrBuilderin interfaceMessageOrBuilder
-
hasLocalizationTime
public boolean hasLocalizationTime()Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;- Specified by:
hasLocalizationTimein 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:
getLocalizationTimein interfaceMessageOrBuilder- Returns:
- The localizationTime.
-
setLocalizationTime
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4; -
setLocalizationTime
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4; -
mergeLocalizationTime
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4; -
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:
getLocalizationTimeOrBuilderin interfaceMessageOrBuilder
-