main.java.com.streamlayer.social.TweetPoll 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.TweetPoll}
*/
public final class TweetPoll extends
com.google.protobuf.GeneratedMessageLite<
TweetPoll, TweetPoll.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.social.TweetPoll)
TweetPollOrBuilder {
private TweetPoll() {
durationMinutes_ = "";
endDatetime_ = "";
options_ = emptyProtobufList();
}
public interface TweetPollOptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:streamlayer.social.TweetPoll.TweetPollOption)
com.google.protobuf.MessageLiteOrBuilder {
/**
* int32 position = 1 [json_name = "position"];
* @return The position.
*/
int getPosition();
/**
* string text = 2 [json_name = "text"];
* @return The text.
*/
java.lang.String getText();
/**
* string text = 2 [json_name = "text"];
* @return The bytes for text.
*/
com.google.protobuf.ByteString
getTextBytes();
}
/**
* Protobuf type {@code streamlayer.social.TweetPoll.TweetPollOption}
*/
public static final class TweetPollOption extends
com.google.protobuf.GeneratedMessageLite<
TweetPollOption, TweetPollOption.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.social.TweetPoll.TweetPollOption)
TweetPollOptionOrBuilder {
private TweetPollOption() {
text_ = "";
}
public static final int POSITION_FIELD_NUMBER = 1;
private int position_;
/**
* int32 position = 1 [json_name = "position"];
* @return The position.
*/
@java.lang.Override
public int getPosition() {
return position_;
}
/**
* int32 position = 1 [json_name = "position"];
* @param value The position to set.
*/
private void setPosition(int value) {
position_ = value;
}
/**
* int32 position = 1 [json_name = "position"];
*/
private void clearPosition() {
position_ = 0;
}
public static final int TEXT_FIELD_NUMBER = 2;
private java.lang.String text_;
/**
* string text = 2 [json_name = "text"];
* @return The text.
*/
@java.lang.Override
public java.lang.String getText() {
return text_;
}
/**
* string text = 2 [json_name = "text"];
* @return The bytes for text.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(text_);
}
/**
* string text = 2 [json_name = "text"];
* @param value The text to set.
*/
private void setText(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
text_ = value;
}
/**
* string text = 2 [json_name = "text"];
*/
private void clearText() {
text_ = getDefaultInstance().getText();
}
/**
* string text = 2 [json_name = "text"];
* @param value The bytes for text to set.
*/
private void setTextBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
text_ = value.toStringUtf8();
}
public static com.streamlayer.social.TweetPoll.TweetPollOption parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetPoll.TweetPollOption 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.TweetPoll.TweetPollOption 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.TweetPoll.TweetPollOption 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.TweetPoll.TweetPollOption parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetPoll.TweetPollOption 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.TweetPoll.TweetPollOption parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetPoll.TweetPollOption 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.TweetPoll.TweetPollOption parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetPoll.TweetPollOption 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.TweetPoll.TweetPollOption parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetPoll.TweetPollOption 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.TweetPoll.TweetPollOption prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.social.TweetPoll.TweetPollOption}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.social.TweetPoll.TweetPollOption, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.social.TweetPoll.TweetPollOption)
com.streamlayer.social.TweetPoll.TweetPollOptionOrBuilder {
// Construct using com.streamlayer.social.TweetPoll.TweetPollOption.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* int32 position = 1 [json_name = "position"];
* @return The position.
*/
@java.lang.Override
public int getPosition() {
return instance.getPosition();
}
/**
* int32 position = 1 [json_name = "position"];
* @param value The position to set.
* @return This builder for chaining.
*/
public Builder setPosition(int value) {
copyOnWrite();
instance.setPosition(value);
return this;
}
/**
* int32 position = 1 [json_name = "position"];
* @return This builder for chaining.
*/
public Builder clearPosition() {
copyOnWrite();
instance.clearPosition();
return this;
}
/**
* string text = 2 [json_name = "text"];
* @return The text.
*/
@java.lang.Override
public java.lang.String getText() {
return instance.getText();
}
/**
* string text = 2 [json_name = "text"];
* @return The bytes for text.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextBytes() {
return instance.getTextBytes();
}
/**
* string text = 2 [json_name = "text"];
* @param value The text to set.
* @return This builder for chaining.
*/
public Builder setText(
java.lang.String value) {
copyOnWrite();
instance.setText(value);
return this;
}
/**
* string text = 2 [json_name = "text"];
* @return This builder for chaining.
*/
public Builder clearText() {
copyOnWrite();
instance.clearText();
return this;
}
/**
* string text = 2 [json_name = "text"];
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTextBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.social.TweetPoll.TweetPollOption)
}
@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.TweetPoll.TweetPollOption();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"position_",
"text_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0004\u0002\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.TweetPoll.TweetPollOption.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.TweetPoll.TweetPollOption)
private static final com.streamlayer.social.TweetPoll.TweetPollOption DEFAULT_INSTANCE;
static {
TweetPollOption defaultInstance = new TweetPollOption();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TweetPollOption.class, defaultInstance);
}
public static com.streamlayer.social.TweetPoll.TweetPollOption 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 DURATION_MINUTES_FIELD_NUMBER = 1;
private java.lang.String durationMinutes_;
/**
* string duration_minutes = 1 [json_name = "durationMinutes"];
* @return The durationMinutes.
*/
@java.lang.Override
public java.lang.String getDurationMinutes() {
return durationMinutes_;
}
/**
* string duration_minutes = 1 [json_name = "durationMinutes"];
* @return The bytes for durationMinutes.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDurationMinutesBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(durationMinutes_);
}
/**
* string duration_minutes = 1 [json_name = "durationMinutes"];
* @param value The durationMinutes to set.
*/
private void setDurationMinutes(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
durationMinutes_ = value;
}
/**
* string duration_minutes = 1 [json_name = "durationMinutes"];
*/
private void clearDurationMinutes() {
durationMinutes_ = getDefaultInstance().getDurationMinutes();
}
/**
* string duration_minutes = 1 [json_name = "durationMinutes"];
* @param value The bytes for durationMinutes to set.
*/
private void setDurationMinutesBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
durationMinutes_ = value.toStringUtf8();
}
public static final int END_DATETIME_FIELD_NUMBER = 2;
private java.lang.String endDatetime_;
/**
* string end_datetime = 2 [json_name = "endDatetime"];
* @return The endDatetime.
*/
@java.lang.Override
public java.lang.String getEndDatetime() {
return endDatetime_;
}
/**
* string end_datetime = 2 [json_name = "endDatetime"];
* @return The bytes for endDatetime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndDatetimeBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(endDatetime_);
}
/**
* string end_datetime = 2 [json_name = "endDatetime"];
* @param value The endDatetime to set.
*/
private void setEndDatetime(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
endDatetime_ = value;
}
/**
* string end_datetime = 2 [json_name = "endDatetime"];
*/
private void clearEndDatetime() {
endDatetime_ = getDefaultInstance().getEndDatetime();
}
/**
* string end_datetime = 2 [json_name = "endDatetime"];
* @param value The bytes for endDatetime to set.
*/
private void setEndDatetimeBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
endDatetime_ = value.toStringUtf8();
}
public static final int OPTIONS_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.ProtobufList options_;
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
@java.lang.Override
public java.util.List getOptionsList() {
return options_;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public java.util.List extends com.streamlayer.social.TweetPoll.TweetPollOptionOrBuilder>
getOptionsOrBuilderList() {
return options_;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
@java.lang.Override
public int getOptionsCount() {
return options_.size();
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
@java.lang.Override
public com.streamlayer.social.TweetPoll.TweetPollOption getOptions(int index) {
return options_.get(index);
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public com.streamlayer.social.TweetPoll.TweetPollOptionOrBuilder getOptionsOrBuilder(
int index) {
return options_.get(index);
}
private void ensureOptionsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = options_;
if (!tmp.isModifiable()) {
options_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
private void setOptions(
int index, com.streamlayer.social.TweetPoll.TweetPollOption value) {
value.getClass();
ensureOptionsIsMutable();
options_.set(index, value);
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
private void addOptions(com.streamlayer.social.TweetPoll.TweetPollOption value) {
value.getClass();
ensureOptionsIsMutable();
options_.add(value);
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
private void addOptions(
int index, com.streamlayer.social.TweetPoll.TweetPollOption value) {
value.getClass();
ensureOptionsIsMutable();
options_.add(index, value);
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
private void addAllOptions(
java.lang.Iterable extends com.streamlayer.social.TweetPoll.TweetPollOption> values) {
ensureOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, options_);
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
private void clearOptions() {
options_ = emptyProtobufList();
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
private void removeOptions(int index) {
ensureOptionsIsMutable();
options_.remove(index);
}
public static com.streamlayer.social.TweetPoll parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetPoll 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.TweetPoll 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.TweetPoll 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.TweetPoll parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.social.TweetPoll 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.TweetPoll parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetPoll 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.TweetPoll parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetPoll 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.TweetPoll parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.social.TweetPoll 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.TweetPoll prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.social.TweetPoll}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.social.TweetPoll, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.social.TweetPoll)
com.streamlayer.social.TweetPollOrBuilder {
// Construct using com.streamlayer.social.TweetPoll.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string duration_minutes = 1 [json_name = "durationMinutes"];
* @return The durationMinutes.
*/
@java.lang.Override
public java.lang.String getDurationMinutes() {
return instance.getDurationMinutes();
}
/**
* string duration_minutes = 1 [json_name = "durationMinutes"];
* @return The bytes for durationMinutes.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDurationMinutesBytes() {
return instance.getDurationMinutesBytes();
}
/**
* string duration_minutes = 1 [json_name = "durationMinutes"];
* @param value The durationMinutes to set.
* @return This builder for chaining.
*/
public Builder setDurationMinutes(
java.lang.String value) {
copyOnWrite();
instance.setDurationMinutes(value);
return this;
}
/**
* string duration_minutes = 1 [json_name = "durationMinutes"];
* @return This builder for chaining.
*/
public Builder clearDurationMinutes() {
copyOnWrite();
instance.clearDurationMinutes();
return this;
}
/**
* string duration_minutes = 1 [json_name = "durationMinutes"];
* @param value The bytes for durationMinutes to set.
* @return This builder for chaining.
*/
public Builder setDurationMinutesBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDurationMinutesBytes(value);
return this;
}
/**
* string end_datetime = 2 [json_name = "endDatetime"];
* @return The endDatetime.
*/
@java.lang.Override
public java.lang.String getEndDatetime() {
return instance.getEndDatetime();
}
/**
* string end_datetime = 2 [json_name = "endDatetime"];
* @return The bytes for endDatetime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndDatetimeBytes() {
return instance.getEndDatetimeBytes();
}
/**
* string end_datetime = 2 [json_name = "endDatetime"];
* @param value The endDatetime to set.
* @return This builder for chaining.
*/
public Builder setEndDatetime(
java.lang.String value) {
copyOnWrite();
instance.setEndDatetime(value);
return this;
}
/**
* string end_datetime = 2 [json_name = "endDatetime"];
* @return This builder for chaining.
*/
public Builder clearEndDatetime() {
copyOnWrite();
instance.clearEndDatetime();
return this;
}
/**
* string end_datetime = 2 [json_name = "endDatetime"];
* @param value The bytes for endDatetime to set.
* @return This builder for chaining.
*/
public Builder setEndDatetimeBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setEndDatetimeBytes(value);
return this;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
@java.lang.Override
public java.util.List getOptionsList() {
return java.util.Collections.unmodifiableList(
instance.getOptionsList());
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
@java.lang.Override
public int getOptionsCount() {
return instance.getOptionsCount();
}/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
@java.lang.Override
public com.streamlayer.social.TweetPoll.TweetPollOption getOptions(int index) {
return instance.getOptions(index);
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public Builder setOptions(
int index, com.streamlayer.social.TweetPoll.TweetPollOption value) {
copyOnWrite();
instance.setOptions(index, value);
return this;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public Builder setOptions(
int index, com.streamlayer.social.TweetPoll.TweetPollOption.Builder builderForValue) {
copyOnWrite();
instance.setOptions(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public Builder addOptions(com.streamlayer.social.TweetPoll.TweetPollOption value) {
copyOnWrite();
instance.addOptions(value);
return this;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public Builder addOptions(
int index, com.streamlayer.social.TweetPoll.TweetPollOption value) {
copyOnWrite();
instance.addOptions(index, value);
return this;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public Builder addOptions(
com.streamlayer.social.TweetPoll.TweetPollOption.Builder builderForValue) {
copyOnWrite();
instance.addOptions(builderForValue.build());
return this;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public Builder addOptions(
int index, com.streamlayer.social.TweetPoll.TweetPollOption.Builder builderForValue) {
copyOnWrite();
instance.addOptions(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public Builder addAllOptions(
java.lang.Iterable extends com.streamlayer.social.TweetPoll.TweetPollOption> values) {
copyOnWrite();
instance.addAllOptions(values);
return this;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public Builder clearOptions() {
copyOnWrite();
instance.clearOptions();
return this;
}
/**
* repeated .streamlayer.social.TweetPoll.TweetPollOption options = 3 [json_name = "options"];
*/
public Builder removeOptions(int index) {
copyOnWrite();
instance.removeOptions(index);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.social.TweetPoll)
}
@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.TweetPoll();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"durationMinutes_",
"endDatetime_",
"options_",
com.streamlayer.social.TweetPoll.TweetPollOption.class,
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0001\u0000\u0001\u0208\u0002\u0208" +
"\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.TweetPoll.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.TweetPoll)
private static final com.streamlayer.social.TweetPoll DEFAULT_INSTANCE;
static {
TweetPoll defaultInstance = new TweetPoll();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TweetPoll.class, defaultInstance);
}
public static com.streamlayer.social.TweetPoll getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}