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

io.bloombox.tpl.Media Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, Momentum Ideas, Co. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual
 * property of Momentum Ideas Co., a Delaware Corporation. Use of this
 * code in source form requires permission in writing before use or the
 * assembly, distribution, or publishing of derivative works, for commercial
 * purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: page/Media.proto

package io.bloombox.tpl;

public final class Media {
  private Media() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Enumerates known or supported video asset providers.
   * 
* * Protobuf enum {@code bloombox.page.VideoProvider} */ public enum VideoProvider implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Private hosting for a given video asset.
     * 
* * PRIVATE = 0; */ PRIVATE(0), /** *
     * YouTube hosting for a given video asset.
     * 
* * YOUTUBE = 1; */ YOUTUBE(1), /** *
     * Vimeo hosting for a given video asset.
     * 
* * VIMEO = 2; */ VIMEO(2), UNRECOGNIZED(-1), ; /** *
     * Private hosting for a given video asset.
     * 
* * PRIVATE = 0; */ public static final int PRIVATE_VALUE = 0; /** *
     * YouTube hosting for a given video asset.
     * 
* * YOUTUBE = 1; */ public static final int YOUTUBE_VALUE = 1; /** *
     * Vimeo hosting for a given video asset.
     * 
* * VIMEO = 2; */ public static final int VIMEO_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VideoProvider valueOf(int value) { return forNumber(value); } public static VideoProvider forNumber(int value) { switch (value) { case 0: return PRIVATE; case 1: return YOUTUBE; case 2: return VIMEO; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< VideoProvider> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public VideoProvider findValueByNumber(int number) { return VideoProvider.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.bloombox.tpl.Media.getDescriptor().getEnumTypes().get(0); } private static final VideoProvider[] VALUES = values(); public static VideoProvider valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private VideoProvider(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:bloombox.page.VideoProvider) } /** *
   * Describes resolutions at which video assets may be made available.
   * 
* * Protobuf enum {@code bloombox.page.VideoResolution} */ public enum VideoResolution implements com.google.protobuf.ProtocolMessageEnum { /** *
     * The video is available in low-res form.
     * 
* * LOW = 0; */ LOW(0), /** *
     * The video is available in HD (720p/720i-1080p/1080i) form.
     * 
* * HD = 1; */ HD(1), /** *
     * The video is available in 4K Ultra HD (UHD).
     * 
* * UHD = 2; */ UHD(2), UNRECOGNIZED(-1), ; /** *
     * The video is available in low-res form.
     * 
* * LOW = 0; */ public static final int LOW_VALUE = 0; /** *
     * The video is available in HD (720p/720i-1080p/1080i) form.
     * 
* * HD = 1; */ public static final int HD_VALUE = 1; /** *
     * The video is available in 4K Ultra HD (UHD).
     * 
* * UHD = 2; */ public static final int UHD_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VideoResolution valueOf(int value) { return forNumber(value); } public static VideoResolution forNumber(int value) { switch (value) { case 0: return LOW; case 1: return HD; case 2: return UHD; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< VideoResolution> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public VideoResolution findValueByNumber(int number) { return VideoResolution.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.bloombox.tpl.Media.getDescriptor().getEnumTypes().get(1); } private static final VideoResolution[] VALUES = values(); public static VideoResolution valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private VideoResolution(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:bloombox.page.VideoResolution) } public interface MediaAssetOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.page.MediaAsset) com.google.protobuf.MessageOrBuilder { /** *
     * Describes the kind of media being attached.
     * 
* * .opencannabis.media.MediaType.Kind kind = 1; */ int getKindValue(); /** *
     * Describes the kind of media being attached.
     * 
* * .opencannabis.media.MediaType.Kind kind = 1; */ io.opencannabis.schema.media.MediaItemType.MediaType.Kind getKind(); /** *
     * Decribes concrete information about an attached media link.
     * 
* * .bloombox.page.MediaAsset.Link link = 10; */ boolean hasLink(); /** *
     * Decribes concrete information about an attached media link.
     * 
* * .bloombox.page.MediaAsset.Link link = 10; */ io.bloombox.tpl.Media.MediaAsset.Link getLink(); /** *
     * Decribes concrete information about an attached media link.
     * 
* * .bloombox.page.MediaAsset.Link link = 10; */ io.bloombox.tpl.Media.MediaAsset.LinkOrBuilder getLinkOrBuilder(); /** *
     * Describes concrete information about an attached image.
     * 
* * .bloombox.page.MediaAsset.Image image = 20; */ boolean hasImage(); /** *
     * Describes concrete information about an attached image.
     * 
* * .bloombox.page.MediaAsset.Image image = 20; */ io.bloombox.tpl.Media.MediaAsset.Image getImage(); /** *
     * Describes concrete information about an attached image.
     * 
* * .bloombox.page.MediaAsset.Image image = 20; */ io.bloombox.tpl.Media.MediaAsset.ImageOrBuilder getImageOrBuilder(); /** *
     * Describes concrete information about an attached video.
     * 
* * .bloombox.page.MediaAsset.Video video = 30; */ boolean hasVideo(); /** *
     * Describes concrete information about an attached video.
     * 
* * .bloombox.page.MediaAsset.Video video = 30; */ io.bloombox.tpl.Media.MediaAsset.Video getVideo(); /** *
     * Describes concrete information about an attached video.
     * 
* * .bloombox.page.MediaAsset.Video video = 30; */ io.bloombox.tpl.Media.MediaAsset.VideoOrBuilder getVideoOrBuilder(); public io.bloombox.tpl.Media.MediaAsset.MediaCase getMediaCase(); } /** *
   * Defines the structure of attached content media, which is intended for emission in a given web page
   * via some sort of render process, depending on the context in which this media is used.
   * 
* * Protobuf type {@code bloombox.page.MediaAsset} */ public static final class MediaAsset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.page.MediaAsset) MediaAssetOrBuilder { private static final long serialVersionUID = 0L; // Use MediaAsset.newBuilder() to construct. private MediaAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MediaAsset() { kind_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MediaAsset( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); kind_ = rawValue; break; } case 82: { io.bloombox.tpl.Media.MediaAsset.Link.Builder subBuilder = null; if (mediaCase_ == 10) { subBuilder = ((io.bloombox.tpl.Media.MediaAsset.Link) media_).toBuilder(); } media_ = input.readMessage(io.bloombox.tpl.Media.MediaAsset.Link.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.bloombox.tpl.Media.MediaAsset.Link) media_); media_ = subBuilder.buildPartial(); } mediaCase_ = 10; break; } case 162: { io.bloombox.tpl.Media.MediaAsset.Image.Builder subBuilder = null; if (mediaCase_ == 20) { subBuilder = ((io.bloombox.tpl.Media.MediaAsset.Image) media_).toBuilder(); } media_ = input.readMessage(io.bloombox.tpl.Media.MediaAsset.Image.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.bloombox.tpl.Media.MediaAsset.Image) media_); media_ = subBuilder.buildPartial(); } mediaCase_ = 20; break; } case 242: { io.bloombox.tpl.Media.MediaAsset.Video.Builder subBuilder = null; if (mediaCase_ == 30) { subBuilder = ((io.bloombox.tpl.Media.MediaAsset.Video) media_).toBuilder(); } media_ = input.readMessage(io.bloombox.tpl.Media.MediaAsset.Video.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.bloombox.tpl.Media.MediaAsset.Video) media_); media_ = subBuilder.buildPartial(); } mediaCase_ = 30; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.class, io.bloombox.tpl.Media.MediaAsset.Builder.class); } public interface LinkOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.page.MediaAsset.Link) com.google.protobuf.MessageOrBuilder { /** *
       * URI to consider for an attached media link.
       * 
* * string uri = 1; */ java.lang.String getUri(); /** *
       * URI to consider for an attached media link.
       * 
* * string uri = 1; */ com.google.protobuf.ByteString getUriBytes(); /** *
       * Alternative text to display for this link, if applicable.
       * 
* * string alt = 2; */ java.lang.String getAlt(); /** *
       * Alternative text to display for this link, if applicable.
       * 
* * string alt = 2; */ com.google.protobuf.ByteString getAltBytes(); } /** *
     * Describes concrete information about a media link, attached to some web page or data point.
     * 
* * Protobuf type {@code bloombox.page.MediaAsset.Link} */ public static final class Link extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.page.MediaAsset.Link) LinkOrBuilder { private static final long serialVersionUID = 0L; // Use Link.newBuilder() to construct. private Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Link() { uri_ = ""; alt_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Link( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); uri_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); alt_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Link_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.Link.class, io.bloombox.tpl.Media.MediaAsset.Link.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** *
       * URI to consider for an attached media link.
       * 
* * string uri = 1; */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** *
       * URI to consider for an attached media link.
       * 
* * string uri = 1; */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALT_FIELD_NUMBER = 2; private volatile java.lang.Object alt_; /** *
       * Alternative text to display for this link, if applicable.
       * 
* * string alt = 2; */ public java.lang.String getAlt() { java.lang.Object ref = alt_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alt_ = s; return s; } } /** *
       * Alternative text to display for this link, if applicable.
       * 
* * string alt = 2; */ public com.google.protobuf.ByteString getAltBytes() { java.lang.Object ref = alt_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alt_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getUriBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } if (!getAltBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alt_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getUriBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (!getAltBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alt_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.bloombox.tpl.Media.MediaAsset.Link)) { return super.equals(obj); } io.bloombox.tpl.Media.MediaAsset.Link other = (io.bloombox.tpl.Media.MediaAsset.Link) obj; if (!getUri() .equals(other.getUri())) return false; if (!getAlt() .equals(other.getAlt())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + ALT_FIELD_NUMBER; hash = (53 * hash) + getAlt().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.tpl.Media.MediaAsset.Link parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Link parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Link parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Link parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Link parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Link parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Link parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Link parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Link parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Link parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Link parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Link parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.bloombox.tpl.Media.MediaAsset.Link prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Describes concrete information about a media link, attached to some web page or data point.
       * 
* * Protobuf type {@code bloombox.page.MediaAsset.Link} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.page.MediaAsset.Link) io.bloombox.tpl.Media.MediaAsset.LinkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Link_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.Link.class, io.bloombox.tpl.Media.MediaAsset.Link.Builder.class); } // Construct using io.bloombox.tpl.Media.MediaAsset.Link.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); uri_ = ""; alt_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Link_descriptor; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Link getDefaultInstanceForType() { return io.bloombox.tpl.Media.MediaAsset.Link.getDefaultInstance(); } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Link build() { io.bloombox.tpl.Media.MediaAsset.Link result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Link buildPartial() { io.bloombox.tpl.Media.MediaAsset.Link result = new io.bloombox.tpl.Media.MediaAsset.Link(this); result.uri_ = uri_; result.alt_ = alt_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.tpl.Media.MediaAsset.Link) { return mergeFrom((io.bloombox.tpl.Media.MediaAsset.Link)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.tpl.Media.MediaAsset.Link other) { if (other == io.bloombox.tpl.Media.MediaAsset.Link.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (!other.getAlt().isEmpty()) { alt_ = other.alt_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.tpl.Media.MediaAsset.Link parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.tpl.Media.MediaAsset.Link) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object uri_ = ""; /** *
         * URI to consider for an attached media link.
         * 
