Package com.streamlayer.interactive.feed
Class FeedItemAttributes.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<FeedItemAttributes,FeedItemAttributes.Builder>
-
- com.streamlayer.interactive.feed.FeedItemAttributes.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,FeedItemAttributesOrBuilder,java.lang.Cloneable
- Enclosing class:
- FeedItemAttributes
public static final class FeedItemAttributes.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<FeedItemAttributes,FeedItemAttributes.Builder> implements FeedItemAttributesOrBuilder
Protobuf typestreamlayer.interactive.feed.FeedItemAttributes
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedItemAttributes.BuilderclearAdPromotion()optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];FeedItemAttributes.BuilderclearAttributes()FeedItemAttributes.BuilderclearCreated()string created = 8 [json_name = "created"];FeedItemAttributes.BuilderclearId()string id = 1 [json_name = "id"];FeedItemAttributes.BuilderclearInsight().streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];FeedItemAttributes.BuilderclearPromotion().streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];FeedItemAttributes.BuilderclearQuestion().streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];FeedItemAttributes.BuilderclearStatus().streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];FeedItemAttributes.BuilderclearTweet().streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];FeedItemAttributes.BuilderclearType().streamlayer.interactive.QuestionType type = 2 [json_name = "type"];PromotiongetAdPromotion()optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];FeedItemAttributes.AttributesCasegetAttributesCase()java.lang.StringgetCreated()string created = 8 [json_name = "created"];com.google.protobuf.ByteStringgetCreatedBytes()string created = 8 [json_name = "created"];java.lang.StringgetId()string id = 1 [json_name = "id"];com.google.protobuf.ByteStringgetIdBytes()string id = 1 [json_name = "id"];InsightHistorygetInsight().streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];PromotionHistorygetPromotion().streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];PickHistorygetQuestion().streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];QuestionStatusgetStatus().streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];intgetStatusValue().streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];TweetHistorygetTweet().streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];QuestionTypegetType().streamlayer.interactive.QuestionType type = 2 [json_name = "type"];intgetTypeValue().streamlayer.interactive.QuestionType type = 2 [json_name = "type"];booleanhasAdPromotion()optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];booleanhasInsight().streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];booleanhasPromotion().streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];booleanhasQuestion().streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];booleanhasTweet().streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];FeedItemAttributes.BuildermergeAdPromotion(Promotion value)optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];FeedItemAttributes.BuildermergeInsight(InsightHistory value).streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];FeedItemAttributes.BuildermergePromotion(PromotionHistory value).streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];FeedItemAttributes.BuildermergeQuestion(PickHistory value).streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];FeedItemAttributes.BuildermergeTweet(TweetHistory value).streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];FeedItemAttributes.BuildersetAdPromotion(Promotion value)optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];FeedItemAttributes.BuildersetAdPromotion(Promotion.Builder builderForValue)optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];FeedItemAttributes.BuildersetCreated(java.lang.String value)string created = 8 [json_name = "created"];FeedItemAttributes.BuildersetCreatedBytes(com.google.protobuf.ByteString value)string created = 8 [json_name = "created"];FeedItemAttributes.BuildersetId(java.lang.String value)string id = 1 [json_name = "id"];FeedItemAttributes.BuildersetIdBytes(com.google.protobuf.ByteString value)string id = 1 [json_name = "id"];FeedItemAttributes.BuildersetInsight(InsightHistory value).streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];FeedItemAttributes.BuildersetInsight(InsightHistory.Builder builderForValue).streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];FeedItemAttributes.BuildersetPromotion(PromotionHistory value).streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];FeedItemAttributes.BuildersetPromotion(PromotionHistory.Builder builderForValue).streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];FeedItemAttributes.BuildersetQuestion(PickHistory value).streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];FeedItemAttributes.BuildersetQuestion(PickHistory.Builder builderForValue).streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];FeedItemAttributes.BuildersetStatus(QuestionStatus value).streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];FeedItemAttributes.BuildersetStatusValue(int value).streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];FeedItemAttributes.BuildersetTweet(TweetHistory value).streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];FeedItemAttributes.BuildersetTweet(TweetHistory.Builder builderForValue).streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];FeedItemAttributes.BuildersetType(QuestionType value).streamlayer.interactive.QuestionType type = 2 [json_name = "type"];FeedItemAttributes.BuildersetTypeValue(int value).streamlayer.interactive.QuestionType type = 2 [json_name = "type"];-
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
-
getAttributesCase
public FeedItemAttributes.AttributesCase getAttributesCase()
- Specified by:
getAttributesCasein interfaceFeedItemAttributesOrBuilder
-
clearAttributes
public FeedItemAttributes.Builder clearAttributes()
-
getId
public java.lang.String getId()
string id = 1 [json_name = "id"];- Specified by:
getIdin interfaceFeedItemAttributesOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
string id = 1 [json_name = "id"];- Specified by:
getIdBytesin interfaceFeedItemAttributesOrBuilder- Returns:
- The bytes for id.
-
setId
public FeedItemAttributes.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 FeedItemAttributes.Builder clearId()
string id = 1 [json_name = "id"];- Returns:
- This builder for chaining.
-
setIdBytes
public FeedItemAttributes.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.
-
getTypeValue
public int getTypeValue()
.streamlayer.interactive.QuestionType type = 2 [json_name = "type"];- Specified by:
getTypeValuein interfaceFeedItemAttributesOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public FeedItemAttributes.Builder setTypeValue(int value)
.streamlayer.interactive.QuestionType type = 2 [json_name = "type"];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
getType
public QuestionType getType()
.streamlayer.interactive.QuestionType type = 2 [json_name = "type"];- Specified by:
getTypein interfaceFeedItemAttributesOrBuilder- Returns:
- The type.
-
setType
public FeedItemAttributes.Builder setType(QuestionType value)
.streamlayer.interactive.QuestionType type = 2 [json_name = "type"];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
clearType
public FeedItemAttributes.Builder clearType()
.streamlayer.interactive.QuestionType type = 2 [json_name = "type"];- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()
.streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];- Specified by:
getStatusValuein interfaceFeedItemAttributesOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public FeedItemAttributes.Builder setStatusValue(int value)
.streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
getStatus
public QuestionStatus getStatus()
.streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];- Specified by:
getStatusin interfaceFeedItemAttributesOrBuilder- Returns:
- The status.
-
setStatus
public FeedItemAttributes.Builder setStatus(QuestionStatus value)
.streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
clearStatus
public FeedItemAttributes.Builder clearStatus()
.streamlayer.interactive.QuestionStatus status = 3 [json_name = "status"];- Returns:
- This builder for chaining.
-
getCreated
public java.lang.String getCreated()
string created = 8 [json_name = "created"];- Specified by:
getCreatedin interfaceFeedItemAttributesOrBuilder- Returns:
- The created.
-
getCreatedBytes
public com.google.protobuf.ByteString getCreatedBytes()
string created = 8 [json_name = "created"];- Specified by:
getCreatedBytesin interfaceFeedItemAttributesOrBuilder- Returns:
- The bytes for created.
-
setCreated
public FeedItemAttributes.Builder setCreated(java.lang.String value)
string created = 8 [json_name = "created"];- Parameters:
value- The created to set.- Returns:
- This builder for chaining.
-
clearCreated
public FeedItemAttributes.Builder clearCreated()
string created = 8 [json_name = "created"];- Returns:
- This builder for chaining.
-
setCreatedBytes
public FeedItemAttributes.Builder setCreatedBytes(com.google.protobuf.ByteString value)
string created = 8 [json_name = "created"];- Parameters:
value- The bytes for created to set.- Returns:
- This builder for chaining.
-
hasQuestion
public boolean hasQuestion()
.streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];- Specified by:
hasQuestionin interfaceFeedItemAttributesOrBuilder- Returns:
- Whether the question field is set.
-
getQuestion
public PickHistory getQuestion()
.streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];- Specified by:
getQuestionin interfaceFeedItemAttributesOrBuilder- Returns:
- The question.
-
setQuestion
public FeedItemAttributes.Builder setQuestion(PickHistory value)
.streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
-
setQuestion
public FeedItemAttributes.Builder setQuestion(PickHistory.Builder builderForValue)
.streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
-
mergeQuestion
public FeedItemAttributes.Builder mergeQuestion(PickHistory value)
.streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
-
clearQuestion
public FeedItemAttributes.Builder clearQuestion()
.streamlayer.interactive.feed.PickHistory question = 4 [json_name = "question"];
-
hasTweet
public boolean hasTweet()
.streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];- Specified by:
hasTweetin interfaceFeedItemAttributesOrBuilder- Returns:
- Whether the tweet field is set.
-
getTweet
public TweetHistory getTweet()
.streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];- Specified by:
getTweetin interfaceFeedItemAttributesOrBuilder- Returns:
- The tweet.
-
setTweet
public FeedItemAttributes.Builder setTweet(TweetHistory value)
.streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
-
setTweet
public FeedItemAttributes.Builder setTweet(TweetHistory.Builder builderForValue)
.streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
-
mergeTweet
public FeedItemAttributes.Builder mergeTweet(TweetHistory value)
.streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
-
clearTweet
public FeedItemAttributes.Builder clearTweet()
.streamlayer.interactive.feed.TweetHistory tweet = 5 [json_name = "tweet"];
-
hasInsight
public boolean hasInsight()
.streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];- Specified by:
hasInsightin interfaceFeedItemAttributesOrBuilder- Returns:
- Whether the insight field is set.
-
getInsight
public InsightHistory getInsight()
.streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];- Specified by:
getInsightin interfaceFeedItemAttributesOrBuilder- Returns:
- The insight.
-
setInsight
public FeedItemAttributes.Builder setInsight(InsightHistory value)
.streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
-
setInsight
public FeedItemAttributes.Builder setInsight(InsightHistory.Builder builderForValue)
.streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
-
mergeInsight
public FeedItemAttributes.Builder mergeInsight(InsightHistory value)
.streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
-
clearInsight
public FeedItemAttributes.Builder clearInsight()
.streamlayer.interactive.feed.InsightHistory insight = 6 [json_name = "insight"];
-
hasPromotion
public boolean hasPromotion()
.streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];- Specified by:
hasPromotionin interfaceFeedItemAttributesOrBuilder- Returns:
- Whether the promotion field is set.
-
getPromotion
public PromotionHistory getPromotion()
.streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];- Specified by:
getPromotionin interfaceFeedItemAttributesOrBuilder- Returns:
- The promotion.
-
setPromotion
public FeedItemAttributes.Builder setPromotion(PromotionHistory value)
.streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
-
setPromotion
public FeedItemAttributes.Builder setPromotion(PromotionHistory.Builder builderForValue)
.streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
-
mergePromotion
public FeedItemAttributes.Builder mergePromotion(PromotionHistory value)
.streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
-
clearPromotion
public FeedItemAttributes.Builder clearPromotion()
.streamlayer.interactive.feed.PromotionHistory promotion = 7 [json_name = "promotion"];
-
hasAdPromotion
public boolean hasAdPromotion()
optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];- Specified by:
hasAdPromotionin interfaceFeedItemAttributesOrBuilder- Returns:
- Whether the adPromotion field is set.
-
getAdPromotion
public Promotion getAdPromotion()
optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];- Specified by:
getAdPromotionin interfaceFeedItemAttributesOrBuilder- Returns:
- The adPromotion.
-
setAdPromotion
public FeedItemAttributes.Builder setAdPromotion(Promotion value)
optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];
-
setAdPromotion
public FeedItemAttributes.Builder setAdPromotion(Promotion.Builder builderForValue)
optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];
-
mergeAdPromotion
public FeedItemAttributes.Builder mergeAdPromotion(Promotion value)
optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];
-
clearAdPromotion
public FeedItemAttributes.Builder clearAdPromotion()
optional .streamlayer.interactive.Promotion ad_promotion = 9 [json_name = "adPromotion"];
-
-