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

com.volcengine.service.live.model.business.GeneratePlayURLResult Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: live/business/addr.proto

package com.volcengine.service.live.model.business;

/**
 * Protobuf type {@code Volcengine.Live.Models.Business.GeneratePlayURLResult}
 */
public final class GeneratePlayURLResult extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Live.Models.Business.GeneratePlayURLResult)
    GeneratePlayURLResultOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GeneratePlayURLResult.newBuilder() to construct.
  private GeneratePlayURLResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private GeneratePlayURLResult() {
    uRLList_ = java.util.Collections.emptyList();
  }

  @Override
  @SuppressWarnings({"unused"})
  protected Object newInstance(
      UnusedPrivateParameter unused) {
    return new GeneratePlayURLResult();
  }

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private GeneratePlayURLResult(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new 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)) {
              uRLList_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            uRLList_.add(
                input.readMessage(PlayURL.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)) {
        uRLList_ = java.util.Collections.unmodifiableList(uRLList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return Addr.internal_static_Volcengine_Live_Models_Business_GeneratePlayURLResult_descriptor;
  }

  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return Addr.internal_static_Volcengine_Live_Models_Business_GeneratePlayURLResult_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            GeneratePlayURLResult.class, Builder.class);
  }

  public static final int URLLIST_FIELD_NUMBER = 1;
  private java.util.List uRLList_;
  /**
   * 
   *播放地址详情列表
   * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ @Override public java.util.List getURLListList() { return uRLList_; } /** *
   *播放地址详情列表
   * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ @Override public java.util.List getURLListOrBuilderList() { return uRLList_; } /** *
   *播放地址详情列表
   * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ @Override public int getURLListCount() { return uRLList_.size(); } /** *
   *播放地址详情列表
   * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ @Override public PlayURL getURLList(int index) { return uRLList_.get(index); } /** *
   *播放地址详情列表
   * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ @Override public PlayURLOrBuilder getURLListOrBuilder( int index) { return uRLList_.get(index); } private byte memoizedIsInitialized = -1; @Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < uRLList_.size(); i++) { output.writeMessage(1, uRLList_.get(i)); } unknownFields.writeTo(output); } @Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < uRLList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, uRLList_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof GeneratePlayURLResult)) { return super.equals(obj); } GeneratePlayURLResult other = (GeneratePlayURLResult) obj; if (!getURLListList() .equals(other.getURLListList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getURLListCount() > 0) { hash = (37 * hash) + URLLIST_FIELD_NUMBER; hash = (53 * hash) + getURLListList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static GeneratePlayURLResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static GeneratePlayURLResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static GeneratePlayURLResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static GeneratePlayURLResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static GeneratePlayURLResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static GeneratePlayURLResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static GeneratePlayURLResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static GeneratePlayURLResult 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 GeneratePlayURLResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static GeneratePlayURLResult 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 GeneratePlayURLResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static GeneratePlayURLResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(GeneratePlayURLResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Volcengine.Live.Models.Business.GeneratePlayURLResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Volcengine.Live.Models.Business.GeneratePlayURLResult) GeneratePlayURLResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Addr.internal_static_Volcengine_Live_Models_Business_GeneratePlayURLResult_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return Addr.internal_static_Volcengine_Live_Models_Business_GeneratePlayURLResult_fieldAccessorTable .ensureFieldAccessorsInitialized( GeneratePlayURLResult.class, Builder.class); } // Construct using com.volcengine.service.live.model.business.GeneratePlayURLResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getURLListFieldBuilder(); } } @Override public Builder clear() { super.clear(); if (uRLListBuilder_ == null) { uRLList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { uRLListBuilder_.clear(); } return this; } @Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Addr.internal_static_Volcengine_Live_Models_Business_GeneratePlayURLResult_descriptor; } @Override public GeneratePlayURLResult getDefaultInstanceForType() { return GeneratePlayURLResult.getDefaultInstance(); } @Override public GeneratePlayURLResult build() { GeneratePlayURLResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @Override public GeneratePlayURLResult buildPartial() { GeneratePlayURLResult result = new GeneratePlayURLResult(this); int from_bitField0_ = bitField0_; if (uRLListBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { uRLList_ = java.util.Collections.unmodifiableList(uRLList_); bitField0_ = (bitField0_ & ~0x00000001); } result.uRLList_ = uRLList_; } else { result.uRLList_ = uRLListBuilder_.build(); } onBuilt(); return result; } @Override public Builder clone() { return super.clone(); } @Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.setField(field, value); } @Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return super.setRepeatedField(field, index, value); } @Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.addRepeatedField(field, value); } @Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof GeneratePlayURLResult) { return mergeFrom((GeneratePlayURLResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(GeneratePlayURLResult other) { if (other == GeneratePlayURLResult.getDefaultInstance()) return this; if (uRLListBuilder_ == null) { if (!other.uRLList_.isEmpty()) { if (uRLList_.isEmpty()) { uRLList_ = other.uRLList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureURLListIsMutable(); uRLList_.addAll(other.uRLList_); } onChanged(); } } else { if (!other.uRLList_.isEmpty()) { if (uRLListBuilder_.isEmpty()) { uRLListBuilder_.dispose(); uRLListBuilder_ = null; uRLList_ = other.uRLList_; bitField0_ = (bitField0_ & ~0x00000001); uRLListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getURLListFieldBuilder() : null; } else { uRLListBuilder_.addAllMessages(other.uRLList_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @Override public final boolean isInitialized() { return true; } @Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { GeneratePlayURLResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (GeneratePlayURLResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List uRLList_ = java.util.Collections.emptyList(); private void ensureURLListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { uRLList_ = new java.util.ArrayList(uRLList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< PlayURL, PlayURL.Builder, PlayURLOrBuilder> uRLListBuilder_; /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public java.util.List getURLListList() { if (uRLListBuilder_ == null) { return java.util.Collections.unmodifiableList(uRLList_); } else { return uRLListBuilder_.getMessageList(); } } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public int getURLListCount() { if (uRLListBuilder_ == null) { return uRLList_.size(); } else { return uRLListBuilder_.getCount(); } } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public PlayURL getURLList(int index) { if (uRLListBuilder_ == null) { return uRLList_.get(index); } else { return uRLListBuilder_.getMessage(index); } } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public Builder setURLList( int index, PlayURL value) { if (uRLListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureURLListIsMutable(); uRLList_.set(index, value); onChanged(); } else { uRLListBuilder_.setMessage(index, value); } return this; } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public Builder setURLList( int index, PlayURL.Builder builderForValue) { if (uRLListBuilder_ == null) { ensureURLListIsMutable(); uRLList_.set(index, builderForValue.build()); onChanged(); } else { uRLListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public Builder addURLList(PlayURL value) { if (uRLListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureURLListIsMutable(); uRLList_.add(value); onChanged(); } else { uRLListBuilder_.addMessage(value); } return this; } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public Builder addURLList( int index, PlayURL value) { if (uRLListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureURLListIsMutable(); uRLList_.add(index, value); onChanged(); } else { uRLListBuilder_.addMessage(index, value); } return this; } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public Builder addURLList( PlayURL.Builder builderForValue) { if (uRLListBuilder_ == null) { ensureURLListIsMutable(); uRLList_.add(builderForValue.build()); onChanged(); } else { uRLListBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public Builder addURLList( int index, PlayURL.Builder builderForValue) { if (uRLListBuilder_ == null) { ensureURLListIsMutable(); uRLList_.add(index, builderForValue.build()); onChanged(); } else { uRLListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public Builder addAllURLList( Iterable values) { if (uRLListBuilder_ == null) { ensureURLListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uRLList_); onChanged(); } else { uRLListBuilder_.addAllMessages(values); } return this; } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public Builder clearURLList() { if (uRLListBuilder_ == null) { uRLList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { uRLListBuilder_.clear(); } return this; } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public Builder removeURLList(int index) { if (uRLListBuilder_ == null) { ensureURLListIsMutable(); uRLList_.remove(index); onChanged(); } else { uRLListBuilder_.remove(index); } return this; } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public PlayURL.Builder getURLListBuilder( int index) { return getURLListFieldBuilder().getBuilder(index); } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public PlayURLOrBuilder getURLListOrBuilder( int index) { if (uRLListBuilder_ == null) { return uRLList_.get(index); } else { return uRLListBuilder_.getMessageOrBuilder(index); } } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public java.util.List getURLListOrBuilderList() { if (uRLListBuilder_ != null) { return uRLListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uRLList_); } } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public PlayURL.Builder addURLListBuilder() { return getURLListFieldBuilder().addBuilder( PlayURL.getDefaultInstance()); } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public PlayURL.Builder addURLListBuilder( int index) { return getURLListFieldBuilder().addBuilder( index, PlayURL.getDefaultInstance()); } /** *
     *播放地址详情列表
     * 
* * repeated .Volcengine.Live.Models.Business.PlayURL URLList = 1; */ public java.util.List getURLListBuilderList() { return getURLListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< PlayURL, PlayURL.Builder, PlayURLOrBuilder> getURLListFieldBuilder() { if (uRLListBuilder_ == null) { uRLListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< PlayURL, PlayURL.Builder, PlayURLOrBuilder>( uRLList_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); uRLList_ = null; } return uRLListBuilder_; } @Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Volcengine.Live.Models.Business.GeneratePlayURLResult) } // @@protoc_insertion_point(class_scope:Volcengine.Live.Models.Business.GeneratePlayURLResult) private static final GeneratePlayURLResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new GeneratePlayURLResult(); } public static GeneratePlayURLResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @Override public GeneratePlayURLResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GeneratePlayURLResult(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @Override public GeneratePlayURLResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy