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

com.volcengine.service.live.model.business.DenyConfigDetail 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/deny_config.proto

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

/**
 * Protobuf type {@code Volcengine.Live.Models.Business.DenyConfigDetail}
 */
public final class DenyConfigDetail extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Live.Models.Business.DenyConfigDetail)
    DenyConfigDetailOrBuilder {
private static final long serialVersionUID = 0L;
  // Use DenyConfigDetail.newBuilder() to construct.
  private DenyConfigDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private DenyConfigDetail() {
    proType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    fmtType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    continent_ = "";
    country_ = "";
    region_ = "";
    city_ = "";
    iSP_ = "";
    denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    allowList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private DenyConfigDetail(
      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: {
            String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              proType_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            proType_.add(s);
            break;
          }
          case 18: {
            String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              fmtType_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            fmtType_.add(s);
            break;
          }
          case 26: {
            String s = input.readStringRequireUtf8();

            continent_ = s;
            break;
          }
          case 34: {
            String s = input.readStringRequireUtf8();

            country_ = s;
            break;
          }
          case 42: {
            String s = input.readStringRequireUtf8();

            region_ = s;
            break;
          }
          case 50: {
            String s = input.readStringRequireUtf8();

            city_ = s;
            break;
          }
          case 58: {
            String s = input.readStringRequireUtf8();

            iSP_ = s;
            break;
          }
          case 66: {
            String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              denyList_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            denyList_.add(s);
            break;
          }
          case 74: {
            String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
              allowList_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            allowList_.add(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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        proType_ = proType_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        fmtType_ = fmtType_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000004) != 0)) {
        denyList_ = denyList_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000008) != 0)) {
        allowList_ = allowList_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return DenyConfig.internal_static_Volcengine_Live_Models_Business_DenyConfigDetail_descriptor;
  }

  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return DenyConfig.internal_static_Volcengine_Live_Models_Business_DenyConfigDetail_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            DenyConfigDetail.class, Builder.class);
  }

  public static final int PROTYPE_FIELD_NUMBER = 1;
  private com.google.protobuf.LazyStringList proType_;
  /**
   * 
   *协议类型,比如tcp,kcp,quic
   * 
* * repeated string ProType = 1; * @return A list containing the proType. */ public com.google.protobuf.ProtocolStringList getProTypeList() { return proType_; } /** *
   *协议类型,比如tcp,kcp,quic
   * 
* * repeated string ProType = 1; * @return The count of proType. */ public int getProTypeCount() { return proType_.size(); } /** *
   *协议类型,比如tcp,kcp,quic
   * 
* * repeated string ProType = 1; * @param index The index of the element to return. * @return The proType at the given index. */ public String getProType(int index) { return proType_.get(index); } /** *
   *协议类型,比如tcp,kcp,quic
   * 
* * repeated string ProType = 1; * @param index The index of the value to return. * @return The bytes of the proType at the given index. */ public com.google.protobuf.ByteString getProTypeBytes(int index) { return proType_.getByteString(index); } public static final int FMTTYPE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList fmtType_; /** *
   *格式类型,比如http,rtmp
   * 
* * repeated string FmtType = 2; * @return A list containing the fmtType. */ public com.google.protobuf.ProtocolStringList getFmtTypeList() { return fmtType_; } /** *
   *格式类型,比如http,rtmp
   * 
* * repeated string FmtType = 2; * @return The count of fmtType. */ public int getFmtTypeCount() { return fmtType_.size(); } /** *
   *格式类型,比如http,rtmp
   * 
* * repeated string FmtType = 2; * @param index The index of the element to return. * @return The fmtType at the given index. */ public String getFmtType(int index) { return fmtType_.get(index); } /** *
   *格式类型,比如http,rtmp
   * 
* * repeated string FmtType = 2; * @param index The index of the value to return. * @return The bytes of the fmtType at the given index. */ public com.google.protobuf.ByteString getFmtTypeBytes(int index) { return fmtType_.getByteString(index); } public static final int CONTINENT_FIELD_NUMBER = 3; private volatile Object continent_; /** *
   *大洲
   * 
* * string Continent = 3; * @return The continent. */ @Override public String getContinent() { Object ref = continent_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); continent_ = s; return s; } } /** *
   *大洲
   * 
* * string Continent = 3; * @return The bytes for continent. */ @Override public com.google.protobuf.ByteString getContinentBytes() { Object ref = continent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); continent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COUNTRY_FIELD_NUMBER = 4; private volatile Object country_; /** *
   *国家码
   * 
* * string Country = 4; * @return The country. */ @Override public String getCountry() { Object ref = country_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); country_ = s; return s; } } /** *
   *国家码
   * 
* * string Country = 4; * @return The bytes for country. */ @Override public com.google.protobuf.ByteString getCountryBytes() { Object ref = country_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); country_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REGION_FIELD_NUMBER = 5; private volatile Object region_; /** *
   *区域
   * 
* * string Region = 5; * @return The region. */ @Override public String getRegion() { Object ref = region_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); region_ = s; return s; } } /** *
   *区域
   * 
* * string Region = 5; * @return The bytes for region. */ @Override public com.google.protobuf.ByteString getRegionBytes() { Object ref = region_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); region_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CITY_FIELD_NUMBER = 6; private volatile Object city_; /** *
   *城市
   * 
* * string City = 6; * @return The city. */ @Override public String getCity() { Object ref = city_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); city_ = s; return s; } } /** *
   *城市
   * 
* * string City = 6; * @return The bytes for city. */ @Override public com.google.protobuf.ByteString getCityBytes() { Object ref = city_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); city_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ISP_FIELD_NUMBER = 7; private volatile Object iSP_; /** *
   *运营商
   * 
* * string ISP = 7; * @return The iSP. */ @Override public String getISP() { Object ref = iSP_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); iSP_ = s; return s; } } /** *
   *运营商
   * 
* * string ISP = 7; * @return The bytes for iSP. */ @Override public com.google.protobuf.ByteString getISPBytes() { Object ref = iSP_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); iSP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DENYLIST_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList denyList_; /** *
   *黑名单
   * 
* * repeated string DenyList = 8; * @return A list containing the denyList. */ public com.google.protobuf.ProtocolStringList getDenyListList() { return denyList_; } /** *
   *黑名单
   * 
* * repeated string DenyList = 8; * @return The count of denyList. */ public int getDenyListCount() { return denyList_.size(); } /** *
   *黑名单
   * 
* * repeated string DenyList = 8; * @param index The index of the element to return. * @return The denyList at the given index. */ public String getDenyList(int index) { return denyList_.get(index); } /** *
   *黑名单
   * 
* * repeated string DenyList = 8; * @param index The index of the value to return. * @return The bytes of the denyList at the given index. */ public com.google.protobuf.ByteString getDenyListBytes(int index) { return denyList_.getByteString(index); } public static final int ALLOWLIST_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList allowList_; /** *
   *白名单
   * 
* * repeated string AllowList = 9; * @return A list containing the allowList. */ public com.google.protobuf.ProtocolStringList getAllowListList() { return allowList_; } /** *
   *白名单
   * 
* * repeated string AllowList = 9; * @return The count of allowList. */ public int getAllowListCount() { return allowList_.size(); } /** *
   *白名单
   * 
* * repeated string AllowList = 9; * @param index The index of the element to return. * @return The allowList at the given index. */ public String getAllowList(int index) { return allowList_.get(index); } /** *
   *白名单
   * 
* * repeated string AllowList = 9; * @param index The index of the value to return. * @return The bytes of the allowList at the given index. */ public com.google.protobuf.ByteString getAllowListBytes(int index) { return allowList_.getByteString(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 < proType_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, proType_.getRaw(i)); } for (int i = 0; i < fmtType_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fmtType_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(continent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, continent_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(country_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, country_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, region_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(city_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, city_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iSP_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, iSP_); } for (int i = 0; i < denyList_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, denyList_.getRaw(i)); } for (int i = 0; i < allowList_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, allowList_.getRaw(i)); } unknownFields.writeTo(output); } @Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < proType_.size(); i++) { dataSize += computeStringSizeNoTag(proType_.getRaw(i)); } size += dataSize; size += 1 * getProTypeList().size(); } { int dataSize = 0; for (int i = 0; i < fmtType_.size(); i++) { dataSize += computeStringSizeNoTag(fmtType_.getRaw(i)); } size += dataSize; size += 1 * getFmtTypeList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(continent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, continent_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(country_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, country_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, region_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(city_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, city_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iSP_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, iSP_); } { int dataSize = 0; for (int i = 0; i < denyList_.size(); i++) { dataSize += computeStringSizeNoTag(denyList_.getRaw(i)); } size += dataSize; size += 1 * getDenyListList().size(); } { int dataSize = 0; for (int i = 0; i < allowList_.size(); i++) { dataSize += computeStringSizeNoTag(allowList_.getRaw(i)); } size += dataSize; size += 1 * getAllowListList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof DenyConfigDetail)) { return super.equals(obj); } DenyConfigDetail other = (DenyConfigDetail) obj; if (!getProTypeList() .equals(other.getProTypeList())) return false; if (!getFmtTypeList() .equals(other.getFmtTypeList())) return false; if (!getContinent() .equals(other.getContinent())) return false; if (!getCountry() .equals(other.getCountry())) return false; if (!getRegion() .equals(other.getRegion())) return false; if (!getCity() .equals(other.getCity())) return false; if (!getISP() .equals(other.getISP())) return false; if (!getDenyListList() .equals(other.getDenyListList())) return false; if (!getAllowListList() .equals(other.getAllowListList())) 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 (getProTypeCount() > 0) { hash = (37 * hash) + PROTYPE_FIELD_NUMBER; hash = (53 * hash) + getProTypeList().hashCode(); } if (getFmtTypeCount() > 0) { hash = (37 * hash) + FMTTYPE_FIELD_NUMBER; hash = (53 * hash) + getFmtTypeList().hashCode(); } hash = (37 * hash) + CONTINENT_FIELD_NUMBER; hash = (53 * hash) + getContinent().hashCode(); hash = (37 * hash) + COUNTRY_FIELD_NUMBER; hash = (53 * hash) + getCountry().hashCode(); hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); hash = (37 * hash) + CITY_FIELD_NUMBER; hash = (53 * hash) + getCity().hashCode(); hash = (37 * hash) + ISP_FIELD_NUMBER; hash = (53 * hash) + getISP().hashCode(); if (getDenyListCount() > 0) { hash = (37 * hash) + DENYLIST_FIELD_NUMBER; hash = (53 * hash) + getDenyListList().hashCode(); } if (getAllowListCount() > 0) { hash = (37 * hash) + ALLOWLIST_FIELD_NUMBER; hash = (53 * hash) + getAllowListList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static DenyConfigDetail parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static DenyConfigDetail parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static DenyConfigDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static DenyConfigDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static DenyConfigDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static DenyConfigDetail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static DenyConfigDetail parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static DenyConfigDetail 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 DenyConfigDetail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static DenyConfigDetail 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 DenyConfigDetail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static DenyConfigDetail 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(DenyConfigDetail 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.DenyConfigDetail} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Volcengine.Live.Models.Business.DenyConfigDetail) DenyConfigDetailOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return DenyConfig.internal_static_Volcengine_Live_Models_Business_DenyConfigDetail_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return DenyConfig.internal_static_Volcengine_Live_Models_Business_DenyConfigDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( DenyConfigDetail.class, Builder.class); } // Construct using com.volcengine.service.live.model.business.DenyConfigDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @Override public Builder clear() { super.clear(); proType_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); fmtType_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); continent_ = ""; country_ = ""; region_ = ""; city_ = ""; iSP_ = ""; denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); allowList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } @Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return DenyConfig.internal_static_Volcengine_Live_Models_Business_DenyConfigDetail_descriptor; } @Override public DenyConfigDetail getDefaultInstanceForType() { return DenyConfigDetail.getDefaultInstance(); } @Override public DenyConfigDetail build() { DenyConfigDetail result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @Override public DenyConfigDetail buildPartial() { DenyConfigDetail result = new DenyConfigDetail(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { proType_ = proType_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.proType_ = proType_; if (((bitField0_ & 0x00000002) != 0)) { fmtType_ = fmtType_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.fmtType_ = fmtType_; result.continent_ = continent_; result.country_ = country_; result.region_ = region_; result.city_ = city_; result.iSP_ = iSP_; if (((bitField0_ & 0x00000004) != 0)) { denyList_ = denyList_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.denyList_ = denyList_; if (((bitField0_ & 0x00000008) != 0)) { allowList_ = allowList_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.allowList_ = allowList_; 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 DenyConfigDetail) { return mergeFrom((DenyConfigDetail)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(DenyConfigDetail other) { if (other == DenyConfigDetail.getDefaultInstance()) return this; if (!other.proType_.isEmpty()) { if (proType_.isEmpty()) { proType_ = other.proType_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureProTypeIsMutable(); proType_.addAll(other.proType_); } onChanged(); } if (!other.fmtType_.isEmpty()) { if (fmtType_.isEmpty()) { fmtType_ = other.fmtType_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFmtTypeIsMutable(); fmtType_.addAll(other.fmtType_); } onChanged(); } if (!other.getContinent().isEmpty()) { continent_ = other.continent_; onChanged(); } if (!other.getCountry().isEmpty()) { country_ = other.country_; onChanged(); } if (!other.getRegion().isEmpty()) { region_ = other.region_; onChanged(); } if (!other.getCity().isEmpty()) { city_ = other.city_; onChanged(); } if (!other.getISP().isEmpty()) { iSP_ = other.iSP_; onChanged(); } if (!other.denyList_.isEmpty()) { if (denyList_.isEmpty()) { denyList_ = other.denyList_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDenyListIsMutable(); denyList_.addAll(other.denyList_); } onChanged(); } if (!other.allowList_.isEmpty()) { if (allowList_.isEmpty()) { allowList_ = other.allowList_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAllowListIsMutable(); allowList_.addAll(other.allowList_); } onChanged(); } 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 { DenyConfigDetail parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (DenyConfigDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList proType_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProTypeIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { proType_ = new com.google.protobuf.LazyStringArrayList(proType_); bitField0_ |= 0x00000001; } } /** *
     *协议类型,比如tcp,kcp,quic
     * 
