main.java.com.streamlayer.social.TweetExtendedMedia Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streamlayer/social/twitter.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.social;
/**
*
* https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/extended-entities-object
*
*
* Protobuf type {@code streamlayer.social.TweetExtendedMedia}
*/
public final class TweetExtendedMedia extends
com.google.protobuf.GeneratedMessageLite<
TweetExtendedMedia, TweetExtendedMedia.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.social.TweetExtendedMedia)
TweetExtendedMediaOrBuilder {
private TweetExtendedMedia() {
idStr_ = "";
type_ = "";
url_ = "";
mediaUrl_ = "";
displayUrl_ = "";
expandedUrl_ = "";
mediaUrlHttps_ = "";
indices_ = emptyIntList();
}
public interface TweetAdditionalMediaInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo)
com.google.protobuf.MessageLiteOrBuilder {
/**
* string title = 1 [json_name = "title"];
* @return The title.
*/
java.lang.String getTitle();
/**
* string title = 1 [json_name = "title"];
* @return The bytes for title.
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
* string description = 2 [json_name = "description"];
* @return The description.
*/
java.lang.String getDescription();
/**
* string description = 2 [json_name = "description"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
* bool embeddable = 3 [json_name = "embeddable"];
* @return The embeddable.
*/
boolean getEmbeddable();
/**
* bool monetizable = 4 [json_name = "monetizable"];
* @return The monetizable.
*/
boolean getMonetizable();
}
/**
* Protobuf type {@code streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo}
*/
public static final class TweetAdditionalMediaInfo extends
com.google.protobuf.GeneratedMessageLite<
TweetAdditionalMediaInfo, TweetAdditionalMediaInfo.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo)
TweetAdditionalMediaInfoOrBuilder {
private TweetAdditionalMediaInfo() {
title_ = "";
description_ = "";
}
public static final int TITLE_FIELD_NUMBER = 1;
private java.lang.String title_;
/**
* string title = 1 [json_name = "title"];
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
return title_;
}
/**
* string title = 1 [json_name = "title"];
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(title_);
}
/**
* string title = 1 [json_name = "title"];
* @param value The title to set.
*/
private void setTitle(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
title_ = value;
}
/**
* string title = 1 [json_name = "title"];
*/
private void clearTitle() {
title_ = getDefaultInstance().getTitle();
}
/**
* string title = 1 [json_name = "title"];
* @param value The bytes for title to set.
*/
private void setTitleBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
title_ = value.toStringUtf8();
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private java.lang.String description_;
/**
* string description = 2 [json_name = "description"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
return description_;
}
/**
* string description = 2 [json_name = "description"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(description_);
}
/**
* string description = 2 [json_name = "description"];
* @param value The description to set.
*/
private void setDescription(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
description_ = value;
}
/**
* string description = 2 [json_name = "description"];
*/
private void clearDescription() {
description_ = getDefaultInstance().getDescription();
}
/**
* string description = 2 [json_name = "description"];
* @param value The bytes for description to set.
*/
private void setDescriptionBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
description_ = value.toStringUtf8();
}
public static final int EMBEDDABLE_FIELD_NUMBER = 3;
private boolean embeddable_;
/**
* bool embeddable = 3 [json_name = "embeddable"];
* @return The embeddable.
*/
@java.lang.Override
public boolean getEmbeddable() {
return embeddable_;
}
/**
* bool embeddable = 3 [json_name = "embeddable"];
* @param value The embeddable to set.
*/
private void setEmbeddable(boolean value) {
embeddable_ = value;
}
/**
* bool embeddable = 3 [json_name = "embeddable"];
*/
private void clearEmbeddable() {
embeddable_ = false;
}
public static final int MONETIZABLE_FIELD_NUMBER = 4;
private boolean monetizable_;
/**
* bool monetizable = 4 [json_name = "monetizable"];
* @return The monetizable.
*/
@java.lang.Override
public boolean getMonetizable() {
return monetizable_;
}
/**
* bool monetizable = 4 [json_name = "monetizable"];
* @param value The monetizable to set.
*/
private void setMonetizable(boolean value) {
monetizable_ = value;
}
/**
* bool monetizable = 4 [json_name = "monetizable"];
*/
private void clearMonetizable() {
monetizable_ = false;
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo)
com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfoOrBuilder {
// Construct using com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string title = 1 [json_name = "title"];
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
return instance.getTitle();
}
/**
* string title = 1 [json_name = "title"];
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
return instance.getTitleBytes();
}
/**
* string title = 1 [json_name = "title"];
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
copyOnWrite();
instance.setTitle(value);
return this;
}
/**
* string title = 1 [json_name = "title"];
* @return This builder for chaining.
*/
public Builder clearTitle() {
copyOnWrite();
instance.clearTitle();
return this;
}
/**
* string title = 1 [json_name = "title"];
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTitleBytes(value);
return this;
}
/**
* string description = 2 [json_name = "description"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
return instance.getDescription();
}
/**
* string description = 2 [json_name = "description"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
return instance.getDescriptionBytes();
}
/**
* string description = 2 [json_name = "description"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
copyOnWrite();
instance.setDescription(value);
return this;
}
/**
* string description = 2 [json_name = "description"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
copyOnWrite();
instance.clearDescription();
return this;
}
/**
* string description = 2 [json_name = "description"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDescriptionBytes(value);
return this;
}
/**
* bool embeddable = 3 [json_name = "embeddable"];
* @return The embeddable.
*/
@java.lang.Override
public boolean getEmbeddable() {
return instance.getEmbeddable();
}
/**
* bool embeddable = 3 [json_name = "embeddable"];
* @param value The embeddable to set.
* @return This builder for chaining.
*/
public Builder setEmbeddable(boolean value) {
copyOnWrite();
instance.setEmbeddable(value);
return this;
}
/**
* bool embeddable = 3 [json_name = "embeddable"];
* @return This builder for chaining.
*/
public Builder clearEmbeddable() {
copyOnWrite();
instance.clearEmbeddable();
return this;
}
/**
* bool monetizable = 4 [json_name = "monetizable"];
* @return The monetizable.
*/
@java.lang.Override
public boolean getMonetizable() {
return instance.getMonetizable();
}
/**
* bool monetizable = 4 [json_name = "monetizable"];
* @param value The monetizable to set.
* @return This builder for chaining.
*/
public Builder setMonetizable(boolean value) {
copyOnWrite();
instance.setMonetizable(value);
return this;
}
/**
* bool monetizable = 4 [json_name = "monetizable"];
* @return This builder for chaining.
*/
public Builder clearMonetizable() {
copyOnWrite();
instance.clearMonetizable();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"title_",
"description_",
"embeddable_",
"monetizable_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
"\u0003\u0007\u0004\u0007";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo)
private static final com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo DEFAULT_INSTANCE;
static {
TweetAdditionalMediaInfo defaultInstance = new TweetAdditionalMediaInfo();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TweetAdditionalMediaInfo.class, defaultInstance);
}
public static com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
* int64 id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* int64 id = 1 [json_name = "id"];
* @param value The id to set.
*/
private void setId(long value) {
id_ = value;
}
/**
* int64 id = 1 [json_name = "id"];
*/
private void clearId() {
id_ = 0L;
}
public static final int ID_STR_FIELD_NUMBER = 2;
private java.lang.String idStr_;
/**
* string id_str = 2 [json_name = "idStr"];
* @return The idStr.
*/
@java.lang.Override
public java.lang.String getIdStr() {
return idStr_;
}
/**
* string id_str = 2 [json_name = "idStr"];
* @return The bytes for idStr.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdStrBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(idStr_);
}
/**
* string id_str = 2 [json_name = "idStr"];
* @param value The idStr to set.
*/
private void setIdStr(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
idStr_ = value;
}
/**
* string id_str = 2 [json_name = "idStr"];
*/
private void clearIdStr() {
idStr_ = getDefaultInstance().getIdStr();
}
/**
* string id_str = 2 [json_name = "idStr"];
* @param value The bytes for idStr to set.
*/
private void setIdStrBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
idStr_ = value.toStringUtf8();
}
public static final int TYPE_FIELD_NUMBER = 3;
private java.lang.String type_;
/**
* string type = 3 [json_name = "type"];
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
return type_;
}
/**
* string type = 3 [json_name = "type"];
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(type_);
}
/**
* string type = 3 [json_name = "type"];
* @param value The type to set.
*/
private void setType(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
type_ = value;
}
/**
* string type = 3 [json_name = "type"];
*/
private void clearType() {
type_ = getDefaultInstance().getType();
}
/**
* string type = 3 [json_name = "type"];
* @param value The bytes for type to set.
*/
private void setTypeBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
type_ = value.toStringUtf8();
}
public static final int URL_FIELD_NUMBER = 4;
private java.lang.String url_;
/**
* string url = 4 [json_name = "url"];
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
return url_;
}
/**
* string url = 4 [json_name = "url"];
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUrlBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(url_);
}
/**
* string url = 4 [json_name = "url"];
* @param value The url to set.
*/
private void setUrl(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
url_ = value;
}
/**
* string url = 4 [json_name = "url"];
*/
private void clearUrl() {
url_ = getDefaultInstance().getUrl();
}
/**
* string url = 4 [json_name = "url"];
* @param value The bytes for url to set.
*/
private void setUrlBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
url_ = value.toStringUtf8();
}
public static final int MEDIA_URL_FIELD_NUMBER = 5;
private java.lang.String mediaUrl_;
/**
* string media_url = 5 [json_name = "mediaUrl"];
* @return The mediaUrl.
*/
@java.lang.Override
public java.lang.String getMediaUrl() {
return mediaUrl_;
}
/**
* string media_url = 5 [json_name = "mediaUrl"];
* @return The bytes for mediaUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMediaUrlBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(mediaUrl_);
}
/**
* string media_url = 5 [json_name = "mediaUrl"];
* @param value The mediaUrl to set.
*/
private void setMediaUrl(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
mediaUrl_ = value;
}
/**
* string media_url = 5 [json_name = "mediaUrl"];
*/
private void clearMediaUrl() {
mediaUrl_ = getDefaultInstance().getMediaUrl();
}
/**
* string media_url = 5 [json_name = "mediaUrl"];
* @param value The bytes for mediaUrl to set.
*/
private void setMediaUrlBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
mediaUrl_ = value.toStringUtf8();
}
public static final int DISPLAY_URL_FIELD_NUMBER = 6;
private java.lang.String displayUrl_;
/**
* string display_url = 6 [json_name = "displayUrl"];
* @return The displayUrl.
*/
@java.lang.Override
public java.lang.String getDisplayUrl() {
return displayUrl_;
}
/**
* string display_url = 6 [json_name = "displayUrl"];
* @return The bytes for displayUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDisplayUrlBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(displayUrl_);
}
/**
* string display_url = 6 [json_name = "displayUrl"];
* @param value The displayUrl to set.
*/
private void setDisplayUrl(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
displayUrl_ = value;
}
/**
* string display_url = 6 [json_name = "displayUrl"];
*/
private void clearDisplayUrl() {
displayUrl_ = getDefaultInstance().getDisplayUrl();
}
/**
* string display_url = 6 [json_name = "displayUrl"];
* @param value The bytes for displayUrl to set.
*/
private void setDisplayUrlBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
displayUrl_ = value.toStringUtf8();
}
public static final int EXPANDED_URL_FIELD_NUMBER = 7;
private java.lang.String expandedUrl_;
/**
* string expanded_url = 7 [json_name = "expandedUrl"];
* @return The expandedUrl.
*/
@java.lang.Override
public java.lang.String getExpandedUrl() {
return expandedUrl_;
}
/**
* string expanded_url = 7 [json_name = "expandedUrl"];
* @return The bytes for expandedUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExpandedUrlBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(expandedUrl_);
}
/**
* string expanded_url = 7 [json_name = "expandedUrl"];
* @param value The expandedUrl to set.
*/
private void setExpandedUrl(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
expandedUrl_ = value;
}
/**
* string expanded_url = 7 [json_name = "expandedUrl"];
*/
private void clearExpandedUrl() {
expandedUrl_ = getDefaultInstance().getExpandedUrl();
}
/**
* string expanded_url = 7 [json_name = "expandedUrl"];
* @param value The bytes for expandedUrl to set.
*/
private void setExpandedUrlBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
expandedUrl_ = value.toStringUtf8();
}
public static final int MEDIA_URL_HTTPS_FIELD_NUMBER = 8;
private java.lang.String mediaUrlHttps_;
/**
* string media_url_https = 8 [json_name = "mediaUrlHttps"];
* @return The mediaUrlHttps.
*/
@java.lang.Override
public java.lang.String getMediaUrlHttps() {
return mediaUrlHttps_;
}
/**
* string media_url_https = 8 [json_name = "mediaUrlHttps"];
* @return The bytes for mediaUrlHttps.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMediaUrlHttpsBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(mediaUrlHttps_);
}
/**
* string media_url_https = 8 [json_name = "mediaUrlHttps"];
* @param value The mediaUrlHttps to set.
*/
private void setMediaUrlHttps(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
mediaUrlHttps_ = value;
}
/**
* string media_url_https = 8 [json_name = "mediaUrlHttps"];
*/
private void clearMediaUrlHttps() {
mediaUrlHttps_ = getDefaultInstance().getMediaUrlHttps();
}
/**
* string media_url_https = 8 [json_name = "mediaUrlHttps"];
* @param value The bytes for mediaUrlHttps to set.
*/
private void setMediaUrlHttpsBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
mediaUrlHttps_ = value.toStringUtf8();
}
public static final int SIZES_FIELD_NUMBER = 9;
private com.streamlayer.social.TweetMediaSizes sizes_;
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
@java.lang.Override
public boolean hasSizes() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaSizes getSizes() {
return sizes_ == null ? com.streamlayer.social.TweetMediaSizes.getDefaultInstance() : sizes_;
}
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
private void setSizes(com.streamlayer.social.TweetMediaSizes value) {
value.getClass();
sizes_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeSizes(com.streamlayer.social.TweetMediaSizes value) {
value.getClass();
if (sizes_ != null &&
sizes_ != com.streamlayer.social.TweetMediaSizes.getDefaultInstance()) {
sizes_ =
com.streamlayer.social.TweetMediaSizes.newBuilder(sizes_).mergeFrom(value).buildPartial();
} else {
sizes_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
private void clearSizes() { sizes_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int INDICES_FIELD_NUMBER = 10;
private com.google.protobuf.Internal.IntList indices_;
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @return A list containing the indices.
*/
@java.lang.Override
public java.util.List
getIndicesList() {
return indices_;
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @return The count of indices.
*/
@java.lang.Override
public int getIndicesCount() {
return indices_.size();
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @param index The index of the element to return.
* @return The indices at the given index.
*/
@java.lang.Override
public int getIndices(int index) {
return indices_.getInt(index);
}
private int indicesMemoizedSerializedSize = -1;
private void ensureIndicesIsMutable() {
com.google.protobuf.Internal.IntList tmp = indices_;
if (!tmp.isModifiable()) {
indices_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @param index The index to set the value at.
* @param value The indices to set.
*/
private void setIndices(
int index, int value) {
ensureIndicesIsMutable();
indices_.setInt(index, value);
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @param value The indices to add.
*/
private void addIndices(int value) {
ensureIndicesIsMutable();
indices_.addInt(value);
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @param values The indices to add.
*/
private void addAllIndices(
java.lang.Iterable extends java.lang.Integer> values) {
ensureIndicesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, indices_);
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
*/
private void clearIndices() {
indices_ = emptyIntList();
}
public static final int VIDEO_INFO_FIELD_NUMBER = 11;
private com.streamlayer.social.TweetMediaVideoInfo videoInfo_;
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
@java.lang.Override
public boolean hasVideoInfo() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaVideoInfo getVideoInfo() {
return videoInfo_ == null ? com.streamlayer.social.TweetMediaVideoInfo.getDefaultInstance() : videoInfo_;
}
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
private void setVideoInfo(com.streamlayer.social.TweetMediaVideoInfo value) {
value.getClass();
videoInfo_ = value;
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeVideoInfo(com.streamlayer.social.TweetMediaVideoInfo value) {
value.getClass();
if (videoInfo_ != null &&
videoInfo_ != com.streamlayer.social.TweetMediaVideoInfo.getDefaultInstance()) {
videoInfo_ =
com.streamlayer.social.TweetMediaVideoInfo.newBuilder(videoInfo_).mergeFrom(value).buildPartial();
} else {
videoInfo_ = value;
}
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
private void clearVideoInfo() { videoInfo_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int ADDITIONAL_MEDIA_INFO_FIELD_NUMBER = 12;
private com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additionalMediaInfo_;
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
@java.lang.Override
public boolean hasAdditionalMediaInfo() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
@java.lang.Override
public com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo getAdditionalMediaInfo() {
return additionalMediaInfo_ == null ? com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo.getDefaultInstance() : additionalMediaInfo_;
}
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
private void setAdditionalMediaInfo(com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo value) {
value.getClass();
additionalMediaInfo_ = value;
bitField0_ |= 0x00000004;
}
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAdditionalMediaInfo(com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo value) {
value.getClass();
if (additionalMediaInfo_ != null &&
additionalMediaInfo_ != com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo.getDefaultInstance()) {
additionalMediaInfo_ =
com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo.newBuilder(additionalMediaInfo_).mergeFrom(value).buildPartial();
} else {
additionalMediaInfo_ = value;
}
bitField0_ |= 0x00000004;
}
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
private void clearAdditionalMediaInfo() { additionalMediaInfo_ = null;
bitField0_ = (bitField0_ & ~0x00000004);
}
public static com.streamlayer.social.TweetExtendedMedia parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetExtendedMedia parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.social.TweetExtendedMedia parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetExtendedMedia parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.social.TweetExtendedMedia parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetExtendedMedia parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.social.TweetExtendedMedia parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetExtendedMedia parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.social.TweetExtendedMedia parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetExtendedMedia parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.social.TweetExtendedMedia parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetExtendedMedia parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.streamlayer.social.TweetExtendedMedia prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/extended-entities-object
*
*
* Protobuf type {@code streamlayer.social.TweetExtendedMedia}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.social.TweetExtendedMedia, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.social.TweetExtendedMedia)
com.streamlayer.social.TweetExtendedMediaOrBuilder {
// Construct using com.streamlayer.social.TweetExtendedMedia.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* int64 id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public long getId() {
return instance.getId();
}
/**
* int64 id = 1 [json_name = "id"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
copyOnWrite();
instance.setId(value);
return this;
}
/**
* int64 id = 1 [json_name = "id"];
* @return This builder for chaining.
*/
public Builder clearId() {
copyOnWrite();
instance.clearId();
return this;
}
/**
* string id_str = 2 [json_name = "idStr"];
* @return The idStr.
*/
@java.lang.Override
public java.lang.String getIdStr() {
return instance.getIdStr();
}
/**
* string id_str = 2 [json_name = "idStr"];
* @return The bytes for idStr.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdStrBytes() {
return instance.getIdStrBytes();
}
/**
* string id_str = 2 [json_name = "idStr"];
* @param value The idStr to set.
* @return This builder for chaining.
*/
public Builder setIdStr(
java.lang.String value) {
copyOnWrite();
instance.setIdStr(value);
return this;
}
/**
* string id_str = 2 [json_name = "idStr"];
* @return This builder for chaining.
*/
public Builder clearIdStr() {
copyOnWrite();
instance.clearIdStr();
return this;
}
/**
* string id_str = 2 [json_name = "idStr"];
* @param value The bytes for idStr to set.
* @return This builder for chaining.
*/
public Builder setIdStrBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setIdStrBytes(value);
return this;
}
/**
* string type = 3 [json_name = "type"];
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
return instance.getType();
}
/**
* string type = 3 [json_name = "type"];
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
return instance.getTypeBytes();
}
/**
* string type = 3 [json_name = "type"];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
copyOnWrite();
instance.setType(value);
return this;
}
/**
* string type = 3 [json_name = "type"];
* @return This builder for chaining.
*/
public Builder clearType() {
copyOnWrite();
instance.clearType();
return this;
}
/**
* string type = 3 [json_name = "type"];
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTypeBytes(value);
return this;
}
/**
* string url = 4 [json_name = "url"];
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
return instance.getUrl();
}
/**
* string url = 4 [json_name = "url"];
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUrlBytes() {
return instance.getUrlBytes();
}
/**
* string url = 4 [json_name = "url"];
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(
java.lang.String value) {
copyOnWrite();
instance.setUrl(value);
return this;
}
/**
* string url = 4 [json_name = "url"];
* @return This builder for chaining.
*/
public Builder clearUrl() {
copyOnWrite();
instance.clearUrl();
return this;
}
/**
* string url = 4 [json_name = "url"];
* @param value The bytes for url to set.
* @return This builder for chaining.
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setUrlBytes(value);
return this;
}
/**
* string media_url = 5 [json_name = "mediaUrl"];
* @return The mediaUrl.
*/
@java.lang.Override
public java.lang.String getMediaUrl() {
return instance.getMediaUrl();
}
/**
* string media_url = 5 [json_name = "mediaUrl"];
* @return The bytes for mediaUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMediaUrlBytes() {
return instance.getMediaUrlBytes();
}
/**
* string media_url = 5 [json_name = "mediaUrl"];
* @param value The mediaUrl to set.
* @return This builder for chaining.
*/
public Builder setMediaUrl(
java.lang.String value) {
copyOnWrite();
instance.setMediaUrl(value);
return this;
}
/**
* string media_url = 5 [json_name = "mediaUrl"];
* @return This builder for chaining.
*/
public Builder clearMediaUrl() {
copyOnWrite();
instance.clearMediaUrl();
return this;
}
/**
* string media_url = 5 [json_name = "mediaUrl"];
* @param value The bytes for mediaUrl to set.
* @return This builder for chaining.
*/
public Builder setMediaUrlBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setMediaUrlBytes(value);
return this;
}
/**
* string display_url = 6 [json_name = "displayUrl"];
* @return The displayUrl.
*/
@java.lang.Override
public java.lang.String getDisplayUrl() {
return instance.getDisplayUrl();
}
/**
* string display_url = 6 [json_name = "displayUrl"];
* @return The bytes for displayUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDisplayUrlBytes() {
return instance.getDisplayUrlBytes();
}
/**
* string display_url = 6 [json_name = "displayUrl"];
* @param value The displayUrl to set.
* @return This builder for chaining.
*/
public Builder setDisplayUrl(
java.lang.String value) {
copyOnWrite();
instance.setDisplayUrl(value);
return this;
}
/**
* string display_url = 6 [json_name = "displayUrl"];
* @return This builder for chaining.
*/
public Builder clearDisplayUrl() {
copyOnWrite();
instance.clearDisplayUrl();
return this;
}
/**
* string display_url = 6 [json_name = "displayUrl"];
* @param value The bytes for displayUrl to set.
* @return This builder for chaining.
*/
public Builder setDisplayUrlBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDisplayUrlBytes(value);
return this;
}
/**
* string expanded_url = 7 [json_name = "expandedUrl"];
* @return The expandedUrl.
*/
@java.lang.Override
public java.lang.String getExpandedUrl() {
return instance.getExpandedUrl();
}
/**
* string expanded_url = 7 [json_name = "expandedUrl"];
* @return The bytes for expandedUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExpandedUrlBytes() {
return instance.getExpandedUrlBytes();
}
/**
* string expanded_url = 7 [json_name = "expandedUrl"];
* @param value The expandedUrl to set.
* @return This builder for chaining.
*/
public Builder setExpandedUrl(
java.lang.String value) {
copyOnWrite();
instance.setExpandedUrl(value);
return this;
}
/**
* string expanded_url = 7 [json_name = "expandedUrl"];
* @return This builder for chaining.
*/
public Builder clearExpandedUrl() {
copyOnWrite();
instance.clearExpandedUrl();
return this;
}
/**
* string expanded_url = 7 [json_name = "expandedUrl"];
* @param value The bytes for expandedUrl to set.
* @return This builder for chaining.
*/
public Builder setExpandedUrlBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setExpandedUrlBytes(value);
return this;
}
/**
* string media_url_https = 8 [json_name = "mediaUrlHttps"];
* @return The mediaUrlHttps.
*/
@java.lang.Override
public java.lang.String getMediaUrlHttps() {
return instance.getMediaUrlHttps();
}
/**
* string media_url_https = 8 [json_name = "mediaUrlHttps"];
* @return The bytes for mediaUrlHttps.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMediaUrlHttpsBytes() {
return instance.getMediaUrlHttpsBytes();
}
/**
* string media_url_https = 8 [json_name = "mediaUrlHttps"];
* @param value The mediaUrlHttps to set.
* @return This builder for chaining.
*/
public Builder setMediaUrlHttps(
java.lang.String value) {
copyOnWrite();
instance.setMediaUrlHttps(value);
return this;
}
/**
* string media_url_https = 8 [json_name = "mediaUrlHttps"];
* @return This builder for chaining.
*/
public Builder clearMediaUrlHttps() {
copyOnWrite();
instance.clearMediaUrlHttps();
return this;
}
/**
* string media_url_https = 8 [json_name = "mediaUrlHttps"];
* @param value The bytes for mediaUrlHttps to set.
* @return This builder for chaining.
*/
public Builder setMediaUrlHttpsBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setMediaUrlHttpsBytes(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
@java.lang.Override
public boolean hasSizes() {
return instance.hasSizes();
}
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaSizes getSizes() {
return instance.getSizes();
}
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
public Builder setSizes(com.streamlayer.social.TweetMediaSizes value) {
copyOnWrite();
instance.setSizes(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
public Builder setSizes(
com.streamlayer.social.TweetMediaSizes.Builder builderForValue) {
copyOnWrite();
instance.setSizes(builderForValue.build());
return this;
}
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
public Builder mergeSizes(com.streamlayer.social.TweetMediaSizes value) {
copyOnWrite();
instance.mergeSizes(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSizes sizes = 9 [json_name = "sizes"];
*/
public Builder clearSizes() { copyOnWrite();
instance.clearSizes();
return this;
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @return A list containing the indices.
*/
@java.lang.Override
public java.util.List
getIndicesList() {
return java.util.Collections.unmodifiableList(
instance.getIndicesList());
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @return The count of indices.
*/
@java.lang.Override
public int getIndicesCount() {
return instance.getIndicesCount();
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @param index The index of the element to return.
* @return The indices at the given index.
*/
@java.lang.Override
public int getIndices(int index) {
return instance.getIndices(index);
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @param value The indices to set.
* @return This builder for chaining.
*/
public Builder setIndices(
int index, int value) {
copyOnWrite();
instance.setIndices(index, value);
return this;
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @param value The indices to add.
* @return This builder for chaining.
*/
public Builder addIndices(int value) {
copyOnWrite();
instance.addIndices(value);
return this;
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @param values The indices to add.
* @return This builder for chaining.
*/
public Builder addAllIndices(
java.lang.Iterable extends java.lang.Integer> values) {
copyOnWrite();
instance.addAllIndices(values);
return this;
}
/**
* repeated int32 indices = 10 [json_name = "indices"];
* @return This builder for chaining.
*/
public Builder clearIndices() {
copyOnWrite();
instance.clearIndices();
return this;
}
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
@java.lang.Override
public boolean hasVideoInfo() {
return instance.hasVideoInfo();
}
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaVideoInfo getVideoInfo() {
return instance.getVideoInfo();
}
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
public Builder setVideoInfo(com.streamlayer.social.TweetMediaVideoInfo value) {
copyOnWrite();
instance.setVideoInfo(value);
return this;
}
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
public Builder setVideoInfo(
com.streamlayer.social.TweetMediaVideoInfo.Builder builderForValue) {
copyOnWrite();
instance.setVideoInfo(builderForValue.build());
return this;
}
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
public Builder mergeVideoInfo(com.streamlayer.social.TweetMediaVideoInfo value) {
copyOnWrite();
instance.mergeVideoInfo(value);
return this;
}
/**
* .streamlayer.social.TweetMediaVideoInfo video_info = 11 [json_name = "videoInfo"];
*/
public Builder clearVideoInfo() { copyOnWrite();
instance.clearVideoInfo();
return this;
}
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
@java.lang.Override
public boolean hasAdditionalMediaInfo() {
return instance.hasAdditionalMediaInfo();
}
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
@java.lang.Override
public com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo getAdditionalMediaInfo() {
return instance.getAdditionalMediaInfo();
}
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
public Builder setAdditionalMediaInfo(com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo value) {
copyOnWrite();
instance.setAdditionalMediaInfo(value);
return this;
}
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
public Builder setAdditionalMediaInfo(
com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo.Builder builderForValue) {
copyOnWrite();
instance.setAdditionalMediaInfo(builderForValue.build());
return this;
}
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
public Builder mergeAdditionalMediaInfo(com.streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo value) {
copyOnWrite();
instance.mergeAdditionalMediaInfo(value);
return this;
}
/**
* .streamlayer.social.TweetExtendedMedia.TweetAdditionalMediaInfo additional_media_info = 12 [json_name = "additionalMediaInfo"];
*/
public Builder clearAdditionalMediaInfo() { copyOnWrite();
instance.clearAdditionalMediaInfo();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.social.TweetExtendedMedia)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.streamlayer.social.TweetExtendedMedia();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"id_",
"idStr_",
"type_",
"url_",
"mediaUrl_",
"displayUrl_",
"expandedUrl_",
"mediaUrlHttps_",
"sizes_",
"indices_",
"videoInfo_",
"additionalMediaInfo_",
};
java.lang.String info =
"\u0000\f\u0000\u0001\u0001\f\f\u0000\u0001\u0000\u0001\u0002\u0002\u0208\u0003\u0208" +
"\u0004\u0208\u0005\u0208\u0006\u0208\u0007\u0208\b\u0208\t\u1009\u0000\n\'\u000b" +
"\u1009\u0001\f\u1009\u0002";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.streamlayer.social.TweetExtendedMedia.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:streamlayer.social.TweetExtendedMedia)
private static final com.streamlayer.social.TweetExtendedMedia DEFAULT_INSTANCE;
static {
TweetExtendedMedia defaultInstance = new TweetExtendedMedia();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TweetExtendedMedia.class, defaultInstance);
}
public static com.streamlayer.social.TweetExtendedMedia getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}