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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Message.Builder mergeFrom(Message other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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;
    • 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 interface MessageOrBuilder
    • getAttachmentsList

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

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

      public List<? extends AttachmentOrBuilder> getAttachmentsOrBuilderList()
       The attachments to download.
       
      repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
      Specified by:
      getAttachmentsOrBuilderList in interface MessageOrBuilder
    • 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