* * string uri = 1; */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * URI to consider for an attached media link.
         * 
* * string uri = 1; */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * URI to consider for an attached media link.
         * 
* * string uri = 1; */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; onChanged(); return this; } /** *
         * URI to consider for an attached media link.
         * 
* * string uri = 1; */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** *
         * URI to consider for an attached media link.
         * 
* * string uri = 1; */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; onChanged(); return this; } private java.lang.Object alt_ = ""; /** *
         * Alternative text to display for this link, if applicable.
         * 
* * string alt = 2; */ public java.lang.String getAlt() { java.lang.Object ref = alt_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alt_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Alternative text to display for this link, if applicable.
         * 
* * string alt = 2; */ public com.google.protobuf.ByteString getAltBytes() { java.lang.Object ref = alt_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alt_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Alternative text to display for this link, if applicable.
         * 
* * string alt = 2; */ public Builder setAlt( java.lang.String value) { if (value == null) { throw new NullPointerException(); } alt_ = value; onChanged(); return this; } /** *
         * Alternative text to display for this link, if applicable.
         * 
* * string alt = 2; */ public Builder clearAlt() { alt_ = getDefaultInstance().getAlt(); onChanged(); return this; } /** *
         * Alternative text to display for this link, if applicable.
         * 
* * string alt = 2; */ public Builder setAltBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); alt_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.page.MediaAsset.Link) } // @@protoc_insertion_point(class_scope:bloombox.page.MediaAsset.Link) private static final io.bloombox.tpl.Media.MediaAsset.Link DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.tpl.Media.MediaAsset.Link(); } public static io.bloombox.tpl.Media.MediaAsset.Link getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Link parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Link(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Link getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.page.MediaAsset.Image) com.google.protobuf.MessageOrBuilder { /** *
       * Concrete information regarding this image asset.
       * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ java.util.List getAssetList(); /** *
       * Concrete information regarding this image asset.
       * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset getAsset(int index); /** *
       * Concrete information regarding this image asset.
       * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ int getAssetCount(); /** *
       * Concrete information regarding this image asset.
       * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ java.util.List getAssetOrBuilderList(); /** *
       * Concrete information regarding this image asset.
       * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ io.bloombox.tpl.Media.MediaAsset.Image.ImageAssetOrBuilder getAssetOrBuilder( int index); } /** *
     * Describes concrete information about an image asset, attached to some web page or data point.
     * 
* * Protobuf type {@code bloombox.page.MediaAsset.Image} */ public static final class Image extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.page.MediaAsset.Image) ImageOrBuilder { private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Image() { asset_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { asset_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } asset_.add( input.readMessage(io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { asset_ = java.util.Collections.unmodifiableList(asset_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.Image.class, io.bloombox.tpl.Media.MediaAsset.Image.Builder.class); } public interface ImageAssetOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.page.MediaAsset.Image.ImageAsset) com.google.protobuf.MessageOrBuilder { /** *
         * Specifies the intended resolution of this image asset.
         * 
* * .opencannabis.media.MediaType.ImageDPI resolution = 1; */ int getResolutionValue(); /** *
         * Specifies the intended resolution of this image asset.
         * 
* * .opencannabis.media.MediaType.ImageDPI resolution = 1; */ io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI getResolution(); /** *
         * Specifies the kind of image attached as this asset.
         * 
* * .opencannabis.media.MediaType.ImageKind kind = 2; */ int getKindValue(); /** *
         * Specifies the kind of image attached as this asset.
         * 
* * .opencannabis.media.MediaType.ImageKind kind = 2; */ io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind getKind(); /** *
         * Specifies the native width of this image asset.
         * 
* * uint64 width = 3; */ long getWidth(); /** *
         * Specifies the native height of this image asset.
         * 
* * uint64 height = 4; */ long getHeight(); /** *
         * Raw Base64 content to be embedded directly in an image tag.
         * 
* * string b64 = 10; */ java.lang.String getB64(); /** *
         * Raw Base64 content to be embedded directly in an image tag.
         * 
* * string b64 = 10; */ com.google.protobuf.ByteString getB64Bytes(); /** *
         * URI to be used in reference to this image asset.
         * 
* * string uri = 20; */ java.lang.String getUri(); /** *
         * URI to be used in reference to this image asset.
         * 
* * string uri = 20; */ com.google.protobuf.ByteString getUriBytes(); /** *
         * Standard OpenCannabis media reference to attach.
         * 
* * .opencannabis.media.MediaReference ref = 30; */ boolean hasRef(); /** *
         * Standard OpenCannabis media reference to attach.
         * 
* * .opencannabis.media.MediaReference ref = 30; */ io.opencannabis.schema.media.MediaItemKey.MediaReference getRef(); /** *
         * Standard OpenCannabis media reference to attach.
         * 
* * .opencannabis.media.MediaReference ref = 30; */ io.opencannabis.schema.media.MediaItemKey.MediaReferenceOrBuilder getRefOrBuilder(); public io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.ContentCase getContentCase(); } /** *
       * Describes information about an individual image asset, which is part of an attached image.
       * 
* * Protobuf type {@code bloombox.page.MediaAsset.Image.ImageAsset} */ public static final class ImageAsset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.page.MediaAsset.Image.ImageAsset) ImageAssetOrBuilder { private static final long serialVersionUID = 0L; // Use ImageAsset.newBuilder() to construct. private ImageAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImageAsset() { resolution_ = 0; kind_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ImageAsset( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); resolution_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); kind_ = rawValue; break; } case 24: { width_ = input.readUInt64(); break; } case 32: { height_ = input.readUInt64(); break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); contentCase_ = 10; content_ = s; break; } case 162: { java.lang.String s = input.readStringRequireUtf8(); contentCase_ = 20; content_ = s; break; } case 242: { io.opencannabis.schema.media.MediaItemKey.MediaReference.Builder subBuilder = null; if (contentCase_ == 30) { subBuilder = ((io.opencannabis.schema.media.MediaItemKey.MediaReference) content_).toBuilder(); } content_ = input.readMessage(io.opencannabis.schema.media.MediaItemKey.MediaReference.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.opencannabis.schema.media.MediaItemKey.MediaReference) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 30; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Image_ImageAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Image_ImageAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.class, io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder.class); } private int contentCase_ = 0; private java.lang.Object content_; public enum ContentCase implements com.google.protobuf.Internal.EnumLite { B64(10), URI(20), REF(30), CONTENT_NOT_SET(0); private final int value; private ContentCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ContentCase valueOf(int value) { return forNumber(value); } public static ContentCase forNumber(int value) { switch (value) { case 10: return B64; case 20: return URI; case 30: return REF; case 0: return CONTENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ContentCase getContentCase() { return ContentCase.forNumber( contentCase_); } public static final int RESOLUTION_FIELD_NUMBER = 1; private int resolution_; /** *
         * Specifies the intended resolution of this image asset.
         * 
* * .opencannabis.media.MediaType.ImageDPI resolution = 1; */ public int getResolutionValue() { return resolution_; } /** *
         * Specifies the intended resolution of this image asset.
         * 
* * .opencannabis.media.MediaType.ImageDPI resolution = 1; */ public io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI getResolution() { @SuppressWarnings("deprecation") io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI result = io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI.valueOf(resolution_); return result == null ? io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI.UNRECOGNIZED : result; } public static final int KIND_FIELD_NUMBER = 2; private int kind_; /** *
         * Specifies the kind of image attached as this asset.
         * 
* * .opencannabis.media.MediaType.ImageKind kind = 2; */ public int getKindValue() { return kind_; } /** *
         * Specifies the kind of image attached as this asset.
         * 
* * .opencannabis.media.MediaType.ImageKind kind = 2; */ public io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind getKind() { @SuppressWarnings("deprecation") io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind result = io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind.valueOf(kind_); return result == null ? io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind.UNRECOGNIZED : result; } public static final int WIDTH_FIELD_NUMBER = 3; private long width_; /** *
         * Specifies the native width of this image asset.
         * 
* * uint64 width = 3; */ public long getWidth() { return width_; } public static final int HEIGHT_FIELD_NUMBER = 4; private long height_; /** *
         * Specifies the native height of this image asset.
         * 
* * uint64 height = 4; */ public long getHeight() { return height_; } public static final int B64_FIELD_NUMBER = 10; /** *
         * Raw Base64 content to be embedded directly in an image tag.
         * 
* * string b64 = 10; */ public java.lang.String getB64() { java.lang.Object ref = ""; if (contentCase_ == 10) { ref = content_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (contentCase_ == 10) { content_ = s; } return s; } } /** *
         * Raw Base64 content to be embedded directly in an image tag.
         * 
* * string b64 = 10; */ public com.google.protobuf.ByteString getB64Bytes() { java.lang.Object ref = ""; if (contentCase_ == 10) { ref = content_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (contentCase_ == 10) { content_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URI_FIELD_NUMBER = 20; /** *
         * URI to be used in reference to this image asset.
         * 
* * string uri = 20; */ public java.lang.String getUri() { java.lang.Object ref = ""; if (contentCase_ == 20) { ref = content_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (contentCase_ == 20) { content_ = s; } return s; } } /** *
         * URI to be used in reference to this image asset.
         * 
* * string uri = 20; */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (contentCase_ == 20) { ref = content_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (contentCase_ == 20) { content_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REF_FIELD_NUMBER = 30; /** *
         * Standard OpenCannabis media reference to attach.
         * 
* * .opencannabis.media.MediaReference ref = 30; */ public boolean hasRef() { return contentCase_ == 30; } /** *
         * Standard OpenCannabis media reference to attach.
         * 
* * .opencannabis.media.MediaReference ref = 30; */ public io.opencannabis.schema.media.MediaItemKey.MediaReference getRef() { if (contentCase_ == 30) { return (io.opencannabis.schema.media.MediaItemKey.MediaReference) content_; } return io.opencannabis.schema.media.MediaItemKey.MediaReference.getDefaultInstance(); } /** *
         * Standard OpenCannabis media reference to attach.
         * 
* * .opencannabis.media.MediaReference ref = 30; */ public io.opencannabis.schema.media.MediaItemKey.MediaReferenceOrBuilder getRefOrBuilder() { if (contentCase_ == 30) { return (io.opencannabis.schema.media.MediaItemKey.MediaReference) content_; } return io.opencannabis.schema.media.MediaItemKey.MediaReference.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resolution_ != io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI.X1.getNumber()) { output.writeEnum(1, resolution_); } if (kind_ != io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind.UNSPECIFIED_IMAGE_TYPE.getNumber()) { output.writeEnum(2, kind_); } if (width_ != 0L) { output.writeUInt64(3, width_); } if (height_ != 0L) { output.writeUInt64(4, height_); } if (contentCase_ == 10) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, content_); } if (contentCase_ == 20) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, content_); } if (contentCase_ == 30) { output.writeMessage(30, (io.opencannabis.schema.media.MediaItemKey.MediaReference) content_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (resolution_ != io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI.X1.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, resolution_); } if (kind_ != io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind.UNSPECIFIED_IMAGE_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, kind_); } if (width_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, width_); } if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, height_); } if (contentCase_ == 10) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, content_); } if (contentCase_ == 20) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, content_); } if (contentCase_ == 30) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, (io.opencannabis.schema.media.MediaItemKey.MediaReference) content_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset)) { return super.equals(obj); } io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset other = (io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset) obj; if (resolution_ != other.resolution_) return false; if (kind_ != other.kind_) return false; if (getWidth() != other.getWidth()) return false; if (getHeight() != other.getHeight()) return false; if (!getContentCase().equals(other.getContentCase())) return false; switch (contentCase_) { case 10: if (!getB64() .equals(other.getB64())) return false; break; case 20: if (!getUri() .equals(other.getUri())) return false; break; case 30: if (!getRef() .equals(other.getRef())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOLUTION_FIELD_NUMBER; hash = (53 * hash) + resolution_; hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + kind_; hash = (37 * hash) + WIDTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWidth()); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); switch (contentCase_) { case 10: hash = (37 * hash) + B64_FIELD_NUMBER; hash = (53 * hash) + getB64().hashCode(); break; case 20: hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); break; case 30: hash = (37 * hash) + REF_FIELD_NUMBER; hash = (53 * hash) + getRef().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Describes information about an individual image asset, which is part of an attached image.
         * 