* * repeated string ProType = 1; * @return A list containing the proType. */ public com.google.protobuf.ProtocolStringList getProTypeList() { return proType_.getUnmodifiableView(); } /** *
     *协议类型,比如tcp,kcp,quic
     * 
* * repeated string ProType = 1; * @return The count of proType. */ public int getProTypeCount() { return proType_.size(); } /** *
     *协议类型,比如tcp,kcp,quic
     * 
* * repeated string ProType = 1; * @param index The index of the element to return. * @return The proType at the given index. */ public String getProType(int index) { return proType_.get(index); } /** *
     *协议类型,比如tcp,kcp,quic
     * 
* * repeated string ProType = 1; * @param index The index of the value to return. * @return The bytes of the proType at the given index. */ public com.google.protobuf.ByteString getProTypeBytes(int index) { return proType_.getByteString(index); } /** *
     *协议类型,比如tcp,kcp,quic
     * 
* * repeated string ProType = 1; * @param index The index to set the value at. * @param value The proType to set. * @return This builder for chaining. */ public Builder setProType( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureProTypeIsMutable(); proType_.set(index, value); onChanged(); return this; } /** *
     *协议类型,比如tcp,kcp,quic
     * 
* * repeated string ProType = 1; * @param value The proType to add. * @return This builder for chaining. */ public Builder addProType( String value) { if (value == null) { throw new NullPointerException(); } ensureProTypeIsMutable(); proType_.add(value); onChanged(); return this; } /** *
     *协议类型,比如tcp,kcp,quic
     * 
* * repeated string ProType = 1; * @param values The proType to add. * @return This builder for chaining. */ public Builder addAllProType( Iterable values) { ensureProTypeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, proType_); onChanged(); return this; } /** *
     *协议类型,比如tcp,kcp,quic
     * 
* * repeated string ProType = 1; * @return This builder for chaining. */ public Builder clearProType() { proType_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *协议类型,比如tcp,kcp,quic
     * 
* * repeated string ProType = 1; * @param value The bytes of the proType to add. * @return This builder for chaining. */ public Builder addProTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureProTypeIsMutable(); proType_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList fmtType_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFmtTypeIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { fmtType_ = new com.google.protobuf.LazyStringArrayList(fmtType_); bitField0_ |= 0x00000002; } } /** *
     *格式类型,比如http,rtmp
     * 
* * repeated string FmtType = 2; * @return A list containing the fmtType. */ public com.google.protobuf.ProtocolStringList getFmtTypeList() { return fmtType_.getUnmodifiableView(); } /** *
     *格式类型,比如http,rtmp
     * 
* * repeated string FmtType = 2; * @return The count of fmtType. */ public int getFmtTypeCount() { return fmtType_.size(); } /** *
     *格式类型,比如http,rtmp
     * 
* * repeated string FmtType = 2; * @param index The index of the element to return. * @return The fmtType at the given index. */ public String getFmtType(int index) { return fmtType_.get(index); } /** *
     *格式类型,比如http,rtmp
     * 
* * repeated string FmtType = 2; * @param index The index of the value to return. * @return The bytes of the fmtType at the given index. */ public com.google.protobuf.ByteString getFmtTypeBytes(int index) { return fmtType_.getByteString(index); } /** *
     *格式类型,比如http,rtmp
     * 
* * repeated string FmtType = 2; * @param index The index to set the value at. * @param value The fmtType to set. * @return This builder for chaining. */ public Builder setFmtType( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureFmtTypeIsMutable(); fmtType_.set(index, value); onChanged(); return this; } /** *
     *格式类型,比如http,rtmp
     * 
* * repeated string FmtType = 2; * @param value The fmtType to add. * @return This builder for chaining. */ public Builder addFmtType( String value) { if (value == null) { throw new NullPointerException(); } ensureFmtTypeIsMutable(); fmtType_.add(value); onChanged(); return this; } /** *
     *格式类型,比如http,rtmp
     * 
* * repeated string FmtType = 2; * @param values The fmtType to add. * @return This builder for chaining. */ public Builder addAllFmtType( Iterable values) { ensureFmtTypeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fmtType_); onChanged(); return this; } /** *
     *格式类型,比如http,rtmp
     * 
* * repeated string FmtType = 2; * @return This builder for chaining. */ public Builder clearFmtType() { fmtType_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     *格式类型,比如http,rtmp
     * 
* * repeated string FmtType = 2; * @param value The bytes of the fmtType to add. * @return This builder for chaining. */ public Builder addFmtTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFmtTypeIsMutable(); fmtType_.add(value); onChanged(); return this; } private Object continent_ = ""; /** *
     *大洲
     * 
* * string Continent = 3; * @return The continent. */ public String getContinent() { Object ref = continent_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); continent_ = s; return s; } else { return (String) ref; } } /** *
     *大洲
     * 
* * string Continent = 3; * @return The bytes for continent. */ public com.google.protobuf.ByteString getContinentBytes() { Object ref = continent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); continent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *大洲
     * 
