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

main.java.com.streamlayer.interactive.feed.InstantView 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.InstantView}
 */
public  final class InstantView extends
    com.google.protobuf.GeneratedMessageLite<
        InstantView, InstantView.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.interactive.feed.InstantView)
    InstantViewOrBuilder {
  private InstantView() {
    heading_ = "";
    body_ = "";
    image_ = "";
  }
  private int bitField0_;
  public static final int HEADING_FIELD_NUMBER = 1;
  private java.lang.String heading_;
  /**
   * 
   * question.subject
   * 
* * optional string heading = 1 [json_name = "heading"]; * @return Whether the heading field is set. */ @java.lang.Override public boolean hasHeading() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * question.subject
   * 
* * optional string heading = 1 [json_name = "heading"]; * @return The heading. */ @java.lang.Override public java.lang.String getHeading() { return heading_; } /** *
   * question.subject
   * 
* * optional string heading = 1 [json_name = "heading"]; * @return The bytes for heading. */ @java.lang.Override public com.google.protobuf.ByteString getHeadingBytes() { return com.google.protobuf.ByteString.copyFromUtf8(heading_); } /** *
   * question.subject
   * 
* * optional string heading = 1 [json_name = "heading"]; * @param value The heading to set. */ private void setHeading( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; heading_ = value; } /** *
   * question.subject
   * 
* * optional string heading = 1 [json_name = "heading"]; */ private void clearHeading() { bitField0_ = (bitField0_ & ~0x00000001); heading_ = getDefaultInstance().getHeading(); } /** *
   * question.subject
   * 
* * optional string heading = 1 [json_name = "heading"]; * @param value The bytes for heading to set. */ private void setHeadingBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); heading_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int BODY_FIELD_NUMBER = 2; private java.lang.String body_; /** *
   * options.body
   * 
* * optional string body = 2 [json_name = "body"]; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * options.body
   * 
* * optional string body = 2 [json_name = "body"]; * @return The body. */ @java.lang.Override public java.lang.String getBody() { return body_; } /** *
   * options.body
   * 
* * optional string body = 2 [json_name = "body"]; * @return The bytes for body. */ @java.lang.Override public com.google.protobuf.ByteString getBodyBytes() { return com.google.protobuf.ByteString.copyFromUtf8(body_); } /** *
   * options.body
   * 
* * optional string body = 2 [json_name = "body"]; * @param value The body to set. */ private void setBody( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000002; body_ = value; } /** *
   * options.body
   * 
* * optional string body = 2 [json_name = "body"]; */ private void clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = getDefaultInstance().getBody(); } /** *
   * options.body
   * 
* * optional string body = 2 [json_name = "body"]; * @param value The bytes for body to set. */ private void setBodyBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); body_ = value.toStringUtf8(); bitField0_ |= 0x00000002; } public static final int IMAGE_FIELD_NUMBER = 3; private java.lang.String image_; /** * optional string image = 3 [json_name = "image"]; * @return Whether the image field is set. */ @java.lang.Override public boolean hasImage() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string image = 3 [json_name = "image"]; * @return The image. */ @java.lang.Override public java.lang.String getImage() { return image_; } /** * optional string image = 3 [json_name = "image"]; * @return The bytes for image. */ @java.lang.Override public com.google.protobuf.ByteString getImageBytes() { return com.google.protobuf.ByteString.copyFromUtf8(image_); } /** * optional string image = 3 [json_name = "image"]; * @param value The image to set. */ private void setImage( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000004; image_ = value; } /** * optional string image = 3 [json_name = "image"]; */ private void clearImage() { bitField0_ = (bitField0_ & ~0x00000004); image_ = getDefaultInstance().getImage(); } /** * optional string image = 3 [json_name = "image"]; * @param value The bytes for image to set. */ private void setImageBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); image_ = value.toStringUtf8(); bitField0_ |= 0x00000004; } public static final int VIDEO_FIELD_NUMBER = 4; private com.streamlayer.interactive.common.FileLink video_; /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ @java.lang.Override public boolean hasVideo() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ @java.lang.Override public com.streamlayer.interactive.common.FileLink getVideo() { return video_ == null ? com.streamlayer.interactive.common.FileLink.getDefaultInstance() : video_; } /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ private void setVideo(com.streamlayer.interactive.common.FileLink value) { value.getClass(); video_ = value; bitField0_ |= 0x00000008; } /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeVideo(com.streamlayer.interactive.common.FileLink value) { value.getClass(); if (video_ != null && video_ != com.streamlayer.interactive.common.FileLink.getDefaultInstance()) { video_ = com.streamlayer.interactive.common.FileLink.newBuilder(video_).mergeFrom(value).buildPartial(); } else { video_ = value; } bitField0_ |= 0x00000008; } /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ private void clearVideo() { video_ = null; bitField0_ = (bitField0_ & ~0x00000008); } public static final int WEB_LINK_FIELD_NUMBER = 5; private com.streamlayer.interactive.common.WebLink webLink_; /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ @java.lang.Override public boolean hasWebLink() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ @java.lang.Override public com.streamlayer.interactive.common.WebLink getWebLink() { return webLink_ == null ? com.streamlayer.interactive.common.WebLink.getDefaultInstance() : webLink_; } /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ private void setWebLink(com.streamlayer.interactive.common.WebLink value) { value.getClass(); webLink_ = value; bitField0_ |= 0x00000010; } /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeWebLink(com.streamlayer.interactive.common.WebLink value) { value.getClass(); if (webLink_ != null && webLink_ != com.streamlayer.interactive.common.WebLink.getDefaultInstance()) { webLink_ = com.streamlayer.interactive.common.WebLink.newBuilder(webLink_).mergeFrom(value).buildPartial(); } else { webLink_ = value; } bitField0_ |= 0x00000010; } /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ private void clearWebLink() { webLink_ = null; bitField0_ = (bitField0_ & ~0x00000010); } public static final int IMAGE_MODE_FIELD_NUMBER = 6; private int imageMode_; /** * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"]; * @return The enum numeric value on the wire for imageMode. */ @java.lang.Override public int getImageModeValue() { return imageMode_; } /** * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"]; * @return The imageMode. */ @java.lang.Override public com.streamlayer.interactive.common.QuestionImages getImageMode() { com.streamlayer.interactive.common.QuestionImages result = com.streamlayer.interactive.common.QuestionImages.forNumber(imageMode_); return result == null ? com.streamlayer.interactive.common.QuestionImages.UNRECOGNIZED : result; } /** * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"]; * @param value The enum numeric value on the wire for imageMode to set. */ private void setImageModeValue(int value) { imageMode_ = value; } /** * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"]; * @param value The imageMode to set. */ private void setImageMode(com.streamlayer.interactive.common.QuestionImages value) { imageMode_ = value.getNumber(); } /** * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"]; */ private void clearImageMode() { imageMode_ = 0; } public static com.streamlayer.interactive.feed.InstantView 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.InstantView 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.InstantView 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.InstantView 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.InstantView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.interactive.feed.InstantView 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.InstantView parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.interactive.feed.InstantView 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.InstantView parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.streamlayer.interactive.feed.InstantView 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.InstantView 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.InstantView 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.InstantView prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code streamlayer.interactive.feed.InstantView} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.streamlayer.interactive.feed.InstantView, Builder> implements // @@protoc_insertion_point(builder_implements:streamlayer.interactive.feed.InstantView) com.streamlayer.interactive.feed.InstantViewOrBuilder { // Construct using com.streamlayer.interactive.feed.InstantView.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     * question.subject
     * 
* * optional string heading = 1 [json_name = "heading"]; * @return Whether the heading field is set. */ @java.lang.Override public boolean hasHeading() { return instance.hasHeading(); } /** *
     * question.subject
     * 
* * optional string heading = 1 [json_name = "heading"]; * @return The heading. */ @java.lang.Override public java.lang.String getHeading() { return instance.getHeading(); } /** *
     * question.subject
     * 
* * optional string heading = 1 [json_name = "heading"]; * @return The bytes for heading. */ @java.lang.Override public com.google.protobuf.ByteString getHeadingBytes() { return instance.getHeadingBytes(); } /** *
     * question.subject
     * 
* * optional string heading = 1 [json_name = "heading"]; * @param value The heading to set. * @return This builder for chaining. */ public Builder setHeading( java.lang.String value) { copyOnWrite(); instance.setHeading(value); return this; } /** *
     * question.subject
     * 
* * optional string heading = 1 [json_name = "heading"]; * @return This builder for chaining. */ public Builder clearHeading() { copyOnWrite(); instance.clearHeading(); return this; } /** *
     * question.subject
     * 
* * optional string heading = 1 [json_name = "heading"]; * @param value The bytes for heading to set. * @return This builder for chaining. */ public Builder setHeadingBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setHeadingBytes(value); return this; } /** *
     * options.body
     * 
* * optional string body = 2 [json_name = "body"]; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return instance.hasBody(); } /** *
     * options.body
     * 
* * optional string body = 2 [json_name = "body"]; * @return The body. */ @java.lang.Override public java.lang.String getBody() { return instance.getBody(); } /** *
     * options.body
     * 
* * optional string body = 2 [json_name = "body"]; * @return The bytes for body. */ @java.lang.Override public com.google.protobuf.ByteString getBodyBytes() { return instance.getBodyBytes(); } /** *
     * options.body
     * 
* * optional string body = 2 [json_name = "body"]; * @param value The body to set. * @return This builder for chaining. */ public Builder setBody( java.lang.String value) { copyOnWrite(); instance.setBody(value); return this; } /** *
     * options.body
     * 
* * optional string body = 2 [json_name = "body"]; * @return This builder for chaining. */ public Builder clearBody() { copyOnWrite(); instance.clearBody(); return this; } /** *
     * options.body
     * 
* * optional string body = 2 [json_name = "body"]; * @param value The bytes for body to set. * @return This builder for chaining. */ public Builder setBodyBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setBodyBytes(value); return this; } /** * optional string image = 3 [json_name = "image"]; * @return Whether the image field is set. */ @java.lang.Override public boolean hasImage() { return instance.hasImage(); } /** * optional string image = 3 [json_name = "image"]; * @return The image. */ @java.lang.Override public java.lang.String getImage() { return instance.getImage(); } /** * optional string image = 3 [json_name = "image"]; * @return The bytes for image. */ @java.lang.Override public com.google.protobuf.ByteString getImageBytes() { return instance.getImageBytes(); } /** * optional string image = 3 [json_name = "image"]; * @param value The image to set. * @return This builder for chaining. */ public Builder setImage( java.lang.String value) { copyOnWrite(); instance.setImage(value); return this; } /** * optional string image = 3 [json_name = "image"]; * @return This builder for chaining. */ public Builder clearImage() { copyOnWrite(); instance.clearImage(); return this; } /** * optional string image = 3 [json_name = "image"]; * @param value The bytes for image to set. * @return This builder for chaining. */ public Builder setImageBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setImageBytes(value); return this; } /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ @java.lang.Override public boolean hasVideo() { return instance.hasVideo(); } /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ @java.lang.Override public com.streamlayer.interactive.common.FileLink getVideo() { return instance.getVideo(); } /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ public Builder setVideo(com.streamlayer.interactive.common.FileLink value) { copyOnWrite(); instance.setVideo(value); return this; } /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ public Builder setVideo( com.streamlayer.interactive.common.FileLink.Builder builderForValue) { copyOnWrite(); instance.setVideo(builderForValue.build()); return this; } /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ public Builder mergeVideo(com.streamlayer.interactive.common.FileLink value) { copyOnWrite(); instance.mergeVideo(value); return this; } /** * optional .streamlayer.interactive.FileLink video = 4 [json_name = "video"]; */ public Builder clearVideo() { copyOnWrite(); instance.clearVideo(); return this; } /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ @java.lang.Override public boolean hasWebLink() { return instance.hasWebLink(); } /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ @java.lang.Override public com.streamlayer.interactive.common.WebLink getWebLink() { return instance.getWebLink(); } /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ public Builder setWebLink(com.streamlayer.interactive.common.WebLink value) { copyOnWrite(); instance.setWebLink(value); return this; } /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ public Builder setWebLink( com.streamlayer.interactive.common.WebLink.Builder builderForValue) { copyOnWrite(); instance.setWebLink(builderForValue.build()); return this; } /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ public Builder mergeWebLink(com.streamlayer.interactive.common.WebLink value) { copyOnWrite(); instance.mergeWebLink(value); return this; } /** * optional .streamlayer.interactive.WebLink web_link = 5 [json_name = "webLink"]; */ public Builder clearWebLink() { copyOnWrite(); instance.clearWebLink(); return this; } /** * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"]; * @return The enum numeric value on the wire for imageMode. */ @java.lang.Override public int getImageModeValue() { return instance.getImageModeValue(); } /** * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"]; * @param value The imageMode to set. * @return This builder for chaining. */ public Builder setImageModeValue(int value) { copyOnWrite(); instance.setImageModeValue(value); return this; } /** * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"]; * @return The imageMode. */ @java.lang.Override public com.streamlayer.interactive.common.QuestionImages getImageMode() { return instance.getImageMode(); } /** * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"]; * @param value The enum numeric value on the wire for imageMode to set. * @return This builder for chaining. */ public Builder setImageMode(com.streamlayer.interactive.common.QuestionImages value) { copyOnWrite(); instance.setImageMode(value); return this; } /** * .streamlayer.interactive.QuestionImages image_mode = 6 [json_name = "imageMode"]; * @return This builder for chaining. */ public Builder clearImageMode() { copyOnWrite(); instance.clearImageMode(); return this; } // @@protoc_insertion_point(builder_scope:streamlayer.interactive.feed.InstantView) } @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.InstantView(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "heading_", "body_", "image_", "video_", "webLink_", "imageMode_", }; java.lang.String info = "\u0000\u0006\u0000\u0001\u0001\u0006\u0006\u0000\u0000\u0000\u0001\u1208\u0000\u0002" + "\u1208\u0001\u0003\u1208\u0002\u0004\u1009\u0003\u0005\u1009\u0004\u0006\f"; 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.InstantView.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.InstantView) private static final com.streamlayer.interactive.feed.InstantView DEFAULT_INSTANCE; static { InstantView defaultInstance = new InstantView(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( InstantView.class, defaultInstance); } public static com.streamlayer.interactive.feed.InstantView 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