Class QuestionStats.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<QuestionStats,QuestionStats.Builder>
-
- com.streamlayer.interactive.common.QuestionStats.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,QuestionStatsOrBuilder,java.lang.Cloneable
- Enclosing class:
- QuestionStats
public static final class QuestionStats.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<QuestionStats,QuestionStats.Builder> implements QuestionStatsOrBuilder
Protobuf typestreamlayer.interactive.QuestionStats
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuestionStats.BuilderaddAllStatistics(java.lang.Iterable<? extends AnswerVotesStats> values)repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];QuestionStats.BuilderaddStatistics(int index, AnswerVotesStats value)repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];QuestionStats.BuilderaddStatistics(int index, AnswerVotesStats.Builder builderForValue)repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];QuestionStats.BuilderaddStatistics(AnswerVotesStats value)repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];QuestionStats.BuilderaddStatistics(AnswerVotesStats.Builder builderForValue)repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];QuestionStats.BuilderclearId()string id = 1 [json_name = "id"];QuestionStats.BuilderclearQuestion().streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];QuestionStats.BuilderclearStatistics()repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];java.lang.StringgetId()string id = 1 [json_name = "id"];com.google.protobuf.ByteStringgetIdBytes()string id = 1 [json_name = "id"];QuestionStats.QuestionDatagetQuestion().streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];AnswerVotesStatsgetStatistics(int index)repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];intgetStatisticsCount()repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];java.util.List<AnswerVotesStats>getStatisticsList()repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];booleanhasQuestion().streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];QuestionStats.BuildermergeQuestion(QuestionStats.QuestionData value).streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];QuestionStats.BuilderremoveStatistics(int index)repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];QuestionStats.BuildersetId(java.lang.String value)string id = 1 [json_name = "id"];QuestionStats.BuildersetIdBytes(com.google.protobuf.ByteString value)string id = 1 [json_name = "id"];QuestionStats.BuildersetQuestion(QuestionStats.QuestionData value).streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];QuestionStats.BuildersetQuestion(QuestionStats.QuestionData.Builder builderForValue).streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];QuestionStats.BuildersetStatistics(int index, AnswerVotesStats value)repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];QuestionStats.BuildersetStatistics(int index, AnswerVotesStats.Builder builderForValue)repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];-
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 [json_name = "id"];- Specified by:
getIdin interfaceQuestionStatsOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
string id = 1 [json_name = "id"];- Specified by:
getIdBytesin interfaceQuestionStatsOrBuilder- Returns:
- The bytes for id.
-
setId
public QuestionStats.Builder setId(java.lang.String value)
string id = 1 [json_name = "id"];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public QuestionStats.Builder clearId()
string id = 1 [json_name = "id"];- Returns:
- This builder for chaining.
-
setIdBytes
public QuestionStats.Builder setIdBytes(com.google.protobuf.ByteString value)
string id = 1 [json_name = "id"];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasQuestion
public boolean hasQuestion()
.streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];- Specified by:
hasQuestionin interfaceQuestionStatsOrBuilder- Returns:
- Whether the question field is set.
-
getQuestion
public QuestionStats.QuestionData getQuestion()
.streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];- Specified by:
getQuestionin interfaceQuestionStatsOrBuilder- Returns:
- The question.
-
setQuestion
public QuestionStats.Builder setQuestion(QuestionStats.QuestionData value)
.streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];
-
setQuestion
public QuestionStats.Builder setQuestion(QuestionStats.QuestionData.Builder builderForValue)
.streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];
-
mergeQuestion
public QuestionStats.Builder mergeQuestion(QuestionStats.QuestionData value)
.streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];
-
clearQuestion
public QuestionStats.Builder clearQuestion()
.streamlayer.interactive.QuestionStats.QuestionData question = 2 [json_name = "question"];
-
getStatisticsList
public java.util.List<AnswerVotesStats> getStatisticsList()
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];- Specified by:
getStatisticsListin interfaceQuestionStatsOrBuilder
-
getStatisticsCount
public int getStatisticsCount()
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];- Specified by:
getStatisticsCountin interfaceQuestionStatsOrBuilder
-
getStatistics
public AnswerVotesStats getStatistics(int index)
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];- Specified by:
getStatisticsin interfaceQuestionStatsOrBuilder
-
setStatistics
public QuestionStats.Builder setStatistics(int index, AnswerVotesStats value)
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
-
setStatistics
public QuestionStats.Builder setStatistics(int index, AnswerVotesStats.Builder builderForValue)
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
-
addStatistics
public QuestionStats.Builder addStatistics(AnswerVotesStats value)
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
-
addStatistics
public QuestionStats.Builder addStatistics(int index, AnswerVotesStats value)
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
-
addStatistics
public QuestionStats.Builder addStatistics(AnswerVotesStats.Builder builderForValue)
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
-
addStatistics
public QuestionStats.Builder addStatistics(int index, AnswerVotesStats.Builder builderForValue)
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
-
addAllStatistics
public QuestionStats.Builder addAllStatistics(java.lang.Iterable<? extends AnswerVotesStats> values)
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
-
clearStatistics
public QuestionStats.Builder clearStatistics()
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
-
removeStatistics
public QuestionStats.Builder removeStatistics(int index)
repeated .streamlayer.interactive.AnswerVotesStats statistics = 3 [json_name = "statistics"];
-
-