* * Protobuf type {@code bloombox.page.MediaAsset.Image.ImageAsset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.page.MediaAsset.Image.ImageAsset) io.bloombox.tpl.Media.MediaAsset.Image.ImageAssetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Image_ImageAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Image_ImageAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.class, io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder.class); } // Construct using io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); resolution_ = 0; kind_ = 0; width_ = 0L; height_ = 0L; contentCase_ = 0; content_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Image_ImageAsset_descriptor; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset getDefaultInstanceForType() { return io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.getDefaultInstance(); } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset build() { io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset buildPartial() { io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset result = new io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset(this); result.resolution_ = resolution_; result.kind_ = kind_; result.width_ = width_; result.height_ = height_; if (contentCase_ == 10) { result.content_ = content_; } if (contentCase_ == 20) { result.content_ = content_; } if (contentCase_ == 30) { if (refBuilder_ == null) { result.content_ = content_; } else { result.content_ = refBuilder_.build(); } } result.contentCase_ = contentCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset) { return mergeFrom((io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset other) { if (other == io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.getDefaultInstance()) return this; if (other.resolution_ != 0) { setResolutionValue(other.getResolutionValue()); } if (other.kind_ != 0) { setKindValue(other.getKindValue()); } if (other.getWidth() != 0L) { setWidth(other.getWidth()); } if (other.getHeight() != 0L) { setHeight(other.getHeight()); } switch (other.getContentCase()) { case B64: { contentCase_ = 10; content_ = other.content_; onChanged(); break; } case URI: { contentCase_ = 20; content_ = other.content_; onChanged(); break; } case REF: { mergeRef(other.getRef()); break; } case CONTENT_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int contentCase_ = 0; private java.lang.Object content_; public ContentCase getContentCase() { return ContentCase.forNumber( contentCase_); } public Builder clearContent() { contentCase_ = 0; content_ = null; onChanged(); return this; } private int resolution_ = 0; /** *
           * Specifies the intended resolution of this image asset.
           * 
