All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.java.com.streamlayer.interactive.feed.FeedQuestion Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/interactive/feed/interactive.feed.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.interactive.feed;

/**
 * Protobuf type {@code streamlayer.interactive.feed.FeedQuestion}
 */
public  final class FeedQuestion extends
    com.google.protobuf.GeneratedMessageLite<
        FeedQuestion, FeedQuestion.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.interactive.feed.FeedQuestion)
    FeedQuestionOrBuilder {
  private FeedQuestion() {
  }
  private int bitField0_;
  public static final int QUESTION_FIELD_NUMBER = 1;
  private com.streamlayer.interactive.common.Question question_;
  /**
   * .streamlayer.interactive.Question question = 1 [json_name = "question"];
   */
  @java.lang.Override
  public boolean hasQuestion() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.interactive.Question question = 1 [json_name = "question"];
   */
  @java.lang.Override
  public com.streamlayer.interactive.common.Question getQuestion() {
    return question_ == null ? com.streamlayer.interactive.common.Question.getDefaultInstance() : question_;
  }
  /**
   * .streamlayer.interactive.Question question = 1 [json_name = "question"];
   */
  private void setQuestion(com.streamlayer.interactive.common.Question value) {
    value.getClass();
  question_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.interactive.Question question = 1 [json_name = "question"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeQuestion(com.streamlayer.interactive.common.Question value) {
    value.getClass();
  if (question_ != null &&
        question_ != com.streamlayer.interactive.common.Question.getDefaultInstance()) {
      question_ =
        com.streamlayer.interactive.common.Question.newBuilder(question_).mergeFrom(value).buildPartial();
    } else {
      question_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.interactive.Question question = 1 [json_name = "question"];
   */
  private void clearQuestion() {  question_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int NOTIFICATION_FIELD_NUMBER = 2;
  private com.streamlayer.interactive.common.QuestionNotification notification_;
  /**
   * 
   * deprecated, don't use
   * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public boolean hasNotification() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * deprecated, don't use
   * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.streamlayer.interactive.common.QuestionNotification getNotification() { return notification_ == null ? com.streamlayer.interactive.common.QuestionNotification.getDefaultInstance() : notification_; } /** *
   * deprecated, don't use
   * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ private void setNotification(com.streamlayer.interactive.common.QuestionNotification value) { value.getClass(); notification_ = value; bitField0_ |= 0x00000002; } /** *
   * deprecated, don't use
   * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeNotification(com.streamlayer.interactive.common.QuestionNotification value) { value.getClass(); if (notification_ != null && notification_ != com.streamlayer.interactive.common.QuestionNotification.getDefaultInstance()) { notification_ = com.streamlayer.interactive.common.QuestionNotification.newBuilder(notification_).mergeFrom(value).buildPartial(); } else { notification_ = value; } bitField0_ |= 0x00000002; } /** *
   * deprecated, don't use
   * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ private void clearNotification() { notification_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static final int MODERATION_FIELD_NUMBER = 3; private com.streamlayer.interactive.common.EventModeration moderation_; /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ @java.lang.Override public boolean hasModeration() { return ((bitField0_ & 0x00000004) != 0); } /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ @java.lang.Override public com.streamlayer.interactive.common.EventModeration getModeration() { return moderation_ == null ? com.streamlayer.interactive.common.EventModeration.getDefaultInstance() : moderation_; } /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ private void setModeration(com.streamlayer.interactive.common.EventModeration value) { value.getClass(); moderation_ = value; bitField0_ |= 0x00000004; } /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeModeration(com.streamlayer.interactive.common.EventModeration value) { value.getClass(); if (moderation_ != null && moderation_ != com.streamlayer.interactive.common.EventModeration.getDefaultInstance()) { moderation_ = com.streamlayer.interactive.common.EventModeration.newBuilder(moderation_).mergeFrom(value).buildPartial(); } else { moderation_ = value; } bitField0_ |= 0x00000004; } /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ private void clearModeration() { moderation_ = null; bitField0_ = (bitField0_ & ~0x00000004); } public static final int FEED_ITEM_FIELD_NUMBER = 4; private com.streamlayer.interactive.feed.FeedItem feedItem_; /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ @java.lang.Override public boolean hasFeedItem() { return ((bitField0_ & 0x00000008) != 0); } /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ @java.lang.Override public com.streamlayer.interactive.feed.FeedItem getFeedItem() { return feedItem_ == null ? com.streamlayer.interactive.feed.FeedItem.getDefaultInstance() : feedItem_; } /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ private void setFeedItem(com.streamlayer.interactive.feed.FeedItem value) { value.getClass(); feedItem_ = value; bitField0_ |= 0x00000008; } /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeFeedItem(com.streamlayer.interactive.feed.FeedItem value) { value.getClass(); if (feedItem_ != null && feedItem_ != com.streamlayer.interactive.feed.FeedItem.getDefaultInstance()) { feedItem_ = com.streamlayer.interactive.feed.FeedItem.newBuilder(feedItem_).mergeFrom(value).buildPartial(); } else { feedItem_ = value; } bitField0_ |= 0x00000008; } /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ private void clearFeedItem() { feedItem_ = null; bitField0_ = (bitField0_ & ~0x00000008); } public static com.streamlayer.interactive.feed.FeedQuestion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.interactive.feed.FeedQuestion 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.interactive.feed.FeedQuestion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.interactive.feed.FeedQuestion 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.interactive.feed.FeedQuestion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.interactive.feed.FeedQuestion 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.interactive.feed.FeedQuestion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.interactive.feed.FeedQuestion 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.interactive.feed.FeedQuestion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.streamlayer.interactive.feed.FeedQuestion parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.streamlayer.interactive.feed.FeedQuestion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.interactive.feed.FeedQuestion 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.interactive.feed.FeedQuestion prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code streamlayer.interactive.feed.FeedQuestion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.streamlayer.interactive.feed.FeedQuestion, Builder> implements // @@protoc_insertion_point(builder_implements:streamlayer.interactive.feed.FeedQuestion) com.streamlayer.interactive.feed.FeedQuestionOrBuilder { // Construct using com.streamlayer.interactive.feed.FeedQuestion.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * .streamlayer.interactive.Question question = 1 [json_name = "question"]; */ @java.lang.Override public boolean hasQuestion() { return instance.hasQuestion(); } /** * .streamlayer.interactive.Question question = 1 [json_name = "question"]; */ @java.lang.Override public com.streamlayer.interactive.common.Question getQuestion() { return instance.getQuestion(); } /** * .streamlayer.interactive.Question question = 1 [json_name = "question"]; */ public Builder setQuestion(com.streamlayer.interactive.common.Question value) { copyOnWrite(); instance.setQuestion(value); return this; } /** * .streamlayer.interactive.Question question = 1 [json_name = "question"]; */ public Builder setQuestion( com.streamlayer.interactive.common.Question.Builder builderForValue) { copyOnWrite(); instance.setQuestion(builderForValue.build()); return this; } /** * .streamlayer.interactive.Question question = 1 [json_name = "question"]; */ public Builder mergeQuestion(com.streamlayer.interactive.common.Question value) { copyOnWrite(); instance.mergeQuestion(value); return this; } /** * .streamlayer.interactive.Question question = 1 [json_name = "question"]; */ public Builder clearQuestion() { copyOnWrite(); instance.clearQuestion(); return this; } /** *
     * deprecated, don't use
     * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public boolean hasNotification() { return instance.hasNotification(); } /** *
     * deprecated, don't use
     * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.streamlayer.interactive.common.QuestionNotification getNotification() { return instance.getNotification(); } /** *
     * deprecated, don't use
     * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ @java.lang.Deprecated public Builder setNotification(com.streamlayer.interactive.common.QuestionNotification value) { copyOnWrite(); instance.setNotification(value); return this; } /** *
     * deprecated, don't use
     * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ @java.lang.Deprecated public Builder setNotification( com.streamlayer.interactive.common.QuestionNotification.Builder builderForValue) { copyOnWrite(); instance.setNotification(builderForValue.build()); return this; } /** *
     * deprecated, don't use
     * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ @java.lang.Deprecated public Builder mergeNotification(com.streamlayer.interactive.common.QuestionNotification value) { copyOnWrite(); instance.mergeNotification(value); return this; } /** *
     * deprecated, don't use
     * 
* * .streamlayer.interactive.QuestionNotification notification = 2 [json_name = "notification", deprecated = true]; */ @java.lang.Deprecated public Builder clearNotification() { copyOnWrite(); instance.clearNotification(); return this; } /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ @java.lang.Override public boolean hasModeration() { return instance.hasModeration(); } /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ @java.lang.Override public com.streamlayer.interactive.common.EventModeration getModeration() { return instance.getModeration(); } /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ public Builder setModeration(com.streamlayer.interactive.common.EventModeration value) { copyOnWrite(); instance.setModeration(value); return this; } /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ public Builder setModeration( com.streamlayer.interactive.common.EventModeration.Builder builderForValue) { copyOnWrite(); instance.setModeration(builderForValue.build()); return this; } /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ public Builder mergeModeration(com.streamlayer.interactive.common.EventModeration value) { copyOnWrite(); instance.mergeModeration(value); return this; } /** * .streamlayer.interactive.EventModeration moderation = 3 [json_name = "moderation"]; */ public Builder clearModeration() { copyOnWrite(); instance.clearModeration(); return this; } /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ @java.lang.Override public boolean hasFeedItem() { return instance.hasFeedItem(); } /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ @java.lang.Override public com.streamlayer.interactive.feed.FeedItem getFeedItem() { return instance.getFeedItem(); } /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ public Builder setFeedItem(com.streamlayer.interactive.feed.FeedItem value) { copyOnWrite(); instance.setFeedItem(value); return this; } /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ public Builder setFeedItem( com.streamlayer.interactive.feed.FeedItem.Builder builderForValue) { copyOnWrite(); instance.setFeedItem(builderForValue.build()); return this; } /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ public Builder mergeFeedItem(com.streamlayer.interactive.feed.FeedItem value) { copyOnWrite(); instance.mergeFeedItem(value); return this; } /** * .streamlayer.interactive.feed.FeedItem feed_item = 4 [json_name = "feedItem"]; */ public Builder clearFeedItem() { copyOnWrite(); instance.clearFeedItem(); return this; } // @@protoc_insertion_point(builder_scope:streamlayer.interactive.feed.FeedQuestion) } @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.interactive.feed.FeedQuestion(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "question_", "notification_", "moderation_", "feedItem_", }; java.lang.String info = "\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u1009\u0000\u0002" + "\u1009\u0001\u0003\u1009\u0002\u0004\u1009\u0003"; 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.interactive.feed.FeedQuestion.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.interactive.feed.FeedQuestion) private static final com.streamlayer.interactive.feed.FeedQuestion DEFAULT_INSTANCE; static { FeedQuestion defaultInstance = new FeedQuestion(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( FeedQuestion.class, defaultInstance); } public static com.streamlayer.interactive.feed.FeedQuestion getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy