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 Summary
Modifier and TypeMethodDescriptionaddAllAttachmentUrls(Iterable<String> values) Output only.addAttachmentUrls(String value) Output only.addAttachmentUrlsBytes(com.google.protobuf.ByteString value) Output only.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.clone()getAttachmentUrls(int index) Output only.com.google.protobuf.ByteStringgetAttachmentUrlsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetText()Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(MessageDetails other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final MessageDetails.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAttachmentUrls(int index, String value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Output only.setTextBytes(com.google.protobuf.ByteString value) Output only.final MessageDetails.BuildersetUnknownFields(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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.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.GeneratedMessageV3.Builder<MessageDetails.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
-
setField
public MessageDetails.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
-
setRepeatedField
public MessageDetails.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
-
addRepeatedField
public MessageDetails.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MessageDetails.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MessageDetails.Builder>- Throws:
IOException
-
getText
Output only. Textual content of the message.
string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTextin interfaceMessageDetailsOrBuilder- 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:
getTextBytesin interfaceMessageDetailsOrBuilder- Returns:
- The bytes for text.
-
setText
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
Output only. Textual content of the message.
string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTextBytes
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:
getAttachmentUrlsListin interfaceMessageDetailsOrBuilder- 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:
getAttachmentUrlsCountin interfaceMessageDetailsOrBuilder- Returns:
- The count of attachmentUrls.
-
getAttachmentUrls
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:
getAttachmentUrlsin interfaceMessageDetailsOrBuilder- 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:
getAttachmentUrlsBytesin interfaceMessageDetailsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the attachmentUrls at the given index.
-
setAttachmentUrls
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
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
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
-
mergeUnknownFields
public final MessageDetails.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageDetails.Builder>
-