* * .opencannabis.media.MediaType.ImageDPI resolution = 1; */ public int getResolutionValue() { return resolution_; } /** *
           * Specifies the intended resolution of this image asset.
           * 
* * .opencannabis.media.MediaType.ImageDPI resolution = 1; */ public Builder setResolutionValue(int value) { resolution_ = value; onChanged(); return this; } /** *
           * Specifies the intended resolution of this image asset.
           * 
* * .opencannabis.media.MediaType.ImageDPI resolution = 1; */ public io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI getResolution() { @SuppressWarnings("deprecation") io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI result = io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI.valueOf(resolution_); return result == null ? io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI.UNRECOGNIZED : result; } /** *
           * Specifies the intended resolution of this image asset.
           * 
* * .opencannabis.media.MediaType.ImageDPI resolution = 1; */ public Builder setResolution(io.opencannabis.schema.media.MediaItemType.MediaType.ImageDPI value) { if (value == null) { throw new NullPointerException(); } resolution_ = value.getNumber(); onChanged(); return this; } /** *
           * Specifies the intended resolution of this image asset.
           * 
* * .opencannabis.media.MediaType.ImageDPI resolution = 1; */ public Builder clearResolution() { resolution_ = 0; onChanged(); return this; } private int kind_ = 0; /** *
           * Specifies the kind of image attached as this asset.
           * 
* * .opencannabis.media.MediaType.ImageKind kind = 2; */ public int getKindValue() { return kind_; } /** *
           * Specifies the kind of image attached as this asset.
           * 
* * .opencannabis.media.MediaType.ImageKind kind = 2; */ public Builder setKindValue(int value) { kind_ = value; onChanged(); return this; } /** *
           * Specifies the kind of image attached as this asset.
           * 
* * .opencannabis.media.MediaType.ImageKind kind = 2; */ public io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind getKind() { @SuppressWarnings("deprecation") io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind result = io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind.valueOf(kind_); return result == null ? io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind.UNRECOGNIZED : result; } /** *
           * Specifies the kind of image attached as this asset.
           * 
* * .opencannabis.media.MediaType.ImageKind kind = 2; */ public Builder setKind(io.opencannabis.schema.media.MediaItemType.MediaType.ImageKind value) { if (value == null) { throw new NullPointerException(); } kind_ = value.getNumber(); onChanged(); return this; } /** *
           * Specifies the kind of image attached as this asset.
           * 
* * .opencannabis.media.MediaType.ImageKind kind = 2; */ public Builder clearKind() { kind_ = 0; onChanged(); return this; } private long width_ ; /** *
           * Specifies the native width of this image asset.
           * 
* * uint64 width = 3; */ public long getWidth() { return width_; } /** *
           * Specifies the native width of this image asset.
           * 
* * uint64 width = 3; */ public Builder setWidth(long value) { width_ = value; onChanged(); return this; } /** *
           * Specifies the native width of this image asset.
           * 
* * uint64 width = 3; */ public Builder clearWidth() { width_ = 0L; onChanged(); return this; } private long height_ ; /** *
           * Specifies the native height of this image asset.
           * 
* * uint64 height = 4; */ public long getHeight() { return height_; } /** *
           * Specifies the native height of this image asset.
           * 
* * uint64 height = 4; */ public Builder setHeight(long value) { height_ = value; onChanged(); return this; } /** *
           * Specifies the native height of this image asset.
           * 
* * uint64 height = 4; */ public Builder clearHeight() { height_ = 0L; onChanged(); return this; } /** *
           * Raw Base64 content to be embedded directly in an image tag.
           * 
* * string b64 = 10; */ public java.lang.String getB64() { java.lang.Object ref = ""; if (contentCase_ == 10) { ref = content_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (contentCase_ == 10) { content_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * Raw Base64 content to be embedded directly in an image tag.
           * 
* * string b64 = 10; */ public com.google.protobuf.ByteString getB64Bytes() { java.lang.Object ref = ""; if (contentCase_ == 10) { ref = content_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (contentCase_ == 10) { content_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * Raw Base64 content to be embedded directly in an image tag.
           * 
* * string b64 = 10; */ public Builder setB64( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contentCase_ = 10; content_ = value; onChanged(); return this; } /** *
           * Raw Base64 content to be embedded directly in an image tag.
           * 
* * string b64 = 10; */ public Builder clearB64() { if (contentCase_ == 10) { contentCase_ = 0; content_ = null; onChanged(); } return this; } /** *
           * Raw Base64 content to be embedded directly in an image tag.
           * 
* * string b64 = 10; */ public Builder setB64Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentCase_ = 10; content_ = value; onChanged(); return this; } /** *
           * URI to be used in reference to this image asset.
           * 
* * string uri = 20; */ public java.lang.String getUri() { java.lang.Object ref = ""; if (contentCase_ == 20) { ref = content_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (contentCase_ == 20) { content_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * URI to be used in reference to this image asset.
           * 
* * string uri = 20; */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (contentCase_ == 20) { ref = content_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (contentCase_ == 20) { content_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * URI to be used in reference to this image asset.
           * 
* * string uri = 20; */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contentCase_ = 20; content_ = value; onChanged(); return this; } /** *
           * URI to be used in reference to this image asset.
           * 
* * string uri = 20; */ public Builder clearUri() { if (contentCase_ == 20) { contentCase_ = 0; content_ = null; onChanged(); } return this; } /** *
           * URI to be used in reference to this image asset.
           * 
* * string uri = 20; */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentCase_ = 20; content_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.media.MediaItemKey.MediaReference, io.opencannabis.schema.media.MediaItemKey.MediaReference.Builder, io.opencannabis.schema.media.MediaItemKey.MediaReferenceOrBuilder> refBuilder_; /** *
           * Standard OpenCannabis media reference to attach.
           * 
* * .opencannabis.media.MediaReference ref = 30; */ public boolean hasRef() { return contentCase_ == 30; } /** *
           * Standard OpenCannabis media reference to attach.
           * 
* * .opencannabis.media.MediaReference ref = 30; */ public io.opencannabis.schema.media.MediaItemKey.MediaReference getRef() { if (refBuilder_ == null) { if (contentCase_ == 30) { return (io.opencannabis.schema.media.MediaItemKey.MediaReference) content_; } return io.opencannabis.schema.media.MediaItemKey.MediaReference.getDefaultInstance(); } else { if (contentCase_ == 30) { return refBuilder_.getMessage(); } return io.opencannabis.schema.media.MediaItemKey.MediaReference.getDefaultInstance(); } } /** *
           * Standard OpenCannabis media reference to attach.
           * 
* * .opencannabis.media.MediaReference ref = 30; */ public Builder setRef(io.opencannabis.schema.media.MediaItemKey.MediaReference value) { if (refBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { refBuilder_.setMessage(value); } contentCase_ = 30; return this; } /** *
           * Standard OpenCannabis media reference to attach.
           * 
* * .opencannabis.media.MediaReference ref = 30; */ public Builder setRef( io.opencannabis.schema.media.MediaItemKey.MediaReference.Builder builderForValue) { if (refBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { refBuilder_.setMessage(builderForValue.build()); } contentCase_ = 30; return this; } /** *
           * Standard OpenCannabis media reference to attach.
           * 
* * .opencannabis.media.MediaReference ref = 30; */ public Builder mergeRef(io.opencannabis.schema.media.MediaItemKey.MediaReference value) { if (refBuilder_ == null) { if (contentCase_ == 30 && content_ != io.opencannabis.schema.media.MediaItemKey.MediaReference.getDefaultInstance()) { content_ = io.opencannabis.schema.media.MediaItemKey.MediaReference.newBuilder((io.opencannabis.schema.media.MediaItemKey.MediaReference) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 30) { refBuilder_.mergeFrom(value); } refBuilder_.setMessage(value); } contentCase_ = 30; return this; } /** *
           * Standard OpenCannabis media reference to attach.
           * 
* * .opencannabis.media.MediaReference ref = 30; */ public Builder clearRef() { if (refBuilder_ == null) { if (contentCase_ == 30) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 30) { contentCase_ = 0; content_ = null; } refBuilder_.clear(); } return this; } /** *
           * Standard OpenCannabis media reference to attach.
           * 
* * .opencannabis.media.MediaReference ref = 30; */ public io.opencannabis.schema.media.MediaItemKey.MediaReference.Builder getRefBuilder() { return getRefFieldBuilder().getBuilder(); } /** *
           * Standard OpenCannabis media reference to attach.
           * 
* * .opencannabis.media.MediaReference ref = 30; */ public io.opencannabis.schema.media.MediaItemKey.MediaReferenceOrBuilder getRefOrBuilder() { if ((contentCase_ == 30) && (refBuilder_ != null)) { return refBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 30) { return (io.opencannabis.schema.media.MediaItemKey.MediaReference) content_; } return io.opencannabis.schema.media.MediaItemKey.MediaReference.getDefaultInstance(); } } /** *
           * Standard OpenCannabis media reference to attach.
           * 
* * .opencannabis.media.MediaReference ref = 30; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.media.MediaItemKey.MediaReference, io.opencannabis.schema.media.MediaItemKey.MediaReference.Builder, io.opencannabis.schema.media.MediaItemKey.MediaReferenceOrBuilder> getRefFieldBuilder() { if (refBuilder_ == null) { if (!(contentCase_ == 30)) { content_ = io.opencannabis.schema.media.MediaItemKey.MediaReference.getDefaultInstance(); } refBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.media.MediaItemKey.MediaReference, io.opencannabis.schema.media.MediaItemKey.MediaReference.Builder, io.opencannabis.schema.media.MediaItemKey.MediaReferenceOrBuilder>( (io.opencannabis.schema.media.MediaItemKey.MediaReference) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 30; onChanged();; return refBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.page.MediaAsset.Image.ImageAsset) } // @@protoc_insertion_point(class_scope:bloombox.page.MediaAsset.Image.ImageAsset) private static final io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset(); } public static io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImageAsset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ImageAsset(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ASSET_FIELD_NUMBER = 1; private java.util.List asset_; /** *
       * Concrete information regarding this image asset.
       * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public java.util.List getAssetList() { return asset_; } /** *
       * Concrete information regarding this image asset.
       * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public java.util.List getAssetOrBuilderList() { return asset_; } /** *
       * Concrete information regarding this image asset.
       * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public int getAssetCount() { return asset_.size(); } /** *
       * Concrete information regarding this image asset.
       * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset getAsset(int index) { return asset_.get(index); } /** *
       * Concrete information regarding this image asset.
       * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public io.bloombox.tpl.Media.MediaAsset.Image.ImageAssetOrBuilder getAssetOrBuilder( int index) { return asset_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < asset_.size(); i++) { output.writeMessage(1, asset_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < asset_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, asset_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.bloombox.tpl.Media.MediaAsset.Image)) { return super.equals(obj); } io.bloombox.tpl.Media.MediaAsset.Image other = (io.bloombox.tpl.Media.MediaAsset.Image) obj; if (!getAssetList() .equals(other.getAssetList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getAssetCount() > 0) { hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAssetList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.tpl.Media.MediaAsset.Image parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Image parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Image parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Image parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Image parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Image parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Image parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Image parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Image parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Image parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Image parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.bloombox.tpl.Media.MediaAsset.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Describes concrete information about an image asset, attached to some web page or data point.
       * 
* * Protobuf type {@code bloombox.page.MediaAsset.Image} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.page.MediaAsset.Image) io.bloombox.tpl.Media.MediaAsset.ImageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.Image.class, io.bloombox.tpl.Media.MediaAsset.Image.Builder.class); } // Construct using io.bloombox.tpl.Media.MediaAsset.Image.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAssetFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (assetBuilder_ == null) { asset_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { assetBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Image_descriptor; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Image getDefaultInstanceForType() { return io.bloombox.tpl.Media.MediaAsset.Image.getDefaultInstance(); } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Image build() { io.bloombox.tpl.Media.MediaAsset.Image result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Image buildPartial() { io.bloombox.tpl.Media.MediaAsset.Image result = new io.bloombox.tpl.Media.MediaAsset.Image(this); int from_bitField0_ = bitField0_; if (assetBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { asset_ = java.util.Collections.unmodifiableList(asset_); bitField0_ = (bitField0_ & ~0x00000001); } result.asset_ = asset_; } else { result.asset_ = assetBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.tpl.Media.MediaAsset.Image) { return mergeFrom((io.bloombox.tpl.Media.MediaAsset.Image)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.tpl.Media.MediaAsset.Image other) { if (other == io.bloombox.tpl.Media.MediaAsset.Image.getDefaultInstance()) return this; if (assetBuilder_ == null) { if (!other.asset_.isEmpty()) { if (asset_.isEmpty()) { asset_ = other.asset_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssetIsMutable(); asset_.addAll(other.asset_); } onChanged(); } } else { if (!other.asset_.isEmpty()) { if (assetBuilder_.isEmpty()) { assetBuilder_.dispose(); assetBuilder_ = null; asset_ = other.asset_; bitField0_ = (bitField0_ & ~0x00000001); assetBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAssetFieldBuilder() : null; } else { assetBuilder_.addAllMessages(other.asset_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.tpl.Media.MediaAsset.Image parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.tpl.Media.MediaAsset.Image) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List asset_ = java.util.Collections.emptyList(); private void ensureAssetIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { asset_ = new java.util.ArrayList(asset_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset, io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder, io.bloombox.tpl.Media.MediaAsset.Image.ImageAssetOrBuilder> assetBuilder_; /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public java.util.List getAssetList() { if (assetBuilder_ == null) { return java.util.Collections.unmodifiableList(asset_); } else { return assetBuilder_.getMessageList(); } } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public int getAssetCount() { if (assetBuilder_ == null) { return asset_.size(); } else { return assetBuilder_.getCount(); } } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset getAsset(int index) { if (assetBuilder_ == null) { return asset_.get(index); } else { return assetBuilder_.getMessage(index); } } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public Builder setAsset( int index, io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset value) { if (assetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetIsMutable(); asset_.set(index, value); onChanged(); } else { assetBuilder_.setMessage(index, value); } return this; } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public Builder setAsset( int index, io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder builderForValue) { if (assetBuilder_ == null) { ensureAssetIsMutable(); asset_.set(index, builderForValue.build()); onChanged(); } else { assetBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public Builder addAsset(io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset value) { if (assetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetIsMutable(); asset_.add(value); onChanged(); } else { assetBuilder_.addMessage(value); } return this; } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public Builder addAsset( int index, io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset value) { if (assetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetIsMutable(); asset_.add(index, value); onChanged(); } else { assetBuilder_.addMessage(index, value); } return this; } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public Builder addAsset( io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder builderForValue) { if (assetBuilder_ == null) { ensureAssetIsMutable(); asset_.add(builderForValue.build()); onChanged(); } else { assetBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public Builder addAsset( int index, io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder builderForValue) { if (assetBuilder_ == null) { ensureAssetIsMutable(); asset_.add(index, builderForValue.build()); onChanged(); } else { assetBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public Builder addAllAsset( java.lang.Iterable values) { if (assetBuilder_ == null) { ensureAssetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, asset_); onChanged(); } else { assetBuilder_.addAllMessages(values); } return this; } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public Builder clearAsset() { if (assetBuilder_ == null) { asset_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { assetBuilder_.clear(); } return this; } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public Builder removeAsset(int index) { if (assetBuilder_ == null) { ensureAssetIsMutable(); asset_.remove(index); onChanged(); } else { assetBuilder_.remove(index); } return this; } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder getAssetBuilder( int index) { return getAssetFieldBuilder().getBuilder(index); } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public io.bloombox.tpl.Media.MediaAsset.Image.ImageAssetOrBuilder getAssetOrBuilder( int index) { if (assetBuilder_ == null) { return asset_.get(index); } else { return assetBuilder_.getMessageOrBuilder(index); } } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public java.util.List getAssetOrBuilderList() { if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(asset_); } } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder addAssetBuilder() { return getAssetFieldBuilder().addBuilder( io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.getDefaultInstance()); } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder addAssetBuilder( int index) { return getAssetFieldBuilder().addBuilder( index, io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.getDefaultInstance()); } /** *
         * Concrete information regarding this image asset.
         * 
* * repeated .bloombox.page.MediaAsset.Image.ImageAsset asset = 1; */ public java.util.List getAssetBuilderList() { return getAssetFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset, io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder, io.bloombox.tpl.Media.MediaAsset.Image.ImageAssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { assetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset, io.bloombox.tpl.Media.MediaAsset.Image.ImageAsset.Builder, io.bloombox.tpl.Media.MediaAsset.Image.ImageAssetOrBuilder>( asset_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); asset_ = null; } return assetBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.page.MediaAsset.Image) } // @@protoc_insertion_point(class_scope:bloombox.page.MediaAsset.Image) private static final io.bloombox.tpl.Media.MediaAsset.Image DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.tpl.Media.MediaAsset.Image(); } public static io.bloombox.tpl.Media.MediaAsset.Image getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Image parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Image(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VideoOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.page.MediaAsset.Video) com.google.protobuf.MessageOrBuilder { /** *
       * Describes where the video may be streamed from, or accessed.
       * 
* * .bloombox.page.VideoProvider provider = 1; */ int getProviderValue(); /** *
       * Describes where the video may be streamed from, or accessed.
       * 
* * .bloombox.page.VideoProvider provider = 1; */ io.bloombox.tpl.Media.VideoProvider getProvider(); /** *
       * Title to display for this video asset.
       * 
* * string title = 2; */ java.lang.String getTitle(); /** *
       * Title to display for this video asset.
       * 
* * string title = 2; */ com.google.protobuf.ByteString getTitleBytes(); /** *
       * Description for this video asset.
       * 
* * string description = 3; */ java.lang.String getDescription(); /** *
       * Description for this video asset.
       * 
* * string description = 3; */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
       * Duration of the video asset, in milliseconds.
       * 
* * uint64 run_time = 4; */ long getRunTime(); /** *
       * Describes the assets that back this video media.
       * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ java.util.List getAssetList(); /** *
       * Describes the assets that back this video media.
       * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset getAsset(int index); /** *
       * Describes the assets that back this video media.
       * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ int getAssetCount(); /** *
       * Describes the assets that back this video media.
       * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ java.util.List getAssetOrBuilderList(); /** *
       * Describes the assets that back this video media.
       * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ io.bloombox.tpl.Media.MediaAsset.Video.VideoAssetOrBuilder getAssetOrBuilder( int index); } /** *
     * Describes concrete information about a video asset, attached to some web page or data point.
     * 
* * Protobuf type {@code bloombox.page.MediaAsset.Video} */ public static final class Video extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.page.MediaAsset.Video) VideoOrBuilder { private static final long serialVersionUID = 0L; // Use Video.newBuilder() to construct. private Video(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Video() { provider_ = 0; title_ = ""; description_ = ""; asset_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Video( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); provider_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); title_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 32: { runTime_ = input.readUInt64(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { asset_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } asset_.add( input.readMessage(io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) != 0)) { asset_ = java.util.Collections.unmodifiableList(asset_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Video_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Video_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.Video.class, io.bloombox.tpl.Media.MediaAsset.Video.Builder.class); } public interface VideoAssetOrBuilder extends // @@protoc_insertion_point(interface_extends:bloombox.page.MediaAsset.Video.VideoAsset) com.google.protobuf.MessageOrBuilder { /** *
         * Resolutions at which a video might be available.
         * 
* * .bloombox.page.VideoResolution resolution = 1; */ int getResolutionValue(); /** *
         * Resolutions at which a video might be available.
         * 
* * .bloombox.page.VideoResolution resolution = 1; */ io.bloombox.tpl.Media.VideoResolution getResolution(); /** *
         * Image asset to be used as a thumbnail for this video asset.
         * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ boolean hasThumb(); /** *
         * Image asset to be used as a thumbnail for this video asset.
         * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ io.bloombox.tpl.Media.MediaAsset.Image getThumb(); /** *
         * Image asset to be used as a thumbnail for this video asset.
         * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ io.bloombox.tpl.Media.MediaAsset.ImageOrBuilder getThumbOrBuilder(); /** *
         * URI where the video may be streamed or accessed.
         * 
* * string uri = 3; */ java.lang.String getUri(); /** *
         * URI where the video may be streamed or accessed.
         * 
* * string uri = 3; */ com.google.protobuf.ByteString getUriBytes(); } /** *
       * Describes information about an individual video asset, which is part of an attached video.
       * 
* * Protobuf type {@code bloombox.page.MediaAsset.Video.VideoAsset} */ public static final class VideoAsset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.page.MediaAsset.Video.VideoAsset) VideoAssetOrBuilder { private static final long serialVersionUID = 0L; // Use VideoAsset.newBuilder() to construct. private VideoAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VideoAsset() { resolution_ = 0; uri_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VideoAsset( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); resolution_ = rawValue; break; } case 18: { io.bloombox.tpl.Media.MediaAsset.Image.Builder subBuilder = null; if (thumb_ != null) { subBuilder = thumb_.toBuilder(); } thumb_ = input.readMessage(io.bloombox.tpl.Media.MediaAsset.Image.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(thumb_); thumb_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); uri_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Video_VideoAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Video_VideoAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.class, io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder.class); } public static final int RESOLUTION_FIELD_NUMBER = 1; private int resolution_; /** *
         * Resolutions at which a video might be available.
         * 
* * .bloombox.page.VideoResolution resolution = 1; */ public int getResolutionValue() { return resolution_; } /** *
         * Resolutions at which a video might be available.
         * 
* * .bloombox.page.VideoResolution resolution = 1; */ public io.bloombox.tpl.Media.VideoResolution getResolution() { @SuppressWarnings("deprecation") io.bloombox.tpl.Media.VideoResolution result = io.bloombox.tpl.Media.VideoResolution.valueOf(resolution_); return result == null ? io.bloombox.tpl.Media.VideoResolution.UNRECOGNIZED : result; } public static final int THUMB_FIELD_NUMBER = 2; private io.bloombox.tpl.Media.MediaAsset.Image thumb_; /** *
         * Image asset to be used as a thumbnail for this video asset.
         * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public boolean hasThumb() { return thumb_ != null; } /** *
         * Image asset to be used as a thumbnail for this video asset.
         * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public io.bloombox.tpl.Media.MediaAsset.Image getThumb() { return thumb_ == null ? io.bloombox.tpl.Media.MediaAsset.Image.getDefaultInstance() : thumb_; } /** *
         * Image asset to be used as a thumbnail for this video asset.
         * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public io.bloombox.tpl.Media.MediaAsset.ImageOrBuilder getThumbOrBuilder() { return getThumb(); } public static final int URI_FIELD_NUMBER = 3; private volatile java.lang.Object uri_; /** *
         * URI where the video may be streamed or accessed.
         * 
* * string uri = 3; */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** *
         * URI where the video may be streamed or accessed.
         * 
* * string uri = 3; */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resolution_ != io.bloombox.tpl.Media.VideoResolution.LOW.getNumber()) { output.writeEnum(1, resolution_); } if (thumb_ != null) { output.writeMessage(2, getThumb()); } if (!getUriBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (resolution_ != io.bloombox.tpl.Media.VideoResolution.LOW.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, resolution_); } if (thumb_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getThumb()); } if (!getUriBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset)) { return super.equals(obj); } io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset other = (io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset) obj; if (resolution_ != other.resolution_) return false; if (hasThumb() != other.hasThumb()) return false; if (hasThumb()) { if (!getThumb() .equals(other.getThumb())) return false; } if (!getUri() .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOLUTION_FIELD_NUMBER; hash = (53 * hash) + resolution_; if (hasThumb()) { hash = (37 * hash) + THUMB_FIELD_NUMBER; hash = (53 * hash) + getThumb().hashCode(); } hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
         * Describes information about an individual video asset, which is part of an attached video.
         * 
* * Protobuf type {@code bloombox.page.MediaAsset.Video.VideoAsset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.page.MediaAsset.Video.VideoAsset) io.bloombox.tpl.Media.MediaAsset.Video.VideoAssetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Video_VideoAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Video_VideoAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.class, io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder.class); } // Construct using io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); resolution_ = 0; if (thumbBuilder_ == null) { thumb_ = null; } else { thumb_ = null; thumbBuilder_ = null; } uri_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Video_VideoAsset_descriptor; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset getDefaultInstanceForType() { return io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.getDefaultInstance(); } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset build() { io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset buildPartial() { io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset result = new io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset(this); result.resolution_ = resolution_; if (thumbBuilder_ == null) { result.thumb_ = thumb_; } else { result.thumb_ = thumbBuilder_.build(); } result.uri_ = uri_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset) { return mergeFrom((io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset other) { if (other == io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.getDefaultInstance()) return this; if (other.resolution_ != 0) { setResolutionValue(other.getResolutionValue()); } if (other.hasThumb()) { mergeThumb(other.getThumb()); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int resolution_ = 0; /** *
           * Resolutions at which a video might be available.
           * 
* * .bloombox.page.VideoResolution resolution = 1; */ public int getResolutionValue() { return resolution_; } /** *
           * Resolutions at which a video might be available.
           * 
* * .bloombox.page.VideoResolution resolution = 1; */ public Builder setResolutionValue(int value) { resolution_ = value; onChanged(); return this; } /** *
           * Resolutions at which a video might be available.
           * 
* * .bloombox.page.VideoResolution resolution = 1; */ public io.bloombox.tpl.Media.VideoResolution getResolution() { @SuppressWarnings("deprecation") io.bloombox.tpl.Media.VideoResolution result = io.bloombox.tpl.Media.VideoResolution.valueOf(resolution_); return result == null ? io.bloombox.tpl.Media.VideoResolution.UNRECOGNIZED : result; } /** *
           * Resolutions at which a video might be available.
           * 
* * .bloombox.page.VideoResolution resolution = 1; */ public Builder setResolution(io.bloombox.tpl.Media.VideoResolution value) { if (value == null) { throw new NullPointerException(); } resolution_ = value.getNumber(); onChanged(); return this; } /** *
           * Resolutions at which a video might be available.
           * 
* * .bloombox.page.VideoResolution resolution = 1; */ public Builder clearResolution() { resolution_ = 0; onChanged(); return this; } private io.bloombox.tpl.Media.MediaAsset.Image thumb_; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.tpl.Media.MediaAsset.Image, io.bloombox.tpl.Media.MediaAsset.Image.Builder, io.bloombox.tpl.Media.MediaAsset.ImageOrBuilder> thumbBuilder_; /** *
           * Image asset to be used as a thumbnail for this video asset.
           * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public boolean hasThumb() { return thumbBuilder_ != null || thumb_ != null; } /** *
           * Image asset to be used as a thumbnail for this video asset.
           * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public io.bloombox.tpl.Media.MediaAsset.Image getThumb() { if (thumbBuilder_ == null) { return thumb_ == null ? io.bloombox.tpl.Media.MediaAsset.Image.getDefaultInstance() : thumb_; } else { return thumbBuilder_.getMessage(); } } /** *
           * Image asset to be used as a thumbnail for this video asset.
           * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public Builder setThumb(io.bloombox.tpl.Media.MediaAsset.Image value) { if (thumbBuilder_ == null) { if (value == null) { throw new NullPointerException(); } thumb_ = value; onChanged(); } else { thumbBuilder_.setMessage(value); } return this; } /** *
           * Image asset to be used as a thumbnail for this video asset.
           * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public Builder setThumb( io.bloombox.tpl.Media.MediaAsset.Image.Builder builderForValue) { if (thumbBuilder_ == null) { thumb_ = builderForValue.build(); onChanged(); } else { thumbBuilder_.setMessage(builderForValue.build()); } return this; } /** *
           * Image asset to be used as a thumbnail for this video asset.
           * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public Builder mergeThumb(io.bloombox.tpl.Media.MediaAsset.Image value) { if (thumbBuilder_ == null) { if (thumb_ != null) { thumb_ = io.bloombox.tpl.Media.MediaAsset.Image.newBuilder(thumb_).mergeFrom(value).buildPartial(); } else { thumb_ = value; } onChanged(); } else { thumbBuilder_.mergeFrom(value); } return this; } /** *
           * Image asset to be used as a thumbnail for this video asset.
           * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public Builder clearThumb() { if (thumbBuilder_ == null) { thumb_ = null; onChanged(); } else { thumb_ = null; thumbBuilder_ = null; } return this; } /** *
           * Image asset to be used as a thumbnail for this video asset.
           * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public io.bloombox.tpl.Media.MediaAsset.Image.Builder getThumbBuilder() { onChanged(); return getThumbFieldBuilder().getBuilder(); } /** *
           * Image asset to be used as a thumbnail for this video asset.
           * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ public io.bloombox.tpl.Media.MediaAsset.ImageOrBuilder getThumbOrBuilder() { if (thumbBuilder_ != null) { return thumbBuilder_.getMessageOrBuilder(); } else { return thumb_ == null ? io.bloombox.tpl.Media.MediaAsset.Image.getDefaultInstance() : thumb_; } } /** *
           * Image asset to be used as a thumbnail for this video asset.
           * 
* * .bloombox.page.MediaAsset.Image thumb = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.tpl.Media.MediaAsset.Image, io.bloombox.tpl.Media.MediaAsset.Image.Builder, io.bloombox.tpl.Media.MediaAsset.ImageOrBuilder> getThumbFieldBuilder() { if (thumbBuilder_ == null) { thumbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.tpl.Media.MediaAsset.Image, io.bloombox.tpl.Media.MediaAsset.Image.Builder, io.bloombox.tpl.Media.MediaAsset.ImageOrBuilder>( getThumb(), getParentForChildren(), isClean()); thumb_ = null; } return thumbBuilder_; } private java.lang.Object uri_ = ""; /** *
           * URI where the video may be streamed or accessed.
           * 
* * string uri = 3; */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** *
           * URI where the video may be streamed or accessed.
           * 
* * string uri = 3; */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * URI where the video may be streamed or accessed.
           * 
* * string uri = 3; */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; onChanged(); return this; } /** *
           * URI where the video may be streamed or accessed.
           * 
* * string uri = 3; */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** *
           * URI where the video may be streamed or accessed.
           * 
* * string uri = 3; */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.page.MediaAsset.Video.VideoAsset) } // @@protoc_insertion_point(class_scope:bloombox.page.MediaAsset.Video.VideoAsset) private static final io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset(); } public static io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VideoAsset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VideoAsset(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int PROVIDER_FIELD_NUMBER = 1; private int provider_; /** *
       * Describes where the video may be streamed from, or accessed.
       * 
* * .bloombox.page.VideoProvider provider = 1; */ public int getProviderValue() { return provider_; } /** *
       * Describes where the video may be streamed from, or accessed.
       * 
* * .bloombox.page.VideoProvider provider = 1; */ public io.bloombox.tpl.Media.VideoProvider getProvider() { @SuppressWarnings("deprecation") io.bloombox.tpl.Media.VideoProvider result = io.bloombox.tpl.Media.VideoProvider.valueOf(provider_); return result == null ? io.bloombox.tpl.Media.VideoProvider.UNRECOGNIZED : result; } public static final int TITLE_FIELD_NUMBER = 2; private volatile java.lang.Object title_; /** *
       * Title to display for this video asset.
       * 
* * string title = 2; */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** *
       * Title to display for this video asset.
       * 
* * string title = 2; */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** *
       * Description for this video asset.
       * 
* * string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
       * Description for this video asset.
       * 
* * string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RUN_TIME_FIELD_NUMBER = 4; private long runTime_; /** *
       * Duration of the video asset, in milliseconds.
       * 
* * uint64 run_time = 4; */ public long getRunTime() { return runTime_; } public static final int ASSET_FIELD_NUMBER = 5; private java.util.List asset_; /** *
       * Describes the assets that back this video media.
       * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public java.util.List getAssetList() { return asset_; } /** *
       * Describes the assets that back this video media.
       * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public java.util.List getAssetOrBuilderList() { return asset_; } /** *
       * Describes the assets that back this video media.
       * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public int getAssetCount() { return asset_.size(); } /** *
       * Describes the assets that back this video media.
       * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset getAsset(int index) { return asset_.get(index); } /** *
       * Describes the assets that back this video media.
       * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public io.bloombox.tpl.Media.MediaAsset.Video.VideoAssetOrBuilder getAssetOrBuilder( int index) { return asset_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (provider_ != io.bloombox.tpl.Media.VideoProvider.PRIVATE.getNumber()) { output.writeEnum(1, provider_); } if (!getTitleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (runTime_ != 0L) { output.writeUInt64(4, runTime_); } for (int i = 0; i < asset_.size(); i++) { output.writeMessage(5, asset_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (provider_ != io.bloombox.tpl.Media.VideoProvider.PRIVATE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, provider_); } if (!getTitleBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (runTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, runTime_); } for (int i = 0; i < asset_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, asset_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.bloombox.tpl.Media.MediaAsset.Video)) { return super.equals(obj); } io.bloombox.tpl.Media.MediaAsset.Video other = (io.bloombox.tpl.Media.MediaAsset.Video) obj; if (provider_ != other.provider_) return false; if (!getTitle() .equals(other.getTitle())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (getRunTime() != other.getRunTime()) return false; if (!getAssetList() .equals(other.getAssetList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROVIDER_FIELD_NUMBER; hash = (53 * hash) + provider_; hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + RUN_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRunTime()); if (getAssetCount() > 0) { hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAssetList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.tpl.Media.MediaAsset.Video parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Video parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Video parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Video parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Video parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.tpl.Media.MediaAsset.Video parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Video parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Video parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Video parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Video parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.bloombox.tpl.Media.MediaAsset.Video parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.tpl.Media.MediaAsset.Video parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.bloombox.tpl.Media.MediaAsset.Video prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Describes concrete information about a video asset, attached to some web page or data point.
       * 
* * Protobuf type {@code bloombox.page.MediaAsset.Video} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.page.MediaAsset.Video) io.bloombox.tpl.Media.MediaAsset.VideoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Video_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Video_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.tpl.Media.MediaAsset.Video.class, io.bloombox.tpl.Media.MediaAsset.Video.Builder.class); } // Construct using io.bloombox.tpl.Media.MediaAsset.Video.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAssetFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); provider_ = 0; title_ = ""; description_ = ""; runTime_ = 0L; if (assetBuilder_ == null) { asset_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { assetBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.tpl.Media.internal_static_bloombox_page_MediaAsset_Video_descriptor; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Video getDefaultInstanceForType() { return io.bloombox.tpl.Media.MediaAsset.Video.getDefaultInstance(); } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Video build() { io.bloombox.tpl.Media.MediaAsset.Video result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.tpl.Media.MediaAsset.Video buildPartial() { io.bloombox.tpl.Media.MediaAsset.Video result = new io.bloombox.tpl.Media.MediaAsset.Video(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.provider_ = provider_; result.title_ = title_; result.description_ = description_; result.runTime_ = runTime_; if (assetBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { asset_ = java.util.Collections.unmodifiableList(asset_); bitField0_ = (bitField0_ & ~0x00000010); } result.asset_ = asset_; } else { result.asset_ = assetBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.tpl.Media.MediaAsset.Video) { return mergeFrom((io.bloombox.tpl.Media.MediaAsset.Video)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.tpl.Media.MediaAsset.Video other) { if (other == io.bloombox.tpl.Media.MediaAsset.Video.getDefaultInstance()) return this; if (other.provider_ != 0) { setProviderValue(other.getProviderValue()); } if (!other.getTitle().isEmpty()) { title_ = other.title_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.getRunTime() != 0L) { setRunTime(other.getRunTime()); } if (assetBuilder_ == null) { if (!other.asset_.isEmpty()) { if (asset_.isEmpty()) { asset_ = other.asset_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAssetIsMutable(); asset_.addAll(other.asset_); } onChanged(); } } else { if (!other.asset_.isEmpty()) { if (assetBuilder_.isEmpty()) { assetBuilder_.dispose(); assetBuilder_ = null; asset_ = other.asset_; bitField0_ = (bitField0_ & ~0x00000010); assetBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAssetFieldBuilder() : null; } else { assetBuilder_.addAllMessages(other.asset_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.tpl.Media.MediaAsset.Video parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.tpl.Media.MediaAsset.Video) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int provider_ = 0; /** *
         * Describes where the video may be streamed from, or accessed.
         * 
* * .bloombox.page.VideoProvider provider = 1; */ public int getProviderValue() { return provider_; } /** *
         * Describes where the video may be streamed from, or accessed.
         * 
* * .bloombox.page.VideoProvider provider = 1; */ public Builder setProviderValue(int value) { provider_ = value; onChanged(); return this; } /** *
         * Describes where the video may be streamed from, or accessed.
         * 
* * .bloombox.page.VideoProvider provider = 1; */ public io.bloombox.tpl.Media.VideoProvider getProvider() { @SuppressWarnings("deprecation") io.bloombox.tpl.Media.VideoProvider result = io.bloombox.tpl.Media.VideoProvider.valueOf(provider_); return result == null ? io.bloombox.tpl.Media.VideoProvider.UNRECOGNIZED : result; } /** *
         * Describes where the video may be streamed from, or accessed.
         * 
* * .bloombox.page.VideoProvider provider = 1; */ public Builder setProvider(io.bloombox.tpl.Media.VideoProvider value) { if (value == null) { throw new NullPointerException(); } provider_ = value.getNumber(); onChanged(); return this; } /** *
         * Describes where the video may be streamed from, or accessed.
         * 
* * .bloombox.page.VideoProvider provider = 1; */ public Builder clearProvider() { provider_ = 0; onChanged(); return this; } private java.lang.Object title_ = ""; /** *
         * Title to display for this video asset.
         * 
* * string title = 2; */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Title to display for this video asset.
         * 
* * string title = 2; */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Title to display for this video asset.
         * 
* * string title = 2; */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; onChanged(); return this; } /** *
         * Title to display for this video asset.
         * 
* * string title = 2; */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** *
         * Title to display for this video asset.
         * 