* * string Continent = 3; * @param value The continent to set. * @return This builder for chaining. */ public Builder setContinent( String value) { if (value == null) { throw new NullPointerException(); } continent_ = value; onChanged(); return this; } /** *
     *大洲
     * 
* * string Continent = 3; * @return This builder for chaining. */ public Builder clearContinent() { continent_ = getDefaultInstance().getContinent(); onChanged(); return this; } /** *
     *大洲
     * 
* * string Continent = 3; * @param value The bytes for continent to set. * @return This builder for chaining. */ public Builder setContinentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); continent_ = value; onChanged(); return this; } private Object country_ = ""; /** *
     *国家码
     * 
* * string Country = 4; * @return The country. */ public String getCountry() { Object ref = country_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); country_ = s; return s; } else { return (String) ref; } } /** *
     *国家码
     * 
* * string Country = 4; * @return The bytes for country. */ public com.google.protobuf.ByteString getCountryBytes() { Object ref = country_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); country_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *国家码
     * 
* * string Country = 4; * @param value The country to set. * @return This builder for chaining. */ public Builder setCountry( String value) { if (value == null) { throw new NullPointerException(); } country_ = value; onChanged(); return this; } /** *
     *国家码
     * 
* * string Country = 4; * @return This builder for chaining. */ public Builder clearCountry() { country_ = getDefaultInstance().getCountry(); onChanged(); return this; } /** *
     *国家码
     * 
* * string Country = 4; * @param value The bytes for country to set. * @return This builder for chaining. */ public Builder setCountryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); country_ = value; onChanged(); return this; } private Object region_ = ""; /** *
     *区域
     * 
* * string Region = 5; * @return The region. */ public String getRegion() { Object ref = region_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); region_ = s; return s; } else { return (String) ref; } } /** *
     *区域
     * 
* * string Region = 5; * @return The bytes for region. */ public com.google.protobuf.ByteString getRegionBytes() { Object ref = region_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); region_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *区域
     * 
