main.java.com.streamlayer.social.TweetMediaSizes 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.TweetMediaSizes}
*/
public final class TweetMediaSizes extends
com.google.protobuf.GeneratedMessageLite<
TweetMediaSizes, TweetMediaSizes.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.social.TweetMediaSizes)
TweetMediaSizesOrBuilder {
private TweetMediaSizes() {
}
private int bitField0_;
public static final int THUMB_FIELD_NUMBER = 1;
private com.streamlayer.social.TweetMediaSize thumb_;
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
@java.lang.Override
public boolean hasThumb() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaSize getThumb() {
return thumb_ == null ? com.streamlayer.social.TweetMediaSize.getDefaultInstance() : thumb_;
}
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
private void setThumb(com.streamlayer.social.TweetMediaSize value) {
value.getClass();
thumb_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeThumb(com.streamlayer.social.TweetMediaSize value) {
value.getClass();
if (thumb_ != null &&
thumb_ != com.streamlayer.social.TweetMediaSize.getDefaultInstance()) {
thumb_ =
com.streamlayer.social.TweetMediaSize.newBuilder(thumb_).mergeFrom(value).buildPartial();
} else {
thumb_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
private void clearThumb() { thumb_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int LARGE_FIELD_NUMBER = 2;
private com.streamlayer.social.TweetMediaSize large_;
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
@java.lang.Override
public boolean hasLarge() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaSize getLarge() {
return large_ == null ? com.streamlayer.social.TweetMediaSize.getDefaultInstance() : large_;
}
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
private void setLarge(com.streamlayer.social.TweetMediaSize value) {
value.getClass();
large_ = value;
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeLarge(com.streamlayer.social.TweetMediaSize value) {
value.getClass();
if (large_ != null &&
large_ != com.streamlayer.social.TweetMediaSize.getDefaultInstance()) {
large_ =
com.streamlayer.social.TweetMediaSize.newBuilder(large_).mergeFrom(value).buildPartial();
} else {
large_ = value;
}
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
private void clearLarge() { large_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int MEDIUM_FIELD_NUMBER = 3;
private com.streamlayer.social.TweetMediaSize medium_;
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
@java.lang.Override
public boolean hasMedium() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaSize getMedium() {
return medium_ == null ? com.streamlayer.social.TweetMediaSize.getDefaultInstance() : medium_;
}
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
private void setMedium(com.streamlayer.social.TweetMediaSize value) {
value.getClass();
medium_ = value;
bitField0_ |= 0x00000004;
}
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeMedium(com.streamlayer.social.TweetMediaSize value) {
value.getClass();
if (medium_ != null &&
medium_ != com.streamlayer.social.TweetMediaSize.getDefaultInstance()) {
medium_ =
com.streamlayer.social.TweetMediaSize.newBuilder(medium_).mergeFrom(value).buildPartial();
} else {
medium_ = value;
}
bitField0_ |= 0x00000004;
}
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
private void clearMedium() { medium_ = null;
bitField0_ = (bitField0_ & ~0x00000004);
}
public static final int SMALL_FIELD_NUMBER = 4;
private com.streamlayer.social.TweetMediaSize small_;
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
@java.lang.Override
public boolean hasSmall() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaSize getSmall() {
return small_ == null ? com.streamlayer.social.TweetMediaSize.getDefaultInstance() : small_;
}
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
private void setSmall(com.streamlayer.social.TweetMediaSize value) {
value.getClass();
small_ = value;
bitField0_ |= 0x00000008;
}
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeSmall(com.streamlayer.social.TweetMediaSize value) {
value.getClass();
if (small_ != null &&
small_ != com.streamlayer.social.TweetMediaSize.getDefaultInstance()) {
small_ =
com.streamlayer.social.TweetMediaSize.newBuilder(small_).mergeFrom(value).buildPartial();
} else {
small_ = value;
}
bitField0_ |= 0x00000008;
}
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
private void clearSmall() { small_ = null;
bitField0_ = (bitField0_ & ~0x00000008);
}
public static com.streamlayer.social.TweetMediaSizes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetMediaSizes 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.TweetMediaSizes 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.TweetMediaSizes 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.TweetMediaSizes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetMediaSizes 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.TweetMediaSizes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaSizes 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.TweetMediaSizes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaSizes 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.TweetMediaSizes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaSizes 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.TweetMediaSizes prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.social.TweetMediaSizes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.social.TweetMediaSizes, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.social.TweetMediaSizes)
com.streamlayer.social.TweetMediaSizesOrBuilder {
// Construct using com.streamlayer.social.TweetMediaSizes.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
@java.lang.Override
public boolean hasThumb() {
return instance.hasThumb();
}
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaSize getThumb() {
return instance.getThumb();
}
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
public Builder setThumb(com.streamlayer.social.TweetMediaSize value) {
copyOnWrite();
instance.setThumb(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
public Builder setThumb(
com.streamlayer.social.TweetMediaSize.Builder builderForValue) {
copyOnWrite();
instance.setThumb(builderForValue.build());
return this;
}
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
public Builder mergeThumb(com.streamlayer.social.TweetMediaSize value) {
copyOnWrite();
instance.mergeThumb(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSize thumb = 1 [json_name = "thumb"];
*/
public Builder clearThumb() { copyOnWrite();
instance.clearThumb();
return this;
}
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
@java.lang.Override
public boolean hasLarge() {
return instance.hasLarge();
}
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaSize getLarge() {
return instance.getLarge();
}
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
public Builder setLarge(com.streamlayer.social.TweetMediaSize value) {
copyOnWrite();
instance.setLarge(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
public Builder setLarge(
com.streamlayer.social.TweetMediaSize.Builder builderForValue) {
copyOnWrite();
instance.setLarge(builderForValue.build());
return this;
}
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
public Builder mergeLarge(com.streamlayer.social.TweetMediaSize value) {
copyOnWrite();
instance.mergeLarge(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSize large = 2 [json_name = "large"];
*/
public Builder clearLarge() { copyOnWrite();
instance.clearLarge();
return this;
}
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
@java.lang.Override
public boolean hasMedium() {
return instance.hasMedium();
}
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaSize getMedium() {
return instance.getMedium();
}
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
public Builder setMedium(com.streamlayer.social.TweetMediaSize value) {
copyOnWrite();
instance.setMedium(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
public Builder setMedium(
com.streamlayer.social.TweetMediaSize.Builder builderForValue) {
copyOnWrite();
instance.setMedium(builderForValue.build());
return this;
}
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
public Builder mergeMedium(com.streamlayer.social.TweetMediaSize value) {
copyOnWrite();
instance.mergeMedium(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSize medium = 3 [json_name = "medium"];
*/
public Builder clearMedium() { copyOnWrite();
instance.clearMedium();
return this;
}
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
@java.lang.Override
public boolean hasSmall() {
return instance.hasSmall();
}
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
@java.lang.Override
public com.streamlayer.social.TweetMediaSize getSmall() {
return instance.getSmall();
}
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
public Builder setSmall(com.streamlayer.social.TweetMediaSize value) {
copyOnWrite();
instance.setSmall(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
public Builder setSmall(
com.streamlayer.social.TweetMediaSize.Builder builderForValue) {
copyOnWrite();
instance.setSmall(builderForValue.build());
return this;
}
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
public Builder mergeSmall(com.streamlayer.social.TweetMediaSize value) {
copyOnWrite();
instance.mergeSmall(value);
return this;
}
/**
* .streamlayer.social.TweetMediaSize small = 4 [json_name = "small"];
*/
public Builder clearSmall() { copyOnWrite();
instance.clearSmall();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.social.TweetMediaSizes)
}
@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.TweetMediaSizes();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"thumb_",
"large_",
"medium_",
"small_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
"\u1009\u0001\u0003\u1009\u0002\u0004\u1009\u0003";
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.TweetMediaSizes.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.TweetMediaSizes)
private static final com.streamlayer.social.TweetMediaSizes DEFAULT_INSTANCE;
static {
TweetMediaSizes defaultInstance = new TweetMediaSizes();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TweetMediaSizes.class, defaultInstance);
}
public static com.streamlayer.social.TweetMediaSizes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}