Class ExtendedQuestion.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<ExtendedQuestion,ExtendedQuestion.Builder>
-
- com.streamlayer.interactive.common.ExtendedQuestion.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,ExtendedQuestionOrBuilder,java.lang.Cloneable
- Enclosing class:
- ExtendedQuestion
public static final class ExtendedQuestion.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ExtendedQuestion,ExtendedQuestion.Builder> implements ExtendedQuestionOrBuilder
Protobuf typestreamlayer.interactive.ExtendedQuestion
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendedQuestion.BuilderaddAllAnswers(java.lang.Iterable<? extends ExtendedQuestionAnswer> values)repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;ExtendedQuestion.BuilderaddAnswers(int index, ExtendedQuestionAnswer value)repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;ExtendedQuestion.BuilderaddAnswers(int index, ExtendedQuestionAnswer.Builder builderForValue)repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;ExtendedQuestion.BuilderaddAnswers(ExtendedQuestionAnswer value)repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;ExtendedQuestion.BuilderaddAnswers(ExtendedQuestionAnswer.Builder builderForValue)repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;ExtendedQuestion.BuilderclearActivatedAt()string activated_at = 12;ExtendedQuestion.BuilderclearAnswers()repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;ExtendedQuestion.BuilderclearAnswerSetAt()string answer_set_at = 13;ExtendedQuestion.BuilderclearAppearance().streamlayer.interactive.QuestionAppearance appearance = 5;ExtendedQuestion.BuilderclearEventId()string event_id = 14;ExtendedQuestion.BuilderclearId()string id = 1;ExtendedQuestion.BuilderclearMarketClosed()bool market_closed = 11;ExtendedQuestion.BuilderclearNotification().streamlayer.interactive.QuestionNotification notification = 7;ExtendedQuestion.BuilderclearOptions().streamlayer.interactive.QuestionOptions options = 4;ExtendedQuestion.BuilderclearPosition()uint32 position = 10;ExtendedQuestion.BuilderclearSponsorship().streamlayer.interactive.Sponsorship sponsorship = 6;ExtendedQuestion.BuilderclearStatus().streamlayer.interactive.QuestionStatus status = 9;ExtendedQuestion.BuilderclearSubject()string subject = 3;ExtendedQuestion.BuilderclearType().streamlayer.interactive.QuestionType type = 2;java.lang.StringgetActivatedAt()string activated_at = 12;com.google.protobuf.ByteStringgetActivatedAtBytes()string activated_at = 12;ExtendedQuestionAnswergetAnswers(int index)repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;intgetAnswersCount()repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;java.lang.StringgetAnswerSetAt()string answer_set_at = 13;com.google.protobuf.ByteStringgetAnswerSetAtBytes()string answer_set_at = 13;java.util.List<ExtendedQuestionAnswer>getAnswersList()repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;QuestionAppearancegetAppearance().streamlayer.interactive.QuestionAppearance appearance = 5;java.lang.StringgetEventId()string event_id = 14;com.google.protobuf.ByteStringgetEventIdBytes()string event_id = 14;java.lang.StringgetId()string id = 1;com.google.protobuf.ByteStringgetIdBytes()string id = 1;booleangetMarketClosed()bool market_closed = 11;QuestionNotificationgetNotification().streamlayer.interactive.QuestionNotification notification = 7;QuestionOptionsgetOptions().streamlayer.interactive.QuestionOptions options = 4;intgetPosition()uint32 position = 10;SponsorshipgetSponsorship().streamlayer.interactive.Sponsorship sponsorship = 6;QuestionStatusgetStatus().streamlayer.interactive.QuestionStatus status = 9;intgetStatusValue().streamlayer.interactive.QuestionStatus status = 9;java.lang.StringgetSubject()string subject = 3;com.google.protobuf.ByteStringgetSubjectBytes()string subject = 3;QuestionTypegetType().streamlayer.interactive.QuestionType type = 2;intgetTypeValue().streamlayer.interactive.QuestionType type = 2;booleanhasAppearance().streamlayer.interactive.QuestionAppearance appearance = 5;booleanhasNotification().streamlayer.interactive.QuestionNotification notification = 7;booleanhasOptions().streamlayer.interactive.QuestionOptions options = 4;booleanhasSponsorship().streamlayer.interactive.Sponsorship sponsorship = 6;ExtendedQuestion.BuildermergeAppearance(QuestionAppearance value).streamlayer.interactive.QuestionAppearance appearance = 5;ExtendedQuestion.BuildermergeNotification(QuestionNotification value).streamlayer.interactive.QuestionNotification notification = 7;ExtendedQuestion.BuildermergeOptions(QuestionOptions value).streamlayer.interactive.QuestionOptions options = 4;ExtendedQuestion.BuildermergeSponsorship(Sponsorship value).streamlayer.interactive.Sponsorship sponsorship = 6;ExtendedQuestion.BuilderremoveAnswers(int index)repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;ExtendedQuestion.BuildersetActivatedAt(java.lang.String value)string activated_at = 12;ExtendedQuestion.BuildersetActivatedAtBytes(com.google.protobuf.ByteString value)string activated_at = 12;ExtendedQuestion.BuildersetAnswers(int index, ExtendedQuestionAnswer value)repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;ExtendedQuestion.BuildersetAnswers(int index, ExtendedQuestionAnswer.Builder builderForValue)repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;ExtendedQuestion.BuildersetAnswerSetAt(java.lang.String value)string answer_set_at = 13;ExtendedQuestion.BuildersetAnswerSetAtBytes(com.google.protobuf.ByteString value)string answer_set_at = 13;ExtendedQuestion.BuildersetAppearance(QuestionAppearance value).streamlayer.interactive.QuestionAppearance appearance = 5;ExtendedQuestion.BuildersetAppearance(QuestionAppearance.Builder builderForValue).streamlayer.interactive.QuestionAppearance appearance = 5;ExtendedQuestion.BuildersetEventId(java.lang.String value)string event_id = 14;ExtendedQuestion.BuildersetEventIdBytes(com.google.protobuf.ByteString value)string event_id = 14;ExtendedQuestion.BuildersetId(java.lang.String value)string id = 1;ExtendedQuestion.BuildersetIdBytes(com.google.protobuf.ByteString value)string id = 1;ExtendedQuestion.BuildersetMarketClosed(boolean value)bool market_closed = 11;ExtendedQuestion.BuildersetNotification(QuestionNotification value).streamlayer.interactive.QuestionNotification notification = 7;ExtendedQuestion.BuildersetNotification(QuestionNotification.Builder builderForValue).streamlayer.interactive.QuestionNotification notification = 7;ExtendedQuestion.BuildersetOptions(QuestionOptions value).streamlayer.interactive.QuestionOptions options = 4;ExtendedQuestion.BuildersetOptions(QuestionOptions.Builder builderForValue).streamlayer.interactive.QuestionOptions options = 4;ExtendedQuestion.BuildersetPosition(int value)uint32 position = 10;ExtendedQuestion.BuildersetSponsorship(Sponsorship value).streamlayer.interactive.Sponsorship sponsorship = 6;ExtendedQuestion.BuildersetSponsorship(Sponsorship.Builder builderForValue).streamlayer.interactive.Sponsorship sponsorship = 6;ExtendedQuestion.BuildersetStatus(QuestionStatus value).streamlayer.interactive.QuestionStatus status = 9;ExtendedQuestion.BuildersetStatusValue(int value).streamlayer.interactive.QuestionStatus status = 9;ExtendedQuestion.BuildersetSubject(java.lang.String value)string subject = 3;ExtendedQuestion.BuildersetSubjectBytes(com.google.protobuf.ByteString value)string subject = 3;ExtendedQuestion.BuildersetType(QuestionType value).streamlayer.interactive.QuestionType type = 2;ExtendedQuestion.BuildersetTypeValue(int value).streamlayer.interactive.QuestionType type = 2;-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getId
public java.lang.String getId()
string id = 1;- Specified by:
getIdin interfaceExtendedQuestionOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
string id = 1;- Specified by:
getIdBytesin interfaceExtendedQuestionOrBuilder- Returns:
- The bytes for id.
-
setId
public ExtendedQuestion.Builder setId(java.lang.String value)
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public ExtendedQuestion.Builder clearId()
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
public ExtendedQuestion.Builder setIdBytes(com.google.protobuf.ByteString value)
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
.streamlayer.interactive.QuestionType type = 2;- Specified by:
getTypeValuein interfaceExtendedQuestionOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public ExtendedQuestion.Builder setTypeValue(int value)
.streamlayer.interactive.QuestionType type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
getType
public QuestionType getType()
.streamlayer.interactive.QuestionType type = 2;- Specified by:
getTypein interfaceExtendedQuestionOrBuilder- Returns:
- The type.
-
setType
public ExtendedQuestion.Builder setType(QuestionType value)
.streamlayer.interactive.QuestionType type = 2;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
clearType
public ExtendedQuestion.Builder clearType()
.streamlayer.interactive.QuestionType type = 2;- Returns:
- This builder for chaining.
-
getSubject
public java.lang.String getSubject()
string subject = 3;- Specified by:
getSubjectin interfaceExtendedQuestionOrBuilder- Returns:
- The subject.
-
getSubjectBytes
public com.google.protobuf.ByteString getSubjectBytes()
string subject = 3;- Specified by:
getSubjectBytesin interfaceExtendedQuestionOrBuilder- Returns:
- The bytes for subject.
-
setSubject
public ExtendedQuestion.Builder setSubject(java.lang.String value)
string subject = 3;- Parameters:
value- The subject to set.- Returns:
- This builder for chaining.
-
clearSubject
public ExtendedQuestion.Builder clearSubject()
string subject = 3;- Returns:
- This builder for chaining.
-
setSubjectBytes
public ExtendedQuestion.Builder setSubjectBytes(com.google.protobuf.ByteString value)
string subject = 3;- Parameters:
value- The bytes for subject to set.- Returns:
- This builder for chaining.
-
hasOptions
public boolean hasOptions()
.streamlayer.interactive.QuestionOptions options = 4;- Specified by:
hasOptionsin interfaceExtendedQuestionOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public QuestionOptions getOptions()
.streamlayer.interactive.QuestionOptions options = 4;- Specified by:
getOptionsin interfaceExtendedQuestionOrBuilder- Returns:
- The options.
-
setOptions
public ExtendedQuestion.Builder setOptions(QuestionOptions value)
.streamlayer.interactive.QuestionOptions options = 4;
-
setOptions
public ExtendedQuestion.Builder setOptions(QuestionOptions.Builder builderForValue)
.streamlayer.interactive.QuestionOptions options = 4;
-
mergeOptions
public ExtendedQuestion.Builder mergeOptions(QuestionOptions value)
.streamlayer.interactive.QuestionOptions options = 4;
-
clearOptions
public ExtendedQuestion.Builder clearOptions()
.streamlayer.interactive.QuestionOptions options = 4;
-
hasAppearance
public boolean hasAppearance()
.streamlayer.interactive.QuestionAppearance appearance = 5;- Specified by:
hasAppearancein interfaceExtendedQuestionOrBuilder- Returns:
- Whether the appearance field is set.
-
getAppearance
public QuestionAppearance getAppearance()
.streamlayer.interactive.QuestionAppearance appearance = 5;- Specified by:
getAppearancein interfaceExtendedQuestionOrBuilder- Returns:
- The appearance.
-
setAppearance
public ExtendedQuestion.Builder setAppearance(QuestionAppearance value)
.streamlayer.interactive.QuestionAppearance appearance = 5;
-
setAppearance
public ExtendedQuestion.Builder setAppearance(QuestionAppearance.Builder builderForValue)
.streamlayer.interactive.QuestionAppearance appearance = 5;
-
mergeAppearance
public ExtendedQuestion.Builder mergeAppearance(QuestionAppearance value)
.streamlayer.interactive.QuestionAppearance appearance = 5;
-
clearAppearance
public ExtendedQuestion.Builder clearAppearance()
.streamlayer.interactive.QuestionAppearance appearance = 5;
-
hasSponsorship
public boolean hasSponsorship()
.streamlayer.interactive.Sponsorship sponsorship = 6;- Specified by:
hasSponsorshipin interfaceExtendedQuestionOrBuilder- Returns:
- Whether the sponsorship field is set.
-
getSponsorship
public Sponsorship getSponsorship()
.streamlayer.interactive.Sponsorship sponsorship = 6;- Specified by:
getSponsorshipin interfaceExtendedQuestionOrBuilder- Returns:
- The sponsorship.
-
setSponsorship
public ExtendedQuestion.Builder setSponsorship(Sponsorship value)
.streamlayer.interactive.Sponsorship sponsorship = 6;
-
setSponsorship
public ExtendedQuestion.Builder setSponsorship(Sponsorship.Builder builderForValue)
.streamlayer.interactive.Sponsorship sponsorship = 6;
-
mergeSponsorship
public ExtendedQuestion.Builder mergeSponsorship(Sponsorship value)
.streamlayer.interactive.Sponsorship sponsorship = 6;
-
clearSponsorship
public ExtendedQuestion.Builder clearSponsorship()
.streamlayer.interactive.Sponsorship sponsorship = 6;
-
hasNotification
public boolean hasNotification()
.streamlayer.interactive.QuestionNotification notification = 7;- Specified by:
hasNotificationin interfaceExtendedQuestionOrBuilder- Returns:
- Whether the notification field is set.
-
getNotification
public QuestionNotification getNotification()
.streamlayer.interactive.QuestionNotification notification = 7;- Specified by:
getNotificationin interfaceExtendedQuestionOrBuilder- Returns:
- The notification.
-
setNotification
public ExtendedQuestion.Builder setNotification(QuestionNotification value)
.streamlayer.interactive.QuestionNotification notification = 7;
-
setNotification
public ExtendedQuestion.Builder setNotification(QuestionNotification.Builder builderForValue)
.streamlayer.interactive.QuestionNotification notification = 7;
-
mergeNotification
public ExtendedQuestion.Builder mergeNotification(QuestionNotification value)
.streamlayer.interactive.QuestionNotification notification = 7;
-
clearNotification
public ExtendedQuestion.Builder clearNotification()
.streamlayer.interactive.QuestionNotification notification = 7;
-
getAnswersList
public java.util.List<ExtendedQuestionAnswer> getAnswersList()
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;- Specified by:
getAnswersListin interfaceExtendedQuestionOrBuilder
-
getAnswersCount
public int getAnswersCount()
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;- Specified by:
getAnswersCountin interfaceExtendedQuestionOrBuilder
-
getAnswers
public ExtendedQuestionAnswer getAnswers(int index)
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;- Specified by:
getAnswersin interfaceExtendedQuestionOrBuilder
-
setAnswers
public ExtendedQuestion.Builder setAnswers(int index, ExtendedQuestionAnswer value)
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;
-
setAnswers
public ExtendedQuestion.Builder setAnswers(int index, ExtendedQuestionAnswer.Builder builderForValue)
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;
-
addAnswers
public ExtendedQuestion.Builder addAnswers(ExtendedQuestionAnswer value)
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;
-
addAnswers
public ExtendedQuestion.Builder addAnswers(int index, ExtendedQuestionAnswer value)
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;
-
addAnswers
public ExtendedQuestion.Builder addAnswers(ExtendedQuestionAnswer.Builder builderForValue)
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;
-
addAnswers
public ExtendedQuestion.Builder addAnswers(int index, ExtendedQuestionAnswer.Builder builderForValue)
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;
-
addAllAnswers
public ExtendedQuestion.Builder addAllAnswers(java.lang.Iterable<? extends ExtendedQuestionAnswer> values)
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;
-
clearAnswers
public ExtendedQuestion.Builder clearAnswers()
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;
-
removeAnswers
public ExtendedQuestion.Builder removeAnswers(int index)
repeated .streamlayer.interactive.ExtendedQuestionAnswer answers = 8;
-
getStatusValue
public int getStatusValue()
.streamlayer.interactive.QuestionStatus status = 9;- Specified by:
getStatusValuein interfaceExtendedQuestionOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public ExtendedQuestion.Builder setStatusValue(int value)
.streamlayer.interactive.QuestionStatus status = 9;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
getStatus
public QuestionStatus getStatus()
.streamlayer.interactive.QuestionStatus status = 9;- Specified by:
getStatusin interfaceExtendedQuestionOrBuilder- Returns:
- The status.
-
setStatus
public ExtendedQuestion.Builder setStatus(QuestionStatus value)
.streamlayer.interactive.QuestionStatus status = 9;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
clearStatus
public ExtendedQuestion.Builder clearStatus()
.streamlayer.interactive.QuestionStatus status = 9;- Returns:
- This builder for chaining.
-
getPosition
public int getPosition()
uint32 position = 10;- Specified by:
getPositionin interfaceExtendedQuestionOrBuilder- Returns:
- The position.
-
setPosition
public ExtendedQuestion.Builder setPosition(int value)
uint32 position = 10;- Parameters:
value- The position to set.- Returns:
- This builder for chaining.
-
clearPosition
public ExtendedQuestion.Builder clearPosition()
uint32 position = 10;- Returns:
- This builder for chaining.
-
getMarketClosed
public boolean getMarketClosed()
bool market_closed = 11;- Specified by:
getMarketClosedin interfaceExtendedQuestionOrBuilder- Returns:
- The marketClosed.
-
setMarketClosed
public ExtendedQuestion.Builder setMarketClosed(boolean value)
bool market_closed = 11;- Parameters:
value- The marketClosed to set.- Returns:
- This builder for chaining.
-
clearMarketClosed
public ExtendedQuestion.Builder clearMarketClosed()
bool market_closed = 11;- Returns:
- This builder for chaining.
-
getActivatedAt
public java.lang.String getActivatedAt()
string activated_at = 12;- Specified by:
getActivatedAtin interfaceExtendedQuestionOrBuilder- Returns:
- The activatedAt.
-
getActivatedAtBytes
public com.google.protobuf.ByteString getActivatedAtBytes()
string activated_at = 12;- Specified by:
getActivatedAtBytesin interfaceExtendedQuestionOrBuilder- Returns:
- The bytes for activatedAt.
-
setActivatedAt
public ExtendedQuestion.Builder setActivatedAt(java.lang.String value)
string activated_at = 12;- Parameters:
value- The activatedAt to set.- Returns:
- This builder for chaining.
-
clearActivatedAt
public ExtendedQuestion.Builder clearActivatedAt()
string activated_at = 12;- Returns:
- This builder for chaining.
-
setActivatedAtBytes
public ExtendedQuestion.Builder setActivatedAtBytes(com.google.protobuf.ByteString value)
string activated_at = 12;- Parameters:
value- The bytes for activatedAt to set.- Returns:
- This builder for chaining.
-
getAnswerSetAt
public java.lang.String getAnswerSetAt()
string answer_set_at = 13;- Specified by:
getAnswerSetAtin interfaceExtendedQuestionOrBuilder- Returns:
- The answerSetAt.
-
getAnswerSetAtBytes
public com.google.protobuf.ByteString getAnswerSetAtBytes()
string answer_set_at = 13;- Specified by:
getAnswerSetAtBytesin interfaceExtendedQuestionOrBuilder- Returns:
- The bytes for answerSetAt.
-
setAnswerSetAt
public ExtendedQuestion.Builder setAnswerSetAt(java.lang.String value)
string answer_set_at = 13;- Parameters:
value- The answerSetAt to set.- Returns:
- This builder for chaining.
-
clearAnswerSetAt
public ExtendedQuestion.Builder clearAnswerSetAt()
string answer_set_at = 13;- Returns:
- This builder for chaining.
-
setAnswerSetAtBytes
public ExtendedQuestion.Builder setAnswerSetAtBytes(com.google.protobuf.ByteString value)
string answer_set_at = 13;- Parameters:
value- The bytes for answerSetAt to set.- Returns:
- This builder for chaining.
-
getEventId
public java.lang.String getEventId()
string event_id = 14;- Specified by:
getEventIdin interfaceExtendedQuestionOrBuilder- Returns:
- The eventId.
-
getEventIdBytes
public com.google.protobuf.ByteString getEventIdBytes()
string event_id = 14;- Specified by:
getEventIdBytesin interfaceExtendedQuestionOrBuilder- Returns:
- The bytes for eventId.
-
setEventId
public ExtendedQuestion.Builder setEventId(java.lang.String value)
string event_id = 14;- Parameters:
value- The eventId to set.- Returns:
- This builder for chaining.
-
clearEventId
public ExtendedQuestion.Builder clearEventId()
string event_id = 14;- Returns:
- This builder for chaining.
-
setEventIdBytes
public ExtendedQuestion.Builder setEventIdBytes(com.google.protobuf.ByteString value)
string event_id = 14;- Parameters:
value- The bytes for eventId to set.- Returns:
- This builder for chaining.
-
-