com.volcengine.service.vod.model.business.VodCdnStatisticsData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: volcengine/vod/business/vod_cdn.proto
package com.volcengine.service.vod.model.business;
/**
* Protobuf type {@code Volcengine.Vod.Models.Business.VodCdnStatisticsData}
*/
public final class VodCdnStatisticsData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.VodCdnStatisticsData)
VodCdnStatisticsDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use VodCdnStatisticsData.newBuilder() to construct.
private VodCdnStatisticsData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VodCdnStatisticsData() {
name_ = "";
metric_ = "";
dataType_ = "";
points_ = java.util.Collections.emptyList();
region_ = "";
isp_ = "";
billingRegion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VodCdnStatisticsData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VodCdnStatisticsData(
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();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
metric_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
dataType_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
points_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
points_.add(
input.readMessage(com.volcengine.service.vod.model.business.VodPoint.parser(), extensionRegistry));
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
region_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
isp_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
billingRegion_ = 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)) {
points_ = java.util.Collections.unmodifiableList(points_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodCdnStatisticsData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodCdnStatisticsData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.VodCdnStatisticsData.class, com.volcengine.service.vod.model.business.VodCdnStatisticsData.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string Name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string Name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METRIC_FIELD_NUMBER = 2;
private volatile java.lang.Object metric_;
/**
* string Metric = 2;
* @return The metric.
*/
@java.lang.Override
public java.lang.String getMetric() {
java.lang.Object ref = metric_;
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();
metric_ = s;
return s;
}
}
/**
* string Metric = 2;
* @return The bytes for metric.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMetricBytes() {
java.lang.Object ref = metric_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metric_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATATYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object dataType_;
/**
* string DataType = 3;
* @return The dataType.
*/
@java.lang.Override
public java.lang.String getDataType() {
java.lang.Object ref = dataType_;
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();
dataType_ = s;
return s;
}
}
/**
* string DataType = 3;
* @return The bytes for dataType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDataTypeBytes() {
java.lang.Object ref = dataType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POINTS_FIELD_NUMBER = 4;
private java.util.List points_;
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
@java.lang.Override
public java.util.List getPointsList() {
return points_;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
@java.lang.Override
public java.util.List extends com.volcengine.service.vod.model.business.VodPointOrBuilder>
getPointsOrBuilderList() {
return points_;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
@java.lang.Override
public int getPointsCount() {
return points_.size();
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
@java.lang.Override
public com.volcengine.service.vod.model.business.VodPoint getPoints(int index) {
return points_.get(index);
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
@java.lang.Override
public com.volcengine.service.vod.model.business.VodPointOrBuilder getPointsOrBuilder(
int index) {
return points_.get(index);
}
public static final int REGION_FIELD_NUMBER = 5;
private volatile java.lang.Object region_;
/**
* string Region = 5;
* @return The region.
*/
@java.lang.Override
public java.lang.String getRegion() {
java.lang.Object ref = region_;
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();
region_ = s;
return s;
}
}
/**
* string Region = 5;
* @return The bytes for region.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ISP_FIELD_NUMBER = 6;
private volatile java.lang.Object isp_;
/**
* string Isp = 6;
* @return The isp.
*/
@java.lang.Override
public java.lang.String getIsp() {
java.lang.Object ref = isp_;
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();
isp_ = s;
return s;
}
}
/**
* string Isp = 6;
* @return The bytes for isp.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIspBytes() {
java.lang.Object ref = isp_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
isp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BILLINGREGION_FIELD_NUMBER = 7;
private volatile java.lang.Object billingRegion_;
/**
* string BillingRegion = 7;
* @return The billingRegion.
*/
@java.lang.Override
public java.lang.String getBillingRegion() {
java.lang.Object ref = billingRegion_;
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();
billingRegion_ = s;
return s;
}
}
/**
* string BillingRegion = 7;
* @return The bytes for billingRegion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBillingRegionBytes() {
java.lang.Object ref = billingRegion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
billingRegion_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metric_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dataType_);
}
for (int i = 0; i < points_.size(); i++) {
output.writeMessage(4, points_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, region_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(isp_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, isp_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingRegion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, billingRegion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metric_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dataType_);
}
for (int i = 0; i < points_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, points_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, region_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(isp_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, isp_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingRegion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, billingRegion_);
}
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 com.volcengine.service.vod.model.business.VodCdnStatisticsData)) {
return super.equals(obj);
}
com.volcengine.service.vod.model.business.VodCdnStatisticsData other = (com.volcengine.service.vod.model.business.VodCdnStatisticsData) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getMetric()
.equals(other.getMetric())) return false;
if (!getDataType()
.equals(other.getDataType())) return false;
if (!getPointsList()
.equals(other.getPointsList())) return false;
if (!getRegion()
.equals(other.getRegion())) return false;
if (!getIsp()
.equals(other.getIsp())) return false;
if (!getBillingRegion()
.equals(other.getBillingRegion())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + METRIC_FIELD_NUMBER;
hash = (53 * hash) + getMetric().hashCode();
hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
hash = (53 * hash) + getDataType().hashCode();
if (getPointsCount() > 0) {
hash = (37 * hash) + POINTS_FIELD_NUMBER;
hash = (53 * hash) + getPointsList().hashCode();
}
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
hash = (37 * hash) + ISP_FIELD_NUMBER;
hash = (53 * hash) + getIsp().hashCode();
hash = (37 * hash) + BILLINGREGION_FIELD_NUMBER;
hash = (53 * hash) + getBillingRegion().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData 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 com.volcengine.service.vod.model.business.VodCdnStatisticsData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData 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 com.volcengine.service.vod.model.business.VodCdnStatisticsData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData 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(com.volcengine.service.vod.model.business.VodCdnStatisticsData 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;
}
/**
* Protobuf type {@code Volcengine.Vod.Models.Business.VodCdnStatisticsData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.VodCdnStatisticsData)
com.volcengine.service.vod.model.business.VodCdnStatisticsDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodCdnStatisticsData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodCdnStatisticsData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.VodCdnStatisticsData.class, com.volcengine.service.vod.model.business.VodCdnStatisticsData.Builder.class);
}
// Construct using com.volcengine.service.vod.model.business.VodCdnStatisticsData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPointsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
metric_ = "";
dataType_ = "";
if (pointsBuilder_ == null) {
points_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
pointsBuilder_.clear();
}
region_ = "";
isp_ = "";
billingRegion_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodCdnStatisticsData_descriptor;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodCdnStatisticsData getDefaultInstanceForType() {
return com.volcengine.service.vod.model.business.VodCdnStatisticsData.getDefaultInstance();
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodCdnStatisticsData build() {
com.volcengine.service.vod.model.business.VodCdnStatisticsData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodCdnStatisticsData buildPartial() {
com.volcengine.service.vod.model.business.VodCdnStatisticsData result = new com.volcengine.service.vod.model.business.VodCdnStatisticsData(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.metric_ = metric_;
result.dataType_ = dataType_;
if (pointsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
points_ = java.util.Collections.unmodifiableList(points_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.points_ = points_;
} else {
result.points_ = pointsBuilder_.build();
}
result.region_ = region_;
result.isp_ = isp_;
result.billingRegion_ = billingRegion_;
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 com.volcengine.service.vod.model.business.VodCdnStatisticsData) {
return mergeFrom((com.volcengine.service.vod.model.business.VodCdnStatisticsData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.volcengine.service.vod.model.business.VodCdnStatisticsData other) {
if (other == com.volcengine.service.vod.model.business.VodCdnStatisticsData.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getMetric().isEmpty()) {
metric_ = other.metric_;
onChanged();
}
if (!other.getDataType().isEmpty()) {
dataType_ = other.dataType_;
onChanged();
}
if (pointsBuilder_ == null) {
if (!other.points_.isEmpty()) {
if (points_.isEmpty()) {
points_ = other.points_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePointsIsMutable();
points_.addAll(other.points_);
}
onChanged();
}
} else {
if (!other.points_.isEmpty()) {
if (pointsBuilder_.isEmpty()) {
pointsBuilder_.dispose();
pointsBuilder_ = null;
points_ = other.points_;
bitField0_ = (bitField0_ & ~0x00000001);
pointsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPointsFieldBuilder() : null;
} else {
pointsBuilder_.addAllMessages(other.points_);
}
}
}
if (!other.getRegion().isEmpty()) {
region_ = other.region_;
onChanged();
}
if (!other.getIsp().isEmpty()) {
isp_ = other.isp_;
onChanged();
}
if (!other.getBillingRegion().isEmpty()) {
billingRegion_ = other.billingRegion_;
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 {
com.volcengine.service.vod.model.business.VodCdnStatisticsData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.volcengine.service.vod.model.business.VodCdnStatisticsData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* string Name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string Name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string Name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string Name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string Name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object metric_ = "";
/**
* string Metric = 2;
* @return The metric.
*/
public java.lang.String getMetric() {
java.lang.Object ref = metric_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
metric_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string Metric = 2;
* @return The bytes for metric.
*/
public com.google.protobuf.ByteString
getMetricBytes() {
java.lang.Object ref = metric_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metric_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string Metric = 2;
* @param value The metric to set.
* @return This builder for chaining.
*/
public Builder setMetric(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
metric_ = value;
onChanged();
return this;
}
/**
* string Metric = 2;
* @return This builder for chaining.
*/
public Builder clearMetric() {
metric_ = getDefaultInstance().getMetric();
onChanged();
return this;
}
/**
* string Metric = 2;
* @param value The bytes for metric to set.
* @return This builder for chaining.
*/
public Builder setMetricBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
metric_ = value;
onChanged();
return this;
}
private java.lang.Object dataType_ = "";
/**
* string DataType = 3;
* @return The dataType.
*/
public java.lang.String getDataType() {
java.lang.Object ref = dataType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string DataType = 3;
* @return The bytes for dataType.
*/
public com.google.protobuf.ByteString
getDataTypeBytes() {
java.lang.Object ref = dataType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string DataType = 3;
* @param value The dataType to set.
* @return This builder for chaining.
*/
public Builder setDataType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataType_ = value;
onChanged();
return this;
}
/**
* string DataType = 3;
* @return This builder for chaining.
*/
public Builder clearDataType() {
dataType_ = getDefaultInstance().getDataType();
onChanged();
return this;
}
/**
* string DataType = 3;
* @param value The bytes for dataType to set.
* @return This builder for chaining.
*/
public Builder setDataTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataType_ = value;
onChanged();
return this;
}
private java.util.List points_ =
java.util.Collections.emptyList();
private void ensurePointsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
points_ = new java.util.ArrayList(points_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodPoint, com.volcengine.service.vod.model.business.VodPoint.Builder, com.volcengine.service.vod.model.business.VodPointOrBuilder> pointsBuilder_;
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public java.util.List getPointsList() {
if (pointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(points_);
} else {
return pointsBuilder_.getMessageList();
}
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public int getPointsCount() {
if (pointsBuilder_ == null) {
return points_.size();
} else {
return pointsBuilder_.getCount();
}
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public com.volcengine.service.vod.model.business.VodPoint getPoints(int index) {
if (pointsBuilder_ == null) {
return points_.get(index);
} else {
return pointsBuilder_.getMessage(index);
}
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public Builder setPoints(
int index, com.volcengine.service.vod.model.business.VodPoint value) {
if (pointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePointsIsMutable();
points_.set(index, value);
onChanged();
} else {
pointsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public Builder setPoints(
int index, com.volcengine.service.vod.model.business.VodPoint.Builder builderForValue) {
if (pointsBuilder_ == null) {
ensurePointsIsMutable();
points_.set(index, builderForValue.build());
onChanged();
} else {
pointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public Builder addPoints(com.volcengine.service.vod.model.business.VodPoint value) {
if (pointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePointsIsMutable();
points_.add(value);
onChanged();
} else {
pointsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public Builder addPoints(
int index, com.volcengine.service.vod.model.business.VodPoint value) {
if (pointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePointsIsMutable();
points_.add(index, value);
onChanged();
} else {
pointsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public Builder addPoints(
com.volcengine.service.vod.model.business.VodPoint.Builder builderForValue) {
if (pointsBuilder_ == null) {
ensurePointsIsMutable();
points_.add(builderForValue.build());
onChanged();
} else {
pointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public Builder addPoints(
int index, com.volcengine.service.vod.model.business.VodPoint.Builder builderForValue) {
if (pointsBuilder_ == null) {
ensurePointsIsMutable();
points_.add(index, builderForValue.build());
onChanged();
} else {
pointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public Builder addAllPoints(
java.lang.Iterable extends com.volcengine.service.vod.model.business.VodPoint> values) {
if (pointsBuilder_ == null) {
ensurePointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, points_);
onChanged();
} else {
pointsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public Builder clearPoints() {
if (pointsBuilder_ == null) {
points_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
pointsBuilder_.clear();
}
return this;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public Builder removePoints(int index) {
if (pointsBuilder_ == null) {
ensurePointsIsMutable();
points_.remove(index);
onChanged();
} else {
pointsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public com.volcengine.service.vod.model.business.VodPoint.Builder getPointsBuilder(
int index) {
return getPointsFieldBuilder().getBuilder(index);
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public com.volcengine.service.vod.model.business.VodPointOrBuilder getPointsOrBuilder(
int index) {
if (pointsBuilder_ == null) {
return points_.get(index); } else {
return pointsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public java.util.List extends com.volcengine.service.vod.model.business.VodPointOrBuilder>
getPointsOrBuilderList() {
if (pointsBuilder_ != null) {
return pointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(points_);
}
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public com.volcengine.service.vod.model.business.VodPoint.Builder addPointsBuilder() {
return getPointsFieldBuilder().addBuilder(
com.volcengine.service.vod.model.business.VodPoint.getDefaultInstance());
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public com.volcengine.service.vod.model.business.VodPoint.Builder addPointsBuilder(
int index) {
return getPointsFieldBuilder().addBuilder(
index, com.volcengine.service.vod.model.business.VodPoint.getDefaultInstance());
}
/**
* repeated .Volcengine.Vod.Models.Business.VodPoint Points = 4;
*/
public java.util.List
getPointsBuilderList() {
return getPointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodPoint, com.volcengine.service.vod.model.business.VodPoint.Builder, com.volcengine.service.vod.model.business.VodPointOrBuilder>
getPointsFieldBuilder() {
if (pointsBuilder_ == null) {
pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodPoint, com.volcengine.service.vod.model.business.VodPoint.Builder, com.volcengine.service.vod.model.business.VodPointOrBuilder>(
points_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
points_ = null;
}
return pointsBuilder_;
}
private java.lang.Object region_ = "";
/**
* string Region = 5;
* @return The region.
*/
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
region_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string Region = 5;
* @return The bytes for region.
*/
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.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(
java.lang.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 java.lang.Object isp_ = "";
/**
* string Isp = 6;
* @return The isp.
*/
public java.lang.String getIsp() {
java.lang.Object ref = isp_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
isp_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string Isp = 6;
* @return The bytes for isp.
*/
public com.google.protobuf.ByteString
getIspBytes() {
java.lang.Object ref = isp_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
isp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string Isp = 6;
* @param value The isp to set.
* @return This builder for chaining.
*/
public Builder setIsp(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
isp_ = value;
onChanged();
return this;
}
/**
* string Isp = 6;
* @return This builder for chaining.
*/
public Builder clearIsp() {
isp_ = getDefaultInstance().getIsp();
onChanged();
return this;
}
/**
* string Isp = 6;
* @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 java.lang.Object billingRegion_ = "";
/**
* string BillingRegion = 7;
* @return The billingRegion.
*/
public java.lang.String getBillingRegion() {
java.lang.Object ref = billingRegion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
billingRegion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string BillingRegion = 7;
* @return The bytes for billingRegion.
*/
public com.google.protobuf.ByteString
getBillingRegionBytes() {
java.lang.Object ref = billingRegion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
billingRegion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string BillingRegion = 7;
* @param value The billingRegion to set.
* @return This builder for chaining.
*/
public Builder setBillingRegion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
billingRegion_ = value;
onChanged();
return this;
}
/**
* string BillingRegion = 7;
* @return This builder for chaining.
*/
public Builder clearBillingRegion() {
billingRegion_ = getDefaultInstance().getBillingRegion();
onChanged();
return this;
}
/**
* string BillingRegion = 7;
* @param value The bytes for billingRegion to set.
* @return This builder for chaining.
*/
public Builder setBillingRegionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
billingRegion_ = 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:Volcengine.Vod.Models.Business.VodCdnStatisticsData)
}
// @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.VodCdnStatisticsData)
private static final com.volcengine.service.vod.model.business.VodCdnStatisticsData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.VodCdnStatisticsData();
}
public static com.volcengine.service.vod.model.business.VodCdnStatisticsData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VodCdnStatisticsData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VodCdnStatisticsData(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 com.volcengine.service.vod.model.business.VodCdnStatisticsData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy