main.java.com.streamlayer.social.TweetMediaSize 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.TweetMediaSize}
*/
public final class TweetMediaSize extends
com.google.protobuf.GeneratedMessageLite<
TweetMediaSize, TweetMediaSize.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.social.TweetMediaSize)
TweetMediaSizeOrBuilder {
private TweetMediaSize() {
resize_ = "";
}
public static final int W_FIELD_NUMBER = 1;
private int w_;
/**
* int32 w = 1 [json_name = "w"];
* @return The w.
*/
@java.lang.Override
public int getW() {
return w_;
}
/**
* int32 w = 1 [json_name = "w"];
* @param value The w to set.
*/
private void setW(int value) {
w_ = value;
}
/**
* int32 w = 1 [json_name = "w"];
*/
private void clearW() {
w_ = 0;
}
public static final int H_FIELD_NUMBER = 2;
private int h_;
/**
* int32 h = 2 [json_name = "h"];
* @return The h.
*/
@java.lang.Override
public int getH() {
return h_;
}
/**
* int32 h = 2 [json_name = "h"];
* @param value The h to set.
*/
private void setH(int value) {
h_ = value;
}
/**
* int32 h = 2 [json_name = "h"];
*/
private void clearH() {
h_ = 0;
}
public static final int RESIZE_FIELD_NUMBER = 3;
private java.lang.String resize_;
/**
*
* Resizing method used to obtain this size.
* A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio.
* A value of crop means that the media was cropped in order to fit a specific resolution.
*
*
* string resize = 3 [json_name = "resize"];
* @return The resize.
*/
@java.lang.Override
public java.lang.String getResize() {
return resize_;
}
/**
*
* Resizing method used to obtain this size.
* A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio.
* A value of crop means that the media was cropped in order to fit a specific resolution.
*
*
* string resize = 3 [json_name = "resize"];
* @return The bytes for resize.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResizeBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(resize_);
}
/**
*
* Resizing method used to obtain this size.
* A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio.
* A value of crop means that the media was cropped in order to fit a specific resolution.
*
*
* string resize = 3 [json_name = "resize"];
* @param value The resize to set.
*/
private void setResize(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
resize_ = value;
}
/**
*
* Resizing method used to obtain this size.
* A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio.
* A value of crop means that the media was cropped in order to fit a specific resolution.
*
*
* string resize = 3 [json_name = "resize"];
*/
private void clearResize() {
resize_ = getDefaultInstance().getResize();
}
/**
*
* Resizing method used to obtain this size.
* A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio.
* A value of crop means that the media was cropped in order to fit a specific resolution.
*
*
* string resize = 3 [json_name = "resize"];
* @param value The bytes for resize to set.
*/
private void setResizeBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
resize_ = value.toStringUtf8();
}
public static com.streamlayer.social.TweetMediaSize parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetMediaSize 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.TweetMediaSize 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.TweetMediaSize 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.TweetMediaSize parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetMediaSize 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.TweetMediaSize parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaSize 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.TweetMediaSize parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaSize 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.TweetMediaSize parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetMediaSize 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.TweetMediaSize prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.social.TweetMediaSize}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.social.TweetMediaSize, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.social.TweetMediaSize)
com.streamlayer.social.TweetMediaSizeOrBuilder {
// Construct using com.streamlayer.social.TweetMediaSize.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* int32 w = 1 [json_name = "w"];
* @return The w.
*/
@java.lang.Override
public int getW() {
return instance.getW();
}
/**
* int32 w = 1 [json_name = "w"];
* @param value The w to set.
* @return This builder for chaining.
*/
public Builder setW(int value) {
copyOnWrite();
instance.setW(value);
return this;
}
/**
* int32 w = 1 [json_name = "w"];
* @return This builder for chaining.
*/
public Builder clearW() {
copyOnWrite();
instance.clearW();
return this;
}
/**
* int32 h = 2 [json_name = "h"];
* @return The h.
*/
@java.lang.Override
public int getH() {
return instance.getH();
}
/**
* int32 h = 2 [json_name = "h"];
* @param value The h to set.
* @return This builder for chaining.
*/
public Builder setH(int value) {
copyOnWrite();
instance.setH(value);
return this;
}
/**
* int32 h = 2 [json_name = "h"];
* @return This builder for chaining.
*/
public Builder clearH() {
copyOnWrite();
instance.clearH();
return this;
}
/**
*
* Resizing method used to obtain this size.
* A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio.
* A value of crop means that the media was cropped in order to fit a specific resolution.
*
*
* string resize = 3 [json_name = "resize"];
* @return The resize.
*/
@java.lang.Override
public java.lang.String getResize() {
return instance.getResize();
}
/**
*
* Resizing method used to obtain this size.
* A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio.
* A value of crop means that the media was cropped in order to fit a specific resolution.
*
*
* string resize = 3 [json_name = "resize"];
* @return The bytes for resize.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResizeBytes() {
return instance.getResizeBytes();
}
/**
*
* Resizing method used to obtain this size.
* A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio.
* A value of crop means that the media was cropped in order to fit a specific resolution.
*
*
* string resize = 3 [json_name = "resize"];
* @param value The resize to set.
* @return This builder for chaining.
*/
public Builder setResize(
java.lang.String value) {
copyOnWrite();
instance.setResize(value);
return this;
}
/**
*
* Resizing method used to obtain this size.
* A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio.
* A value of crop means that the media was cropped in order to fit a specific resolution.
*
*
* string resize = 3 [json_name = "resize"];
* @return This builder for chaining.
*/
public Builder clearResize() {
copyOnWrite();
instance.clearResize();
return this;
}
/**
*
* Resizing method used to obtain this size.
* A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio.
* A value of crop means that the media was cropped in order to fit a specific resolution.
*
*
* string resize = 3 [json_name = "resize"];
* @param value The bytes for resize to set.
* @return This builder for chaining.
*/
public Builder setResizeBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setResizeBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.social.TweetMediaSize)
}
@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.TweetMediaSize();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"w_",
"h_",
"resize_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0004\u0002\u0004" +
"\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.TweetMediaSize.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.TweetMediaSize)
private static final com.streamlayer.social.TweetMediaSize DEFAULT_INSTANCE;
static {
TweetMediaSize defaultInstance = new TweetMediaSize();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TweetMediaSize.class, defaultInstance);
}
public static com.streamlayer.social.TweetMediaSize getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}