Class MessageDetails.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
com.google.ads.googleads.v18.resources.MessageDetails.Builder
All Implemented Interfaces:
MessageDetailsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MessageDetails

public static final class MessageDetails.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder> implements MessageDetailsOrBuilder
 Represents details of text message in case of email, message or SMS.
 
Protobuf type google.ads.googleads.v18.resources.MessageDetails
  • Method Details

    • 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<MessageDetails.Builder>
    • clear

      public MessageDetails.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<MessageDetails.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<MessageDetails.Builder>
    • getDefaultInstanceForType

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

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

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

      public MessageDetails.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<MessageDetails.Builder>
    • setField

      public MessageDetails.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<MessageDetails.Builder>
    • clearField

      public MessageDetails.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<MessageDetails.Builder>
    • clearOneof

      public MessageDetails.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<MessageDetails.Builder>
    • setRepeatedField

      public MessageDetails.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<MessageDetails.Builder>
    • addRepeatedField

      public MessageDetails.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<MessageDetails.Builder>
    • mergeFrom

      public MessageDetails.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<MessageDetails.Builder>
    • mergeFrom

      public MessageDetails.Builder mergeFrom(MessageDetails other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
    • mergeFrom

      public MessageDetails.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<MessageDetails.Builder>
      Throws:
      IOException
    • getText

      public String getText()
       Output only. Textual content of the message.
       
      string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getText in interface MessageDetailsOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       Output only. Textual content of the message.
       
      string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTextBytes in interface MessageDetailsOrBuilder
      Returns:
      The bytes for text.
    • setText

      public MessageDetails.Builder setText(String value)
       Output only. Textual content of the message.
       
      string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

      public MessageDetails.Builder clearText()
       Output only. Textual content of the message.
       
      string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTextBytes

      public MessageDetails.Builder setTextBytes(com.google.protobuf.ByteString value)
       Output only. Textual content of the message.
       
      string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.
    • getAttachmentUrlsList

      public com.google.protobuf.ProtocolStringList getAttachmentUrlsList()
       Output only. URL to the SMS or email attachments. These URLs can be used to
       download the contents of the attachment by using the developer token.
       
      repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttachmentUrlsList in interface MessageDetailsOrBuilder
      Returns:
      A list containing the attachmentUrls.
    • getAttachmentUrlsCount

      public int getAttachmentUrlsCount()
       Output only. URL to the SMS or email attachments. These URLs can be used to
       download the contents of the attachment by using the developer token.
       
      repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttachmentUrlsCount in interface MessageDetailsOrBuilder
      Returns:
      The count of attachmentUrls.
    • getAttachmentUrls

      public String getAttachmentUrls(int index)
       Output only. URL to the SMS or email attachments. These URLs can be used to
       download the contents of the attachment by using the developer token.
       
      repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttachmentUrls in interface MessageDetailsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The attachmentUrls at the given index.
    • getAttachmentUrlsBytes

      public com.google.protobuf.ByteString getAttachmentUrlsBytes(int index)
       Output only. URL to the SMS or email attachments. These URLs can be used to
       download the contents of the attachment by using the developer token.
       
      repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttachmentUrlsBytes in interface MessageDetailsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the attachmentUrls at the given index.
    • setAttachmentUrls

      public MessageDetails.Builder setAttachmentUrls(int index, String value)
       Output only. URL to the SMS or email attachments. These URLs can be used to
       download the contents of the attachment by using the developer token.
       
      repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The attachmentUrls to set.
      Returns:
      This builder for chaining.
    • addAttachmentUrls

      public MessageDetails.Builder addAttachmentUrls(String value)
       Output only. URL to the SMS or email attachments. These URLs can be used to
       download the contents of the attachment by using the developer token.
       
      repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The attachmentUrls to add.
      Returns:
      This builder for chaining.
    • addAllAttachmentUrls

      public MessageDetails.Builder addAllAttachmentUrls(Iterable<String> values)
       Output only. URL to the SMS or email attachments. These URLs can be used to
       download the contents of the attachment by using the developer token.
       
      repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The attachmentUrls to add.
      Returns:
      This builder for chaining.
    • clearAttachmentUrls

      public MessageDetails.Builder clearAttachmentUrls()
       Output only. URL to the SMS or email attachments. These URLs can be used to
       download the contents of the attachment by using the developer token.
       
      repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addAttachmentUrlsBytes

      public MessageDetails.Builder addAttachmentUrlsBytes(com.google.protobuf.ByteString value)
       Output only. URL to the SMS or email attachments. These URLs can be used to
       download the contents of the attachment by using the developer token.
       
      repeated string attachment_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the attachmentUrls to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final MessageDetails.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<MessageDetails.Builder>
    • mergeUnknownFields

      public final MessageDetails.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<MessageDetails.Builder>