* * string Region = 5; * @param value The region to set. * @return This builder for chaining. */ public Builder setRegion( String value) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); return this; } /** *
     *区域
     * 
* * string Region = 5; * @return This builder for chaining. */ public Builder clearRegion() { region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** *
     *区域
     * 
* * string Region = 5; * @param value The bytes for region to set. * @return This builder for chaining. */ public Builder setRegionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); region_ = value; onChanged(); return this; } private Object city_ = ""; /** *
     *城市
     * 
* * string City = 6; * @return The city. */ public String getCity() { Object ref = city_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); city_ = s; return s; } else { return (String) ref; } } /** *
     *城市
     * 
* * string City = 6; * @return The bytes for city. */ public com.google.protobuf.ByteString getCityBytes() { Object ref = city_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); city_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *城市
     * 
* * string City = 6; * @param value The city to set. * @return This builder for chaining. */ public Builder setCity( String value) { if (value == null) { throw new NullPointerException(); } city_ = value; onChanged(); return this; } /** *
     *城市
     * 
* * string City = 6; * @return This builder for chaining. */ public Builder clearCity() { city_ = getDefaultInstance().getCity(); onChanged(); return this; } /** *
     *城市
     * 
* * string City = 6; * @param value The bytes for city to set. * @return This builder for chaining. */ public Builder setCityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); city_ = value; onChanged(); return this; } private Object iSP_ = ""; /** *
     *运营商
     * 
* * string ISP = 7; * @return The iSP. */ public String getISP() { Object ref = iSP_; if (!(ref instanceof String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); iSP_ = s; return s; } else { return (String) ref; } } /** *
     *运营商
     * 
* * string ISP = 7; * @return The bytes for iSP. */ public com.google.protobuf.ByteString getISPBytes() { Object ref = iSP_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); iSP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *运营商
     * 