* * string title = 2; */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
         * Description for this video asset.
         * 
* * string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Description for this video asset.
         * 
* * string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Description for this video asset.
         * 
* * string description = 3; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
         * Description for this video asset.
         * 
* * string description = 3; */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
         * Description for this video asset.
         * 
* * string description = 3; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private long runTime_ ; /** *
         * Duration of the video asset, in milliseconds.
         * 
* * uint64 run_time = 4; */ public long getRunTime() { return runTime_; } /** *
         * Duration of the video asset, in milliseconds.
         * 
* * uint64 run_time = 4; */ public Builder setRunTime(long value) { runTime_ = value; onChanged(); return this; } /** *
         * Duration of the video asset, in milliseconds.
         * 
* * uint64 run_time = 4; */ public Builder clearRunTime() { runTime_ = 0L; onChanged(); return this; } private java.util.List asset_ = java.util.Collections.emptyList(); private void ensureAssetIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { asset_ = new java.util.ArrayList(asset_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset, io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder, io.bloombox.tpl.Media.MediaAsset.Video.VideoAssetOrBuilder> assetBuilder_; /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public java.util.List getAssetList() { if (assetBuilder_ == null) { return java.util.Collections.unmodifiableList(asset_); } else { return assetBuilder_.getMessageList(); } } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public int getAssetCount() { if (assetBuilder_ == null) { return asset_.size(); } else { return assetBuilder_.getCount(); } } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset getAsset(int index) { if (assetBuilder_ == null) { return asset_.get(index); } else { return assetBuilder_.getMessage(index); } } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public Builder setAsset( int index, io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset value) { if (assetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetIsMutable(); asset_.set(index, value); onChanged(); } else { assetBuilder_.setMessage(index, value); } return this; } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public Builder setAsset( int index, io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder builderForValue) { if (assetBuilder_ == null) { ensureAssetIsMutable(); asset_.set(index, builderForValue.build()); onChanged(); } else { assetBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public Builder addAsset(io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset value) { if (assetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetIsMutable(); asset_.add(value); onChanged(); } else { assetBuilder_.addMessage(value); } return this; } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public Builder addAsset( int index, io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset value) { if (assetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetIsMutable(); asset_.add(index, value); onChanged(); } else { assetBuilder_.addMessage(index, value); } return this; } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public Builder addAsset( io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder builderForValue) { if (assetBuilder_ == null) { ensureAssetIsMutable(); asset_.add(builderForValue.build()); onChanged(); } else { assetBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public Builder addAsset( int index, io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder builderForValue) { if (assetBuilder_ == null) { ensureAssetIsMutable(); asset_.add(index, builderForValue.build()); onChanged(); } else { assetBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public Builder addAllAsset( java.lang.Iterable values) { if (assetBuilder_ == null) { ensureAssetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, asset_); onChanged(); } else { assetBuilder_.addAllMessages(values); } return this; } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public Builder clearAsset() { if (assetBuilder_ == null) { asset_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { assetBuilder_.clear(); } return this; } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public Builder removeAsset(int index) { if (assetBuilder_ == null) { ensureAssetIsMutable(); asset_.remove(index); onChanged(); } else { assetBuilder_.remove(index); } return this; } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder getAssetBuilder( int index) { return getAssetFieldBuilder().getBuilder(index); } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public io.bloombox.tpl.Media.MediaAsset.Video.VideoAssetOrBuilder getAssetOrBuilder( int index) { if (assetBuilder_ == null) { return asset_.get(index); } else { return assetBuilder_.getMessageOrBuilder(index); } } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public java.util.List getAssetOrBuilderList() { if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(asset_); } } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder addAssetBuilder() { return getAssetFieldBuilder().addBuilder( io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.getDefaultInstance()); } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder addAssetBuilder( int index) { return getAssetFieldBuilder().addBuilder( index, io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.getDefaultInstance()); } /** *
         * Describes the assets that back this video media.
         * 
* * repeated .bloombox.page.MediaAsset.Video.VideoAsset asset = 5; */ public java.util.List getAssetBuilderList() { return getAssetFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset, io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder, io.bloombox.tpl.Media.MediaAsset.Video.VideoAssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { assetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset, io.bloombox.tpl.Media.MediaAsset.Video.VideoAsset.Builder, io.bloombox.tpl.Media.MediaAsset.Video.VideoAssetOrBuilder>( asset_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); asset_ = null; } return assetBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.page.MediaAsset.Video) } // @@protoc_insertion_point(class_scope:bloombox.page.MediaAsset.Video) private static final io.bloombox.tpl.Media.MediaAsset.Video DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.tpl.Media.MediaAsset.Video(); } public static io.bloombox.tpl.Media.MediaAsset.Video getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser




© 2015 - 2025 Weber Informatics LLC | Privacy Policy