Class 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 type google.cloud.advisorynotifications.v1.Message
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
      • clear

        public Message.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
      • getDefaultInstanceForType

        public Message getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Message build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Message buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Message.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
      • setField

        public Message.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
      • clearField

        public Message.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
      • clearOneof

        public Message.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
      • addRepeatedField

        public Message.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
      • mergeFrom

        public Message.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Message.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface MessageOrBuilder
        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 interface MessageOrBuilder
        Returns:
        The body.
      • setBody

        public Message.Builder setBody​(Message.Body value)
         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;
      • getAttachmentsCount

        public int getAttachmentsCount()
         The attachments to download.
         
        repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
        Specified by:
        getAttachmentsCount in interface MessageOrBuilder
      • getAttachments

        public Attachment getAttachments​(int index)
         The attachments to download.
         
        repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
        Specified by:
        getAttachments in interface MessageOrBuilder
      • 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;
      • 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 interface MessageOrBuilder
        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 interface MessageOrBuilder
        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 interface MessageOrBuilder
      • hasLocalizationTime

        public boolean hasLocalizationTime()
         Time when Message was localized
         
        .google.protobuf.Timestamp localization_time = 4;
        Specified by:
        hasLocalizationTime in interface MessageOrBuilder
        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 interface MessageOrBuilder
        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 interface MessageOrBuilder
      • setUnknownFields

        public final Message.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
      • mergeUnknownFields

        public final Message.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>