* * string ISP = 7; * @param value The iSP to set. * @return This builder for chaining. */ public Builder setISP( String value) { if (value == null) { throw new NullPointerException(); } iSP_ = value; onChanged(); return this; } /** *
     *运营商
     * 
* * string ISP = 7; * @return This builder for chaining. */ public Builder clearISP() { iSP_ = getDefaultInstance().getISP(); onChanged(); return this; } /** *
     *运营商
     * 
* * string ISP = 7; * @param value The bytes for iSP to set. * @return This builder for chaining. */ public Builder setISPBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); iSP_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDenyListIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { denyList_ = new com.google.protobuf.LazyStringArrayList(denyList_); bitField0_ |= 0x00000004; } } /** *
     *黑名单
     * 
* * repeated string DenyList = 8; * @return A list containing the denyList. */ public com.google.protobuf.ProtocolStringList getDenyListList() { return denyList_.getUnmodifiableView(); } /** *
     *黑名单
     * 
* * repeated string DenyList = 8; * @return The count of denyList. */ public int getDenyListCount() { return denyList_.size(); } /** *
     *黑名单
     * 
* * repeated string DenyList = 8; * @param index The index of the element to return. * @return The denyList at the given index. */ public String getDenyList(int index) { return denyList_.get(index); } /** *
     *黑名单
     * 
* * repeated string DenyList = 8; * @param index The index of the value to return. * @return The bytes of the denyList at the given index. */ public com.google.protobuf.ByteString getDenyListBytes(int index) { return denyList_.getByteString(index); } /** *
     *黑名单
     * 
* * repeated string DenyList = 8; * @param index The index to set the value at. * @param value The denyList to set. * @return This builder for chaining. */ public Builder setDenyList( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureDenyListIsMutable(); denyList_.set(index, value); onChanged(); return this; } /** *
     *黑名单
     * 
* * repeated string DenyList = 8; * @param value The denyList to add. * @return This builder for chaining. */ public Builder addDenyList( String value) { if (value == null) { throw new NullPointerException(); } ensureDenyListIsMutable(); denyList_.add(value); onChanged(); return this; } /** *
     *黑名单
     * 
* * repeated string DenyList = 8; * @param values The denyList to add. * @return This builder for chaining. */ public Builder addAllDenyList( Iterable values) { ensureDenyListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, denyList_); onChanged(); return this; } /** *
     *黑名单
     * 
* * repeated string DenyList = 8; * @return This builder for chaining. */ public Builder clearDenyList() { denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     *黑名单
     * 
* * repeated string DenyList = 8; * @param value The bytes of the denyList to add. * @return This builder for chaining. */ public Builder addDenyListBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDenyListIsMutable(); denyList_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList allowList_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowListIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { allowList_ = new com.google.protobuf.LazyStringArrayList(allowList_); bitField0_ |= 0x00000008; } } /** *
     *白名单
     * 
* * repeated string AllowList = 9; * @return A list containing the allowList. */ public com.google.protobuf.ProtocolStringList getAllowListList() { return allowList_.getUnmodifiableView(); } /** *
     *白名单
     * 
* * repeated string AllowList = 9; * @return The count of allowList. */ public int getAllowListCount() { return allowList_.size(); } /** *
     *白名单
     * 
* * repeated string AllowList = 9; * @param index The index of the element to return. * @return The allowList at the given index. */ public String getAllowList(int index) { return allowList_.get(index); } /** *
     *白名单
     * 
* * repeated string AllowList = 9; * @param index The index of the value to return. * @return The bytes of the allowList at the given index. */ public com.google.protobuf.ByteString getAllowListBytes(int index) { return allowList_.getByteString(index); } /** *
     *白名单
     * 
* * repeated string AllowList = 9; * @param index The index to set the value at. * @param value The allowList to set. * @return This builder for chaining. */ public Builder setAllowList( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureAllowListIsMutable(); allowList_.set(index, value); onChanged(); return this; } /** *
     *白名单
     * 
* * repeated string AllowList = 9; * @param value The allowList to add. * @return This builder for chaining. */ public Builder addAllowList( String value) { if (value == null) { throw new NullPointerException(); } ensureAllowListIsMutable(); allowList_.add(value); onChanged(); return this; } /** *
     *白名单
     * 
* * repeated string AllowList = 9; * @param values The allowList to add. * @return This builder for chaining. */ public Builder addAllAllowList( Iterable values) { ensureAllowListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, allowList_); onChanged(); return this; } /** *
     *白名单
     * 
* * repeated string AllowList = 9; * @return This builder for chaining. */ public Builder clearAllowList() { allowList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     *白名单
     * 
* * repeated string AllowList = 9; * @param value The bytes of the allowList to add. * @return This builder for chaining. */ public Builder addAllowListBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAllowListIsMutable(); allowList_.add(value); onChanged(); return this; } @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.DenyConfigDetail) } // @@protoc_insertion_point(class_scope:Volcengine.Live.Models.Business.DenyConfigDetail) private static final DenyConfigDetail DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new DenyConfigDetail(); } public static DenyConfigDetail getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @Override public DenyConfigDetail parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DenyConfigDetail(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @Override public DenyConfigDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy