main.java.com.streamlayer.social.TweetMediaVideoInfo 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;
/**
* Protobuf type {@code streamlayer.social.TweetMediaVideoInfo}
*/
public final class TweetMediaVideoInfo extends
com.google.protobuf.GeneratedMessageLite<
TweetMediaVideoInfo, TweetMediaVideoInfo.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.social.TweetMediaVideoInfo)
TweetMediaVideoInfoOrBuilder {
private TweetMediaVideoInfo() {
aspectRatio_ = emptyIntList();
variants_ = emptyProtobufList();
}
public interface TweetVideoVariantsOrBuilder extends
// @@protoc_insertion_point(interface_extends:streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants)
com.google.protobuf.MessageLiteOrBuilder {
/**
* int32 bitrate = 1 [json_name = "bitrate"];
* @return The bitrate.
*/
int getBitrate();
/**
* string content_type = 2 [json_name = "contentType"];
* @return The contentType.
*/
java.lang.String getContentType();
/**
* string content_type = 2 [json_name = "contentType"];
* @return The bytes for contentType.
*/
com.google.protobuf.ByteString
getContentTypeBytes();
/**
* string url = 3 [json_name = "url"];
* @return The url.
*/
java.lang.String getUrl();
/**
* string url = 3 [json_name = "url"];
* @return The bytes for url.
*/
com.google.protobuf.ByteString
getUrlBytes();
}
/**
* Protobuf type {@code streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants}
*/
public static final class TweetVideoVariants extends
com.google.protobuf.GeneratedMessageLite<
TweetVideoVariants, TweetVideoVariants.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants)
TweetVideoVariantsOrBuilder {
private TweetVideoVariants() {
contentType_ = "";
url_ = "";
}
public static final int BITRATE_FIELD_NUMBER = 1;
private int bitrate_;
/**
* int32 bitrate = 1 [json_name = "bitrate"];
* @return The bitrate.
*/
@java.lang.Override
public int getBitrate() {
return bitrate_;
}
/**
* int32 bitrate = 1 [json_name = "bitrate"];
* @param value The bitrate to set.
*/
private void setBitrate(int value) {
bitrate_ = value;
}
/**
* int32 bitrate = 1 [json_name = "bitrate"];
*/
private void clearBitrate() {
bitrate_ = 0;
}
public static final int CONTENT_TYPE_FIELD_NUMBER = 2;
private java.lang.String contentType_;
/**
* string content_type = 2 [json_name = "contentType"];
* @return The contentType.
*/
@java.lang.Override
public java.lang.String getContentType() {
return contentType_;
}
/**
* string content_type = 2 [json_name = "contentType"];
* @return The bytes for contentType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContentTypeBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(contentType_);
}
/**
* string content_type = 2 [json_name = "contentType"];
* @param value The contentType to set.
*/
private void setContentType(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
contentType_ = value;
}
/**
* string content_type = 2 [json_name = "contentType"];
*/
private void clearContentType() {
contentType_ = getDefaultInstance().getContentType();
}
/**
* string content_type = 2 [json_name = "contentType"];
* @param value The bytes for contentType to set.
*/
private void setContentTypeBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
contentType_ = value.toStringUtf8();
}
public static final int URL_FIELD_NUMBER = 3;
private java.lang.String url_;
/**
* string url = 3 [json_name = "url"];
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
return url_;
}
/**
* string url = 3 [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 = 3 [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 = 3 [json_name = "url"];
*/
private void clearUrl() {
url_ = getDefaultInstance().getUrl();
}
/**
* string url = 3 [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 com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants 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.TweetMediaVideoInfo.TweetVideoVariants 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.TweetMediaVideoInfo.TweetVideoVariants 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.TweetMediaVideoInfo.TweetVideoVariants parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants 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.TweetMediaVideoInfo.TweetVideoVariants parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants 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.TweetMediaVideoInfo.TweetVideoVariants parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants 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.TweetMediaVideoInfo.TweetVideoVariants parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants 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.TweetMediaVideoInfo.TweetVideoVariants prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants)
com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariantsOrBuilder {
// Construct using com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* int32 bitrate = 1 [json_name = "bitrate"];
* @return The bitrate.
*/
@java.lang.Override
public int getBitrate() {
return instance.getBitrate();
}
/**
* int32 bitrate = 1 [json_name = "bitrate"];
* @param value The bitrate to set.
* @return This builder for chaining.
*/
public Builder setBitrate(int value) {
copyOnWrite();
instance.setBitrate(value);
return this;
}
/**
* int32 bitrate = 1 [json_name = "bitrate"];
* @return This builder for chaining.
*/
public Builder clearBitrate() {
copyOnWrite();
instance.clearBitrate();
return this;
}
/**
* string content_type = 2 [json_name = "contentType"];
* @return The contentType.
*/
@java.lang.Override
public java.lang.String getContentType() {
return instance.getContentType();
}
/**
* string content_type = 2 [json_name = "contentType"];
* @return The bytes for contentType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContentTypeBytes() {
return instance.getContentTypeBytes();
}
/**
* string content_type = 2 [json_name = "contentType"];
* @param value The contentType to set.
* @return This builder for chaining.
*/
public Builder setContentType(
java.lang.String value) {
copyOnWrite();
instance.setContentType(value);
return this;
}
/**
* string content_type = 2 [json_name = "contentType"];
* @return This builder for chaining.
*/
public Builder clearContentType() {
copyOnWrite();
instance.clearContentType();
return this;
}
/**
* string content_type = 2 [json_name = "contentType"];
* @param value The bytes for contentType to set.
* @return This builder for chaining.
*/
public Builder setContentTypeBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setContentTypeBytes(value);
return this;
}
/**
* string url = 3 [json_name = "url"];
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
return instance.getUrl();
}
/**
* string url = 3 [json_name = "url"];
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUrlBytes() {
return instance.getUrlBytes();
}
/**
* string url = 3 [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 = 3 [json_name = "url"];
* @return This builder for chaining.
*/
public Builder clearUrl() {
copyOnWrite();
instance.clearUrl();
return this;
}
/**
* string url = 3 [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;
}
// @@protoc_insertion_point(builder_scope:streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants)
}
@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.TweetMediaVideoInfo.TweetVideoVariants();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitrate_",
"contentType_",
"url_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0004\u0002\u0208" +
"\u0003\u0208";
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.TweetMediaVideoInfo.TweetVideoVariants.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.TweetMediaVideoInfo.TweetVideoVariants)
private static final com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants DEFAULT_INSTANCE;
static {
TweetVideoVariants defaultInstance = new TweetVideoVariants();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TweetVideoVariants.class, defaultInstance);
}
public static com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
public static final int ASPECT_RATIO_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.IntList aspectRatio_;
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @return A list containing the aspectRatio.
*/
@java.lang.Override
public java.util.List
getAspectRatioList() {
return aspectRatio_;
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @return The count of aspectRatio.
*/
@java.lang.Override
public int getAspectRatioCount() {
return aspectRatio_.size();
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @param index The index of the element to return.
* @return The aspectRatio at the given index.
*/
@java.lang.Override
public int getAspectRatio(int index) {
return aspectRatio_.getInt(index);
}
private int aspectRatioMemoizedSerializedSize = -1;
private void ensureAspectRatioIsMutable() {
com.google.protobuf.Internal.IntList tmp = aspectRatio_;
if (!tmp.isModifiable()) {
aspectRatio_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @param index The index to set the value at.
* @param value The aspectRatio to set.
*/
private void setAspectRatio(
int index, int value) {
ensureAspectRatioIsMutable();
aspectRatio_.setInt(index, value);
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @param value The aspectRatio to add.
*/
private void addAspectRatio(int value) {
ensureAspectRatioIsMutable();
aspectRatio_.addInt(value);
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @param values The aspectRatio to add.
*/
private void addAllAspectRatio(
java.lang.Iterable extends java.lang.Integer> values) {
ensureAspectRatioIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, aspectRatio_);
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
*/
private void clearAspectRatio() {
aspectRatio_ = emptyIntList();
}
public static final int DURATION_MILLIS_FIELD_NUMBER = 2;
private int durationMillis_;
/**
* int32 duration_millis = 2 [json_name = "durationMillis"];
* @return The durationMillis.
*/
@java.lang.Override
public int getDurationMillis() {
return durationMillis_;
}
/**
* int32 duration_millis = 2 [json_name = "durationMillis"];
* @param value The durationMillis to set.
*/
private void setDurationMillis(int value) {
durationMillis_ = value;
}
/**
* int32 duration_millis = 2 [json_name = "durationMillis"];
*/
private void clearDurationMillis() {
durationMillis_ = 0;
}
public static final int VARIANTS_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.ProtobufList variants_;
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
@java.lang.Override
public java.util.List getVariantsList() {
return variants_;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public java.util.List extends com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariantsOrBuilder>
getVariantsOrBuilderList() {
return variants_;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
@java.lang.Override
public int getVariantsCount() {
return variants_.size();
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants getVariants(int index) {
return variants_.get(index);
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariantsOrBuilder getVariantsOrBuilder(
int index) {
return variants_.get(index);
}
private void ensureVariantsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = variants_;
if (!tmp.isModifiable()) {
variants_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
private void setVariants(
int index, com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants value) {
value.getClass();
ensureVariantsIsMutable();
variants_.set(index, value);
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
private void addVariants(com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants value) {
value.getClass();
ensureVariantsIsMutable();
variants_.add(value);
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
private void addVariants(
int index, com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants value) {
value.getClass();
ensureVariantsIsMutable();
variants_.add(index, value);
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
private void addAllVariants(
java.lang.Iterable extends com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants> values) {
ensureVariantsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, variants_);
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
private void clearVariants() {
variants_ = emptyProtobufList();
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
private void removeVariants(int index) {
ensureVariantsIsMutable();
variants_.remove(index);
}
public static com.streamlayer.social.TweetMediaVideoInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetMediaVideoInfo 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.TweetMediaVideoInfo 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.TweetMediaVideoInfo 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.TweetMediaVideoInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetMediaVideoInfo 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.TweetMediaVideoInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaVideoInfo 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.TweetMediaVideoInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaVideoInfo 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.TweetMediaVideoInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaVideoInfo 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.TweetMediaVideoInfo prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.social.TweetMediaVideoInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.social.TweetMediaVideoInfo, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.social.TweetMediaVideoInfo)
com.streamlayer.social.TweetMediaVideoInfoOrBuilder {
// Construct using com.streamlayer.social.TweetMediaVideoInfo.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @return A list containing the aspectRatio.
*/
@java.lang.Override
public java.util.List
getAspectRatioList() {
return java.util.Collections.unmodifiableList(
instance.getAspectRatioList());
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @return The count of aspectRatio.
*/
@java.lang.Override
public int getAspectRatioCount() {
return instance.getAspectRatioCount();
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @param index The index of the element to return.
* @return The aspectRatio at the given index.
*/
@java.lang.Override
public int getAspectRatio(int index) {
return instance.getAspectRatio(index);
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @param value The aspectRatio to set.
* @return This builder for chaining.
*/
public Builder setAspectRatio(
int index, int value) {
copyOnWrite();
instance.setAspectRatio(index, value);
return this;
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @param value The aspectRatio to add.
* @return This builder for chaining.
*/
public Builder addAspectRatio(int value) {
copyOnWrite();
instance.addAspectRatio(value);
return this;
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @param values The aspectRatio to add.
* @return This builder for chaining.
*/
public Builder addAllAspectRatio(
java.lang.Iterable extends java.lang.Integer> values) {
copyOnWrite();
instance.addAllAspectRatio(values);
return this;
}
/**
* repeated int32 aspect_ratio = 1 [json_name = "aspectRatio"];
* @return This builder for chaining.
*/
public Builder clearAspectRatio() {
copyOnWrite();
instance.clearAspectRatio();
return this;
}
/**
* int32 duration_millis = 2 [json_name = "durationMillis"];
* @return The durationMillis.
*/
@java.lang.Override
public int getDurationMillis() {
return instance.getDurationMillis();
}
/**
* int32 duration_millis = 2 [json_name = "durationMillis"];
* @param value The durationMillis to set.
* @return This builder for chaining.
*/
public Builder setDurationMillis(int value) {
copyOnWrite();
instance.setDurationMillis(value);
return this;
}
/**
* int32 duration_millis = 2 [json_name = "durationMillis"];
* @return This builder for chaining.
*/
public Builder clearDurationMillis() {
copyOnWrite();
instance.clearDurationMillis();
return this;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
@java.lang.Override
public java.util.List getVariantsList() {
return java.util.Collections.unmodifiableList(
instance.getVariantsList());
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
@java.lang.Override
public int getVariantsCount() {
return instance.getVariantsCount();
}/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants getVariants(int index) {
return instance.getVariants(index);
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public Builder setVariants(
int index, com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants value) {
copyOnWrite();
instance.setVariants(index, value);
return this;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public Builder setVariants(
int index, com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants.Builder builderForValue) {
copyOnWrite();
instance.setVariants(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public Builder addVariants(com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants value) {
copyOnWrite();
instance.addVariants(value);
return this;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public Builder addVariants(
int index, com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants value) {
copyOnWrite();
instance.addVariants(index, value);
return this;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public Builder addVariants(
com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants.Builder builderForValue) {
copyOnWrite();
instance.addVariants(builderForValue.build());
return this;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public Builder addVariants(
int index, com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants.Builder builderForValue) {
copyOnWrite();
instance.addVariants(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public Builder addAllVariants(
java.lang.Iterable extends com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants> values) {
copyOnWrite();
instance.addAllVariants(values);
return this;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public Builder clearVariants() {
copyOnWrite();
instance.clearVariants();
return this;
}
/**
* repeated .streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants variants = 3 [json_name = "variants"];
*/
public Builder removeVariants(int index) {
copyOnWrite();
instance.removeVariants(index);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.social.TweetMediaVideoInfo)
}
@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.TweetMediaVideoInfo();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"aspectRatio_",
"durationMillis_",
"variants_",
com.streamlayer.social.TweetMediaVideoInfo.TweetVideoVariants.class,
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0002\u0000\u0001\'\u0002\u0004" +
"\u0003\u001b";
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.TweetMediaVideoInfo.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.TweetMediaVideoInfo)
private static final com.streamlayer.social.TweetMediaVideoInfo DEFAULT_INSTANCE;
static {
TweetMediaVideoInfo defaultInstance = new TweetMediaVideoInfo();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TweetMediaVideoInfo.class, defaultInstance);
}
public static com.streamlayer.social.TweetMediaVideoInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}