cz.proto.meter.MeterOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: meter.proto
package cz.proto.meter;
public final class MeterOuterClass {
private MeterOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface MeterOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.meter.Meter)
com.google.protobuf.MessageOrBuilder {
/**
*
* positive
*
*
* int64 account_id = 1;
* @return The accountId.
*/
long getAccountId();
/**
*
* positive
*
*
* int64 instance_id = 2;
* @return The instanceId.
*/
long getInstanceId();
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The skuCode.
*/
java.lang.String getSkuCode();
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The bytes for skuCode.
*/
com.google.protobuf.ByteString
getSkuCodeBytes();
/**
*
* positive
*
*
* int64 resource_id = 4;
* @return The resourceId.
*/
long getResourceId();
/**
*
* optional
*
*
* string resource_name = 11;
* @return The resourceName.
*/
java.lang.String getResourceName();
/**
*
* optional
*
*
* string resource_name = 11;
* @return The bytes for resourceName.
*/
com.google.protobuf.ByteString
getResourceNameBytes();
/**
*
* less equals to end time
*
*
* int64 measurement_start = 5;
* @return The measurementStart.
*/
long getMeasurementStart();
/**
*
* positive
*
*
* int64 measurement_end = 6;
* @return The measurementEnd.
*/
long getMeasurementEnd();
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
java.util.List
getMeasurementsList();
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
cz.proto.meter.MeterOuterClass.Measurement getMeasurements(int index);
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
int getMeasurementsCount();
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
java.util.List extends cz.proto.meter.MeterOuterClass.MeasurementOrBuilder>
getMeasurementsOrBuilderList();
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
cz.proto.meter.MeterOuterClass.MeasurementOrBuilder getMeasurementsOrBuilder(
int index);
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
int getResourcePropertiesCount();
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
boolean containsResourceProperties(
java.lang.String key);
/**
* Use {@link #getResourcePropertiesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getResourceProperties();
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
java.util.Map
getResourcePropertiesMap();
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
java.lang.String getResourcePropertiesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
java.lang.String getResourcePropertiesOrThrow(
java.lang.String key);
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The idempotent.
*/
java.lang.String getIdempotent();
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The bytes for idempotent.
*/
com.google.protobuf.ByteString
getIdempotentBytes();
/**
* bool is_obj_dropped = 10;
* @return The isObjDropped.
*/
boolean getIsObjDropped();
}
/**
* Protobuf type {@code cz.proto.meter.Meter}
*/
public static final class Meter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.meter.Meter)
MeterOrBuilder {
private static final long serialVersionUID = 0L;
// Use Meter.newBuilder() to construct.
private Meter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Meter() {
skuCode_ = "";
resourceName_ = "";
measurements_ = java.util.Collections.emptyList();
idempotent_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Meter();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Meter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
accountId_ = input.readInt64();
break;
}
case 16: {
instanceId_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
skuCode_ = s;
break;
}
case 32: {
resourceId_ = input.readInt64();
break;
}
case 40: {
measurementStart_ = input.readInt64();
break;
}
case 48: {
measurementEnd_ = input.readInt64();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
measurements_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
measurements_.add(
input.readMessage(cz.proto.meter.MeterOuterClass.Measurement.parser(), extensionRegistry));
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
resourceProperties_ = com.google.protobuf.MapField.newMapField(
ResourcePropertiesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
resourceProperties__ = input.readMessage(
ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
resourceProperties_.getMutableMap().put(
resourceProperties__.getKey(), resourceProperties__.getValue());
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
idempotent_ = s;
break;
}
case 80: {
isObjDropped_ = input.readBool();
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
resourceName_ = 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)) {
measurements_ = java.util.Collections.unmodifiableList(measurements_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Meter_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 8:
return internalGetResourceProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Meter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.meter.MeterOuterClass.Meter.class, cz.proto.meter.MeterOuterClass.Meter.Builder.class);
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
private long accountId_;
/**
*
* positive
*
*
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
public static final int INSTANCE_ID_FIELD_NUMBER = 2;
private long instanceId_;
/**
*
* positive
*
*
* int64 instance_id = 2;
* @return The instanceId.
*/
@java.lang.Override
public long getInstanceId() {
return instanceId_;
}
public static final int SKU_CODE_FIELD_NUMBER = 3;
private volatile java.lang.Object skuCode_;
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The skuCode.
*/
@java.lang.Override
public java.lang.String getSkuCode() {
java.lang.Object ref = skuCode_;
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();
skuCode_ = s;
return s;
}
}
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The bytes for skuCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSkuCodeBytes() {
java.lang.Object ref = skuCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
skuCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_ID_FIELD_NUMBER = 4;
private long resourceId_;
/**
*
* positive
*
*
* int64 resource_id = 4;
* @return The resourceId.
*/
@java.lang.Override
public long getResourceId() {
return resourceId_;
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 11;
private volatile java.lang.Object resourceName_;
/**
*
* optional
*
*
* string resource_name = 11;
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
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();
resourceName_ = s;
return s;
}
}
/**
*
* optional
*
*
* string resource_name = 11;
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MEASUREMENT_START_FIELD_NUMBER = 5;
private long measurementStart_;
/**
*
* less equals to end time
*
*
* int64 measurement_start = 5;
* @return The measurementStart.
*/
@java.lang.Override
public long getMeasurementStart() {
return measurementStart_;
}
public static final int MEASUREMENT_END_FIELD_NUMBER = 6;
private long measurementEnd_;
/**
*
* positive
*
*
* int64 measurement_end = 6;
* @return The measurementEnd.
*/
@java.lang.Override
public long getMeasurementEnd() {
return measurementEnd_;
}
public static final int MEASUREMENTS_FIELD_NUMBER = 7;
private java.util.List measurements_;
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
@java.lang.Override
public java.util.List getMeasurementsList() {
return measurements_;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
@java.lang.Override
public java.util.List extends cz.proto.meter.MeterOuterClass.MeasurementOrBuilder>
getMeasurementsOrBuilderList() {
return measurements_;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
@java.lang.Override
public int getMeasurementsCount() {
return measurements_.size();
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
@java.lang.Override
public cz.proto.meter.MeterOuterClass.Measurement getMeasurements(int index) {
return measurements_.get(index);
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
@java.lang.Override
public cz.proto.meter.MeterOuterClass.MeasurementOrBuilder getMeasurementsOrBuilder(
int index) {
return measurements_.get(index);
}
public static final int RESOURCE_PROPERTIES_FIELD_NUMBER = 8;
private static final class ResourcePropertiesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Meter_ResourcePropertiesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> resourceProperties_;
private com.google.protobuf.MapField
internalGetResourceProperties() {
if (resourceProperties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResourcePropertiesDefaultEntryHolder.defaultEntry);
}
return resourceProperties_;
}
public int getResourcePropertiesCount() {
return internalGetResourceProperties().getMap().size();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public boolean containsResourceProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResourceProperties().getMap().containsKey(key);
}
/**
* Use {@link #getResourcePropertiesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResourceProperties() {
return getResourcePropertiesMap();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.util.Map getResourcePropertiesMap() {
return internalGetResourceProperties().getMap();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.lang.String getResourcePropertiesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResourceProperties().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.lang.String getResourcePropertiesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResourceProperties().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int IDEMPOTENT_FIELD_NUMBER = 9;
private volatile java.lang.Object idempotent_;
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The idempotent.
*/
@java.lang.Override
public java.lang.String getIdempotent() {
java.lang.Object ref = idempotent_;
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();
idempotent_ = s;
return s;
}
}
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The bytes for idempotent.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdempotentBytes() {
java.lang.Object ref = idempotent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
idempotent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IS_OBJ_DROPPED_FIELD_NUMBER = 10;
private boolean isObjDropped_;
/**
* bool is_obj_dropped = 10;
* @return The isObjDropped.
*/
@java.lang.Override
public boolean getIsObjDropped() {
return isObjDropped_;
}
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 (accountId_ != 0L) {
output.writeInt64(1, accountId_);
}
if (instanceId_ != 0L) {
output.writeInt64(2, instanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skuCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, skuCode_);
}
if (resourceId_ != 0L) {
output.writeInt64(4, resourceId_);
}
if (measurementStart_ != 0L) {
output.writeInt64(5, measurementStart_);
}
if (measurementEnd_ != 0L) {
output.writeInt64(6, measurementEnd_);
}
for (int i = 0; i < measurements_.size(); i++) {
output.writeMessage(7, measurements_.get(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetResourceProperties(),
ResourcePropertiesDefaultEntryHolder.defaultEntry,
8);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idempotent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, idempotent_);
}
if (isObjDropped_ != false) {
output.writeBool(10, isObjDropped_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, resourceName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (accountId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, accountId_);
}
if (instanceId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, instanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skuCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, skuCode_);
}
if (resourceId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, resourceId_);
}
if (measurementStart_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, measurementStart_);
}
if (measurementEnd_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, measurementEnd_);
}
for (int i = 0; i < measurements_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, measurements_.get(i));
}
for (java.util.Map.Entry entry
: internalGetResourceProperties().getMap().entrySet()) {
com.google.protobuf.MapEntry
resourceProperties__ = ResourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, resourceProperties__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idempotent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, idempotent_);
}
if (isObjDropped_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, isObjDropped_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, resourceName_);
}
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 cz.proto.meter.MeterOuterClass.Meter)) {
return super.equals(obj);
}
cz.proto.meter.MeterOuterClass.Meter other = (cz.proto.meter.MeterOuterClass.Meter) obj;
if (getAccountId()
!= other.getAccountId()) return false;
if (getInstanceId()
!= other.getInstanceId()) return false;
if (!getSkuCode()
.equals(other.getSkuCode())) return false;
if (getResourceId()
!= other.getResourceId()) return false;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (getMeasurementStart()
!= other.getMeasurementStart()) return false;
if (getMeasurementEnd()
!= other.getMeasurementEnd()) return false;
if (!getMeasurementsList()
.equals(other.getMeasurementsList())) return false;
if (!internalGetResourceProperties().equals(
other.internalGetResourceProperties())) return false;
if (!getIdempotent()
.equals(other.getIdempotent())) return false;
if (getIsObjDropped()
!= other.getIsObjDropped()) 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) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountId());
hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInstanceId());
hash = (37 * hash) + SKU_CODE_FIELD_NUMBER;
hash = (53 * hash) + getSkuCode().hashCode();
hash = (37 * hash) + RESOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getResourceId());
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
hash = (37 * hash) + MEASUREMENT_START_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMeasurementStart());
hash = (37 * hash) + MEASUREMENT_END_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMeasurementEnd());
if (getMeasurementsCount() > 0) {
hash = (37 * hash) + MEASUREMENTS_FIELD_NUMBER;
hash = (53 * hash) + getMeasurementsList().hashCode();
}
if (!internalGetResourceProperties().getMap().isEmpty()) {
hash = (37 * hash) + RESOURCE_PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetResourceProperties().hashCode();
}
hash = (37 * hash) + IDEMPOTENT_FIELD_NUMBER;
hash = (53 * hash) + getIdempotent().hashCode();
hash = (37 * hash) + IS_OBJ_DROPPED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsObjDropped());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.meter.MeterOuterClass.Meter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.meter.MeterOuterClass.Meter parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.meter.MeterOuterClass.Meter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.meter.MeterOuterClass.Meter parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.meter.MeterOuterClass.Meter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.meter.MeterOuterClass.Meter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.meter.MeterOuterClass.Meter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.meter.MeterOuterClass.Meter 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 cz.proto.meter.MeterOuterClass.Meter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.meter.MeterOuterClass.Meter 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 cz.proto.meter.MeterOuterClass.Meter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.meter.MeterOuterClass.Meter 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(cz.proto.meter.MeterOuterClass.Meter 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 cz.proto.meter.Meter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.meter.Meter)
cz.proto.meter.MeterOuterClass.MeterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Meter_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 8:
return internalGetResourceProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 8:
return internalGetMutableResourceProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Meter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.meter.MeterOuterClass.Meter.class, cz.proto.meter.MeterOuterClass.Meter.Builder.class);
}
// Construct using cz.proto.meter.MeterOuterClass.Meter.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMeasurementsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
accountId_ = 0L;
instanceId_ = 0L;
skuCode_ = "";
resourceId_ = 0L;
resourceName_ = "";
measurementStart_ = 0L;
measurementEnd_ = 0L;
if (measurementsBuilder_ == null) {
measurements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
measurementsBuilder_.clear();
}
internalGetMutableResourceProperties().clear();
idempotent_ = "";
isObjDropped_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Meter_descriptor;
}
@java.lang.Override
public cz.proto.meter.MeterOuterClass.Meter getDefaultInstanceForType() {
return cz.proto.meter.MeterOuterClass.Meter.getDefaultInstance();
}
@java.lang.Override
public cz.proto.meter.MeterOuterClass.Meter build() {
cz.proto.meter.MeterOuterClass.Meter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.meter.MeterOuterClass.Meter buildPartial() {
cz.proto.meter.MeterOuterClass.Meter result = new cz.proto.meter.MeterOuterClass.Meter(this);
int from_bitField0_ = bitField0_;
result.accountId_ = accountId_;
result.instanceId_ = instanceId_;
result.skuCode_ = skuCode_;
result.resourceId_ = resourceId_;
result.resourceName_ = resourceName_;
result.measurementStart_ = measurementStart_;
result.measurementEnd_ = measurementEnd_;
if (measurementsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
measurements_ = java.util.Collections.unmodifiableList(measurements_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.measurements_ = measurements_;
} else {
result.measurements_ = measurementsBuilder_.build();
}
result.resourceProperties_ = internalGetResourceProperties();
result.resourceProperties_.makeImmutable();
result.idempotent_ = idempotent_;
result.isObjDropped_ = isObjDropped_;
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 cz.proto.meter.MeterOuterClass.Meter) {
return mergeFrom((cz.proto.meter.MeterOuterClass.Meter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.meter.MeterOuterClass.Meter other) {
if (other == cz.proto.meter.MeterOuterClass.Meter.getDefaultInstance()) return this;
if (other.getAccountId() != 0L) {
setAccountId(other.getAccountId());
}
if (other.getInstanceId() != 0L) {
setInstanceId(other.getInstanceId());
}
if (!other.getSkuCode().isEmpty()) {
skuCode_ = other.skuCode_;
onChanged();
}
if (other.getResourceId() != 0L) {
setResourceId(other.getResourceId());
}
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
if (other.getMeasurementStart() != 0L) {
setMeasurementStart(other.getMeasurementStart());
}
if (other.getMeasurementEnd() != 0L) {
setMeasurementEnd(other.getMeasurementEnd());
}
if (measurementsBuilder_ == null) {
if (!other.measurements_.isEmpty()) {
if (measurements_.isEmpty()) {
measurements_ = other.measurements_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMeasurementsIsMutable();
measurements_.addAll(other.measurements_);
}
onChanged();
}
} else {
if (!other.measurements_.isEmpty()) {
if (measurementsBuilder_.isEmpty()) {
measurementsBuilder_.dispose();
measurementsBuilder_ = null;
measurements_ = other.measurements_;
bitField0_ = (bitField0_ & ~0x00000001);
measurementsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMeasurementsFieldBuilder() : null;
} else {
measurementsBuilder_.addAllMessages(other.measurements_);
}
}
}
internalGetMutableResourceProperties().mergeFrom(
other.internalGetResourceProperties());
if (!other.getIdempotent().isEmpty()) {
idempotent_ = other.idempotent_;
onChanged();
}
if (other.getIsObjDropped() != false) {
setIsObjDropped(other.getIsObjDropped());
}
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 {
cz.proto.meter.MeterOuterClass.Meter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.meter.MeterOuterClass.Meter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long accountId_ ;
/**
*
* positive
*
*
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
/**
*
* positive
*
*
* int64 account_id = 1;
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
accountId_ = value;
onChanged();
return this;
}
/**
*
* positive
*
*
* int64 account_id = 1;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = 0L;
onChanged();
return this;
}
private long instanceId_ ;
/**
*
* positive
*
*
* int64 instance_id = 2;
* @return The instanceId.
*/
@java.lang.Override
public long getInstanceId() {
return instanceId_;
}
/**
*
* positive
*
*
* int64 instance_id = 2;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(long value) {
instanceId_ = value;
onChanged();
return this;
}
/**
*
* positive
*
*
* int64 instance_id = 2;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = 0L;
onChanged();
return this;
}
private java.lang.Object skuCode_ = "";
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The skuCode.
*/
public java.lang.String getSkuCode() {
java.lang.Object ref = skuCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
skuCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The bytes for skuCode.
*/
public com.google.protobuf.ByteString
getSkuCodeBytes() {
java.lang.Object ref = skuCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
skuCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* non-empty
*
*
* string sku_code = 3;
* @param value The skuCode to set.
* @return This builder for chaining.
*/
public Builder setSkuCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
skuCode_ = value;
onChanged();
return this;
}
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return This builder for chaining.
*/
public Builder clearSkuCode() {
skuCode_ = getDefaultInstance().getSkuCode();
onChanged();
return this;
}
/**
*
* non-empty
*
*
* string sku_code = 3;
* @param value The bytes for skuCode to set.
* @return This builder for chaining.
*/
public Builder setSkuCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
skuCode_ = value;
onChanged();
return this;
}
private long resourceId_ ;
/**
*
* positive
*
*
* int64 resource_id = 4;
* @return The resourceId.
*/
@java.lang.Override
public long getResourceId() {
return resourceId_;
}
/**
*
* positive
*
*
* int64 resource_id = 4;
* @param value The resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceId(long value) {
resourceId_ = value;
onChanged();
return this;
}
/**
*
* positive
*
*
* int64 resource_id = 4;
* @return This builder for chaining.
*/
public Builder clearResourceId() {
resourceId_ = 0L;
onChanged();
return this;
}
private java.lang.Object resourceName_ = "";
/**
*
* optional
*
*
* string resource_name = 11;
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* optional
*
*
* string resource_name = 11;
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* optional
*
*
* string resource_name = 11;
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceName_ = value;
onChanged();
return this;
}
/**
*
* optional
*
*
* string resource_name = 11;
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
onChanged();
return this;
}
/**
*
* optional
*
*
* string resource_name = 11;
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceName_ = value;
onChanged();
return this;
}
private long measurementStart_ ;
/**
*
* less equals to end time
*
*
* int64 measurement_start = 5;
* @return The measurementStart.
*/
@java.lang.Override
public long getMeasurementStart() {
return measurementStart_;
}
/**
*
* less equals to end time
*
*
* int64 measurement_start = 5;
* @param value The measurementStart to set.
* @return This builder for chaining.
*/
public Builder setMeasurementStart(long value) {
measurementStart_ = value;
onChanged();
return this;
}
/**
*
* less equals to end time
*
*
* int64 measurement_start = 5;
* @return This builder for chaining.
*/
public Builder clearMeasurementStart() {
measurementStart_ = 0L;
onChanged();
return this;
}
private long measurementEnd_ ;
/**
*
* positive
*
*
* int64 measurement_end = 6;
* @return The measurementEnd.
*/
@java.lang.Override
public long getMeasurementEnd() {
return measurementEnd_;
}
/**
*
* positive
*
*
* int64 measurement_end = 6;
* @param value The measurementEnd to set.
* @return This builder for chaining.
*/
public Builder setMeasurementEnd(long value) {
measurementEnd_ = value;
onChanged();
return this;
}
/**
*
* positive
*
*
* int64 measurement_end = 6;
* @return This builder for chaining.
*/
public Builder clearMeasurementEnd() {
measurementEnd_ = 0L;
onChanged();
return this;
}
private java.util.List measurements_ =
java.util.Collections.emptyList();
private void ensureMeasurementsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
measurements_ = new java.util.ArrayList(measurements_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.meter.MeterOuterClass.Measurement, cz.proto.meter.MeterOuterClass.Measurement.Builder, cz.proto.meter.MeterOuterClass.MeasurementOrBuilder> measurementsBuilder_;
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public java.util.List getMeasurementsList() {
if (measurementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(measurements_);
} else {
return measurementsBuilder_.getMessageList();
}
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public int getMeasurementsCount() {
if (measurementsBuilder_ == null) {
return measurements_.size();
} else {
return measurementsBuilder_.getCount();
}
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public cz.proto.meter.MeterOuterClass.Measurement getMeasurements(int index) {
if (measurementsBuilder_ == null) {
return measurements_.get(index);
} else {
return measurementsBuilder_.getMessage(index);
}
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public Builder setMeasurements(
int index, cz.proto.meter.MeterOuterClass.Measurement value) {
if (measurementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMeasurementsIsMutable();
measurements_.set(index, value);
onChanged();
} else {
measurementsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public Builder setMeasurements(
int index, cz.proto.meter.MeterOuterClass.Measurement.Builder builderForValue) {
if (measurementsBuilder_ == null) {
ensureMeasurementsIsMutable();
measurements_.set(index, builderForValue.build());
onChanged();
} else {
measurementsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public Builder addMeasurements(cz.proto.meter.MeterOuterClass.Measurement value) {
if (measurementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMeasurementsIsMutable();
measurements_.add(value);
onChanged();
} else {
measurementsBuilder_.addMessage(value);
}
return this;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public Builder addMeasurements(
int index, cz.proto.meter.MeterOuterClass.Measurement value) {
if (measurementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMeasurementsIsMutable();
measurements_.add(index, value);
onChanged();
} else {
measurementsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public Builder addMeasurements(
cz.proto.meter.MeterOuterClass.Measurement.Builder builderForValue) {
if (measurementsBuilder_ == null) {
ensureMeasurementsIsMutable();
measurements_.add(builderForValue.build());
onChanged();
} else {
measurementsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public Builder addMeasurements(
int index, cz.proto.meter.MeterOuterClass.Measurement.Builder builderForValue) {
if (measurementsBuilder_ == null) {
ensureMeasurementsIsMutable();
measurements_.add(index, builderForValue.build());
onChanged();
} else {
measurementsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public Builder addAllMeasurements(
java.lang.Iterable extends cz.proto.meter.MeterOuterClass.Measurement> values) {
if (measurementsBuilder_ == null) {
ensureMeasurementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, measurements_);
onChanged();
} else {
measurementsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public Builder clearMeasurements() {
if (measurementsBuilder_ == null) {
measurements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
measurementsBuilder_.clear();
}
return this;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public Builder removeMeasurements(int index) {
if (measurementsBuilder_ == null) {
ensureMeasurementsIsMutable();
measurements_.remove(index);
onChanged();
} else {
measurementsBuilder_.remove(index);
}
return this;
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public cz.proto.meter.MeterOuterClass.Measurement.Builder getMeasurementsBuilder(
int index) {
return getMeasurementsFieldBuilder().getBuilder(index);
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public cz.proto.meter.MeterOuterClass.MeasurementOrBuilder getMeasurementsOrBuilder(
int index) {
if (measurementsBuilder_ == null) {
return measurements_.get(index); } else {
return measurementsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public java.util.List extends cz.proto.meter.MeterOuterClass.MeasurementOrBuilder>
getMeasurementsOrBuilderList() {
if (measurementsBuilder_ != null) {
return measurementsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(measurements_);
}
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public cz.proto.meter.MeterOuterClass.Measurement.Builder addMeasurementsBuilder() {
return getMeasurementsFieldBuilder().addBuilder(
cz.proto.meter.MeterOuterClass.Measurement.getDefaultInstance());
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public cz.proto.meter.MeterOuterClass.Measurement.Builder addMeasurementsBuilder(
int index) {
return getMeasurementsFieldBuilder().addBuilder(
index, cz.proto.meter.MeterOuterClass.Measurement.getDefaultInstance());
}
/**
*
* non-empty
*
*
* repeated .cz.proto.meter.Measurement measurements = 7;
*/
public java.util.List
getMeasurementsBuilderList() {
return getMeasurementsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.meter.MeterOuterClass.Measurement, cz.proto.meter.MeterOuterClass.Measurement.Builder, cz.proto.meter.MeterOuterClass.MeasurementOrBuilder>
getMeasurementsFieldBuilder() {
if (measurementsBuilder_ == null) {
measurementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.meter.MeterOuterClass.Measurement, cz.proto.meter.MeterOuterClass.Measurement.Builder, cz.proto.meter.MeterOuterClass.MeasurementOrBuilder>(
measurements_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
measurements_ = null;
}
return measurementsBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> resourceProperties_;
private com.google.protobuf.MapField
internalGetResourceProperties() {
if (resourceProperties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResourcePropertiesDefaultEntryHolder.defaultEntry);
}
return resourceProperties_;
}
private com.google.protobuf.MapField
internalGetMutableResourceProperties() {
onChanged();;
if (resourceProperties_ == null) {
resourceProperties_ = com.google.protobuf.MapField.newMapField(
ResourcePropertiesDefaultEntryHolder.defaultEntry);
}
if (!resourceProperties_.isMutable()) {
resourceProperties_ = resourceProperties_.copy();
}
return resourceProperties_;
}
public int getResourcePropertiesCount() {
return internalGetResourceProperties().getMap().size();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public boolean containsResourceProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResourceProperties().getMap().containsKey(key);
}
/**
* Use {@link #getResourcePropertiesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResourceProperties() {
return getResourcePropertiesMap();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.util.Map getResourcePropertiesMap() {
return internalGetResourceProperties().getMap();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.lang.String getResourcePropertiesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResourceProperties().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.lang.String getResourcePropertiesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResourceProperties().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearResourceProperties() {
internalGetMutableResourceProperties().getMutableMap()
.clear();
return this;
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
public Builder removeResourceProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableResourceProperties().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableResourceProperties() {
return internalGetMutableResourceProperties().getMutableMap();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
public Builder putResourceProperties(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableResourceProperties().getMutableMap()
.put(key, value);
return this;
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
public Builder putAllResourceProperties(
java.util.Map values) {
internalGetMutableResourceProperties().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object idempotent_ = "";
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The idempotent.
*/
public java.lang.String getIdempotent() {
java.lang.Object ref = idempotent_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
idempotent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The bytes for idempotent.
*/
public com.google.protobuf.ByteString
getIdempotentBytes() {
java.lang.Object ref = idempotent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
idempotent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* non-empty
*
*
* string idempotent = 9;
* @param value The idempotent to set.
* @return This builder for chaining.
*/
public Builder setIdempotent(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
idempotent_ = value;
onChanged();
return this;
}
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return This builder for chaining.
*/
public Builder clearIdempotent() {
idempotent_ = getDefaultInstance().getIdempotent();
onChanged();
return this;
}
/**
*
* non-empty
*
*
* string idempotent = 9;
* @param value The bytes for idempotent to set.
* @return This builder for chaining.
*/
public Builder setIdempotentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
idempotent_ = value;
onChanged();
return this;
}
private boolean isObjDropped_ ;
/**
* bool is_obj_dropped = 10;
* @return The isObjDropped.
*/
@java.lang.Override
public boolean getIsObjDropped() {
return isObjDropped_;
}
/**
* bool is_obj_dropped = 10;
* @param value The isObjDropped to set.
* @return This builder for chaining.
*/
public Builder setIsObjDropped(boolean value) {
isObjDropped_ = value;
onChanged();
return this;
}
/**
* bool is_obj_dropped = 10;
* @return This builder for chaining.
*/
public Builder clearIsObjDropped() {
isObjDropped_ = false;
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:cz.proto.meter.Meter)
}
// @@protoc_insertion_point(class_scope:cz.proto.meter.Meter)
private static final cz.proto.meter.MeterOuterClass.Meter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.meter.MeterOuterClass.Meter();
}
public static cz.proto.meter.MeterOuterClass.Meter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Meter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Meter(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 cz.proto.meter.MeterOuterClass.Meter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MeasurementOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.meter.Measurement)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* string unit = 2;
* @return The unit.
*/
java.lang.String getUnit();
/**
* string unit = 2;
* @return The bytes for unit.
*/
com.google.protobuf.ByteString
getUnitBytes();
/**
* string value = 3;
* @return The value.
*/
java.lang.String getValue();
/**
* string value = 3;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code cz.proto.meter.Measurement}
*/
public static final class Measurement extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.meter.Measurement)
MeasurementOrBuilder {
private static final long serialVersionUID = 0L;
// Use Measurement.newBuilder() to construct.
private Measurement(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Measurement() {
key_ = "";
unit_ = "";
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Measurement();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Measurement(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
key_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
unit_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
value_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Measurement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Measurement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.meter.MeterOuterClass.Measurement.class, cz.proto.meter.MeterOuterClass.Measurement.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNIT_FIELD_NUMBER = 2;
private volatile java.lang.Object unit_;
/**
* string unit = 2;
* @return The unit.
*/
@java.lang.Override
public java.lang.String getUnit() {
java.lang.Object ref = unit_;
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();
unit_ = s;
return s;
}
}
/**
* string unit = 2;
* @return The bytes for unit.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnitBytes() {
java.lang.Object ref = unit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 3;
private volatile java.lang.Object value_;
/**
* string value = 3;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
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();
value_ = s;
return s;
}
}
/**
* string value = 3;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = 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(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unit_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_);
}
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(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unit_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_);
}
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 cz.proto.meter.MeterOuterClass.Measurement)) {
return super.equals(obj);
}
cz.proto.meter.MeterOuterClass.Measurement other = (cz.proto.meter.MeterOuterClass.Measurement) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getUnit()
.equals(other.getUnit())) return false;
if (!getValue()
.equals(other.getValue())) 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) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + UNIT_FIELD_NUMBER;
hash = (53 * hash) + getUnit().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.meter.MeterOuterClass.Measurement parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.meter.MeterOuterClass.Measurement parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.meter.MeterOuterClass.Measurement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.meter.MeterOuterClass.Measurement parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.meter.MeterOuterClass.Measurement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.meter.MeterOuterClass.Measurement parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.meter.MeterOuterClass.Measurement parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.meter.MeterOuterClass.Measurement 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 cz.proto.meter.MeterOuterClass.Measurement parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.meter.MeterOuterClass.Measurement 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 cz.proto.meter.MeterOuterClass.Measurement parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.meter.MeterOuterClass.Measurement 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(cz.proto.meter.MeterOuterClass.Measurement 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 cz.proto.meter.Measurement}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.meter.Measurement)
cz.proto.meter.MeterOuterClass.MeasurementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Measurement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Measurement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.meter.MeterOuterClass.Measurement.class, cz.proto.meter.MeterOuterClass.Measurement.Builder.class);
}
// Construct using cz.proto.meter.MeterOuterClass.Measurement.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
unit_ = "";
value_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_Measurement_descriptor;
}
@java.lang.Override
public cz.proto.meter.MeterOuterClass.Measurement getDefaultInstanceForType() {
return cz.proto.meter.MeterOuterClass.Measurement.getDefaultInstance();
}
@java.lang.Override
public cz.proto.meter.MeterOuterClass.Measurement build() {
cz.proto.meter.MeterOuterClass.Measurement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.meter.MeterOuterClass.Measurement buildPartial() {
cz.proto.meter.MeterOuterClass.Measurement result = new cz.proto.meter.MeterOuterClass.Measurement(this);
result.key_ = key_;
result.unit_ = unit_;
result.value_ = value_;
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 cz.proto.meter.MeterOuterClass.Measurement) {
return mergeFrom((cz.proto.meter.MeterOuterClass.Measurement)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.meter.MeterOuterClass.Measurement other) {
if (other == cz.proto.meter.MeterOuterClass.Measurement.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getUnit().isEmpty()) {
unit_ = other.unit_;
onChanged();
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
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 {
cz.proto.meter.MeterOuterClass.Measurement parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.meter.MeterOuterClass.Measurement) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private java.lang.Object unit_ = "";
/**
* string unit = 2;
* @return The unit.
*/
public java.lang.String getUnit() {
java.lang.Object ref = unit_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
unit_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string unit = 2;
* @return The bytes for unit.
*/
public com.google.protobuf.ByteString
getUnitBytes() {
java.lang.Object ref = unit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string unit = 2;
* @param value The unit to set.
* @return This builder for chaining.
*/
public Builder setUnit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
unit_ = value;
onChanged();
return this;
}
/**
* string unit = 2;
* @return This builder for chaining.
*/
public Builder clearUnit() {
unit_ = getDefaultInstance().getUnit();
onChanged();
return this;
}
/**
* string unit = 2;
* @param value The bytes for unit to set.
* @return This builder for chaining.
*/
public Builder setUnitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
unit_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* string value = 3;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string value = 3;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string value = 3;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* string value = 3;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* string value = 3;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = 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:cz.proto.meter.Measurement)
}
// @@protoc_insertion_point(class_scope:cz.proto.meter.Measurement)
private static final cz.proto.meter.MeterOuterClass.Measurement DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.meter.MeterOuterClass.Measurement();
}
public static cz.proto.meter.MeterOuterClass.Measurement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Measurement parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Measurement(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 cz.proto.meter.MeterOuterClass.Measurement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MeterEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.meter.MeterEvent)
com.google.protobuf.MessageOrBuilder {
/**
*
* positive
*
*
* int64 account_id = 1;
* @return The accountId.
*/
long getAccountId();
/**
*
*positive
*
*
* int64 instance_id = 2;
* @return The instanceId.
*/
long getInstanceId();
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The skuCode.
*/
java.lang.String getSkuCode();
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The bytes for skuCode.
*/
com.google.protobuf.ByteString
getSkuCodeBytes();
/**
*
* positive
*
*
* int64 resource_id = 4;
* @return The resourceId.
*/
long getResourceId();
/**
*
* optional
*
*
* string resource_name = 5;
* @return The resourceName.
*/
java.lang.String getResourceName();
/**
*
* optional
*
*
* string resource_name = 5;
* @return The bytes for resourceName.
*/
com.google.protobuf.ByteString
getResourceNameBytes();
/**
*
* positive
*
*
* int64 event_timestamp_ms = 6;
* @return The eventTimestampMs.
*/
long getEventTimestampMs();
/**
*
* optional
*
*
* int32 event_type = 7;
* @return The eventType.
*/
int getEventType();
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
int getResourcePropertiesCount();
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
boolean containsResourceProperties(
java.lang.String key);
/**
* Use {@link #getResourcePropertiesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getResourceProperties();
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
java.util.Map
getResourcePropertiesMap();
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
java.lang.String getResourcePropertiesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
java.lang.String getResourcePropertiesOrThrow(
java.lang.String key);
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The idempotent.
*/
java.lang.String getIdempotent();
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The bytes for idempotent.
*/
com.google.protobuf.ByteString
getIdempotentBytes();
/**
* bool is_obj_dropped = 10;
* @return The isObjDropped.
*/
boolean getIsObjDropped();
}
/**
* Protobuf type {@code cz.proto.meter.MeterEvent}
*/
public static final class MeterEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.meter.MeterEvent)
MeterEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use MeterEvent.newBuilder() to construct.
private MeterEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MeterEvent() {
skuCode_ = "";
resourceName_ = "";
idempotent_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MeterEvent();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MeterEvent(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
accountId_ = input.readInt64();
break;
}
case 16: {
instanceId_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
skuCode_ = s;
break;
}
case 32: {
resourceId_ = input.readInt64();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
resourceName_ = s;
break;
}
case 48: {
eventTimestampMs_ = input.readInt64();
break;
}
case 56: {
eventType_ = input.readInt32();
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
resourceProperties_ = com.google.protobuf.MapField.newMapField(
ResourcePropertiesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
resourceProperties__ = input.readMessage(
ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
resourceProperties_.getMutableMap().put(
resourceProperties__.getKey(), resourceProperties__.getValue());
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
idempotent_ = s;
break;
}
case 80: {
isObjDropped_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_MeterEvent_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 8:
return internalGetResourceProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_MeterEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.meter.MeterOuterClass.MeterEvent.class, cz.proto.meter.MeterOuterClass.MeterEvent.Builder.class);
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
private long accountId_;
/**
*
* positive
*
*
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
public static final int INSTANCE_ID_FIELD_NUMBER = 2;
private long instanceId_;
/**
*
*positive
*
*
* int64 instance_id = 2;
* @return The instanceId.
*/
@java.lang.Override
public long getInstanceId() {
return instanceId_;
}
public static final int SKU_CODE_FIELD_NUMBER = 3;
private volatile java.lang.Object skuCode_;
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The skuCode.
*/
@java.lang.Override
public java.lang.String getSkuCode() {
java.lang.Object ref = skuCode_;
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();
skuCode_ = s;
return s;
}
}
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The bytes for skuCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSkuCodeBytes() {
java.lang.Object ref = skuCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
skuCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_ID_FIELD_NUMBER = 4;
private long resourceId_;
/**
*
* positive
*
*
* int64 resource_id = 4;
* @return The resourceId.
*/
@java.lang.Override
public long getResourceId() {
return resourceId_;
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 5;
private volatile java.lang.Object resourceName_;
/**
*
* optional
*
*
* string resource_name = 5;
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
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();
resourceName_ = s;
return s;
}
}
/**
*
* optional
*
*
* string resource_name = 5;
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVENT_TIMESTAMP_MS_FIELD_NUMBER = 6;
private long eventTimestampMs_;
/**
*
* positive
*
*
* int64 event_timestamp_ms = 6;
* @return The eventTimestampMs.
*/
@java.lang.Override
public long getEventTimestampMs() {
return eventTimestampMs_;
}
public static final int EVENT_TYPE_FIELD_NUMBER = 7;
private int eventType_;
/**
*
* optional
*
*
* int32 event_type = 7;
* @return The eventType.
*/
@java.lang.Override
public int getEventType() {
return eventType_;
}
public static final int RESOURCE_PROPERTIES_FIELD_NUMBER = 8;
private static final class ResourcePropertiesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_MeterEvent_ResourcePropertiesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> resourceProperties_;
private com.google.protobuf.MapField
internalGetResourceProperties() {
if (resourceProperties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResourcePropertiesDefaultEntryHolder.defaultEntry);
}
return resourceProperties_;
}
public int getResourcePropertiesCount() {
return internalGetResourceProperties().getMap().size();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public boolean containsResourceProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResourceProperties().getMap().containsKey(key);
}
/**
* Use {@link #getResourcePropertiesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResourceProperties() {
return getResourcePropertiesMap();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.util.Map getResourcePropertiesMap() {
return internalGetResourceProperties().getMap();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.lang.String getResourcePropertiesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResourceProperties().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.lang.String getResourcePropertiesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResourceProperties().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int IDEMPOTENT_FIELD_NUMBER = 9;
private volatile java.lang.Object idempotent_;
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The idempotent.
*/
@java.lang.Override
public java.lang.String getIdempotent() {
java.lang.Object ref = idempotent_;
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();
idempotent_ = s;
return s;
}
}
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The bytes for idempotent.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdempotentBytes() {
java.lang.Object ref = idempotent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
idempotent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IS_OBJ_DROPPED_FIELD_NUMBER = 10;
private boolean isObjDropped_;
/**
* bool is_obj_dropped = 10;
* @return The isObjDropped.
*/
@java.lang.Override
public boolean getIsObjDropped() {
return isObjDropped_;
}
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 (accountId_ != 0L) {
output.writeInt64(1, accountId_);
}
if (instanceId_ != 0L) {
output.writeInt64(2, instanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skuCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, skuCode_);
}
if (resourceId_ != 0L) {
output.writeInt64(4, resourceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, resourceName_);
}
if (eventTimestampMs_ != 0L) {
output.writeInt64(6, eventTimestampMs_);
}
if (eventType_ != 0) {
output.writeInt32(7, eventType_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetResourceProperties(),
ResourcePropertiesDefaultEntryHolder.defaultEntry,
8);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idempotent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, idempotent_);
}
if (isObjDropped_ != false) {
output.writeBool(10, isObjDropped_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (accountId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, accountId_);
}
if (instanceId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, instanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skuCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, skuCode_);
}
if (resourceId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, resourceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, resourceName_);
}
if (eventTimestampMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, eventTimestampMs_);
}
if (eventType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, eventType_);
}
for (java.util.Map.Entry entry
: internalGetResourceProperties().getMap().entrySet()) {
com.google.protobuf.MapEntry
resourceProperties__ = ResourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, resourceProperties__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idempotent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, idempotent_);
}
if (isObjDropped_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, isObjDropped_);
}
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 cz.proto.meter.MeterOuterClass.MeterEvent)) {
return super.equals(obj);
}
cz.proto.meter.MeterOuterClass.MeterEvent other = (cz.proto.meter.MeterOuterClass.MeterEvent) obj;
if (getAccountId()
!= other.getAccountId()) return false;
if (getInstanceId()
!= other.getInstanceId()) return false;
if (!getSkuCode()
.equals(other.getSkuCode())) return false;
if (getResourceId()
!= other.getResourceId()) return false;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (getEventTimestampMs()
!= other.getEventTimestampMs()) return false;
if (getEventType()
!= other.getEventType()) return false;
if (!internalGetResourceProperties().equals(
other.internalGetResourceProperties())) return false;
if (!getIdempotent()
.equals(other.getIdempotent())) return false;
if (getIsObjDropped()
!= other.getIsObjDropped()) 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) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountId());
hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInstanceId());
hash = (37 * hash) + SKU_CODE_FIELD_NUMBER;
hash = (53 * hash) + getSkuCode().hashCode();
hash = (37 * hash) + RESOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getResourceId());
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
hash = (37 * hash) + EVENT_TIMESTAMP_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEventTimestampMs());
hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getEventType();
if (!internalGetResourceProperties().getMap().isEmpty()) {
hash = (37 * hash) + RESOURCE_PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetResourceProperties().hashCode();
}
hash = (37 * hash) + IDEMPOTENT_FIELD_NUMBER;
hash = (53 * hash) + getIdempotent().hashCode();
hash = (37 * hash) + IS_OBJ_DROPPED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsObjDropped());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.meter.MeterOuterClass.MeterEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.meter.MeterOuterClass.MeterEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.meter.MeterOuterClass.MeterEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.meter.MeterOuterClass.MeterEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.meter.MeterOuterClass.MeterEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.meter.MeterOuterClass.MeterEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.meter.MeterOuterClass.MeterEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.meter.MeterOuterClass.MeterEvent 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 cz.proto.meter.MeterOuterClass.MeterEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.meter.MeterOuterClass.MeterEvent 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 cz.proto.meter.MeterOuterClass.MeterEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.meter.MeterOuterClass.MeterEvent 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(cz.proto.meter.MeterOuterClass.MeterEvent 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 cz.proto.meter.MeterEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.meter.MeterEvent)
cz.proto.meter.MeterOuterClass.MeterEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_MeterEvent_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 8:
return internalGetResourceProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 8:
return internalGetMutableResourceProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_MeterEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.meter.MeterOuterClass.MeterEvent.class, cz.proto.meter.MeterOuterClass.MeterEvent.Builder.class);
}
// Construct using cz.proto.meter.MeterOuterClass.MeterEvent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
accountId_ = 0L;
instanceId_ = 0L;
skuCode_ = "";
resourceId_ = 0L;
resourceName_ = "";
eventTimestampMs_ = 0L;
eventType_ = 0;
internalGetMutableResourceProperties().clear();
idempotent_ = "";
isObjDropped_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.meter.MeterOuterClass.internal_static_cz_proto_meter_MeterEvent_descriptor;
}
@java.lang.Override
public cz.proto.meter.MeterOuterClass.MeterEvent getDefaultInstanceForType() {
return cz.proto.meter.MeterOuterClass.MeterEvent.getDefaultInstance();
}
@java.lang.Override
public cz.proto.meter.MeterOuterClass.MeterEvent build() {
cz.proto.meter.MeterOuterClass.MeterEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.meter.MeterOuterClass.MeterEvent buildPartial() {
cz.proto.meter.MeterOuterClass.MeterEvent result = new cz.proto.meter.MeterOuterClass.MeterEvent(this);
int from_bitField0_ = bitField0_;
result.accountId_ = accountId_;
result.instanceId_ = instanceId_;
result.skuCode_ = skuCode_;
result.resourceId_ = resourceId_;
result.resourceName_ = resourceName_;
result.eventTimestampMs_ = eventTimestampMs_;
result.eventType_ = eventType_;
result.resourceProperties_ = internalGetResourceProperties();
result.resourceProperties_.makeImmutable();
result.idempotent_ = idempotent_;
result.isObjDropped_ = isObjDropped_;
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 cz.proto.meter.MeterOuterClass.MeterEvent) {
return mergeFrom((cz.proto.meter.MeterOuterClass.MeterEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.meter.MeterOuterClass.MeterEvent other) {
if (other == cz.proto.meter.MeterOuterClass.MeterEvent.getDefaultInstance()) return this;
if (other.getAccountId() != 0L) {
setAccountId(other.getAccountId());
}
if (other.getInstanceId() != 0L) {
setInstanceId(other.getInstanceId());
}
if (!other.getSkuCode().isEmpty()) {
skuCode_ = other.skuCode_;
onChanged();
}
if (other.getResourceId() != 0L) {
setResourceId(other.getResourceId());
}
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
if (other.getEventTimestampMs() != 0L) {
setEventTimestampMs(other.getEventTimestampMs());
}
if (other.getEventType() != 0) {
setEventType(other.getEventType());
}
internalGetMutableResourceProperties().mergeFrom(
other.internalGetResourceProperties());
if (!other.getIdempotent().isEmpty()) {
idempotent_ = other.idempotent_;
onChanged();
}
if (other.getIsObjDropped() != false) {
setIsObjDropped(other.getIsObjDropped());
}
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 {
cz.proto.meter.MeterOuterClass.MeterEvent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.meter.MeterOuterClass.MeterEvent) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long accountId_ ;
/**
*
* positive
*
*
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
/**
*
* positive
*
*
* int64 account_id = 1;
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
accountId_ = value;
onChanged();
return this;
}
/**
*
* positive
*
*
* int64 account_id = 1;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = 0L;
onChanged();
return this;
}
private long instanceId_ ;
/**
*
*positive
*
*
* int64 instance_id = 2;
* @return The instanceId.
*/
@java.lang.Override
public long getInstanceId() {
return instanceId_;
}
/**
*
*positive
*
*
* int64 instance_id = 2;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(long value) {
instanceId_ = value;
onChanged();
return this;
}
/**
*
*positive
*
*
* int64 instance_id = 2;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = 0L;
onChanged();
return this;
}
private java.lang.Object skuCode_ = "";
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The skuCode.
*/
public java.lang.String getSkuCode() {
java.lang.Object ref = skuCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
skuCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return The bytes for skuCode.
*/
public com.google.protobuf.ByteString
getSkuCodeBytes() {
java.lang.Object ref = skuCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
skuCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* non-empty
*
*
* string sku_code = 3;
* @param value The skuCode to set.
* @return This builder for chaining.
*/
public Builder setSkuCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
skuCode_ = value;
onChanged();
return this;
}
/**
*
* non-empty
*
*
* string sku_code = 3;
* @return This builder for chaining.
*/
public Builder clearSkuCode() {
skuCode_ = getDefaultInstance().getSkuCode();
onChanged();
return this;
}
/**
*
* non-empty
*
*
* string sku_code = 3;
* @param value The bytes for skuCode to set.
* @return This builder for chaining.
*/
public Builder setSkuCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
skuCode_ = value;
onChanged();
return this;
}
private long resourceId_ ;
/**
*
* positive
*
*
* int64 resource_id = 4;
* @return The resourceId.
*/
@java.lang.Override
public long getResourceId() {
return resourceId_;
}
/**
*
* positive
*
*
* int64 resource_id = 4;
* @param value The resourceId to set.
* @return This builder for chaining.
*/
public Builder setResourceId(long value) {
resourceId_ = value;
onChanged();
return this;
}
/**
*
* positive
*
*
* int64 resource_id = 4;
* @return This builder for chaining.
*/
public Builder clearResourceId() {
resourceId_ = 0L;
onChanged();
return this;
}
private java.lang.Object resourceName_ = "";
/**
*
* optional
*
*
* string resource_name = 5;
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* optional
*
*
* string resource_name = 5;
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* optional
*
*
* string resource_name = 5;
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceName_ = value;
onChanged();
return this;
}
/**
*
* optional
*
*
* string resource_name = 5;
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
onChanged();
return this;
}
/**
*
* optional
*
*
* string resource_name = 5;
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceName_ = value;
onChanged();
return this;
}
private long eventTimestampMs_ ;
/**
*
* positive
*
*
* int64 event_timestamp_ms = 6;
* @return The eventTimestampMs.
*/
@java.lang.Override
public long getEventTimestampMs() {
return eventTimestampMs_;
}
/**
*
* positive
*
*
* int64 event_timestamp_ms = 6;
* @param value The eventTimestampMs to set.
* @return This builder for chaining.
*/
public Builder setEventTimestampMs(long value) {
eventTimestampMs_ = value;
onChanged();
return this;
}
/**
*
* positive
*
*
* int64 event_timestamp_ms = 6;
* @return This builder for chaining.
*/
public Builder clearEventTimestampMs() {
eventTimestampMs_ = 0L;
onChanged();
return this;
}
private int eventType_ ;
/**
*
* optional
*
*
* int32 event_type = 7;
* @return The eventType.
*/
@java.lang.Override
public int getEventType() {
return eventType_;
}
/**
*
* optional
*
*
* int32 event_type = 7;
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(int value) {
eventType_ = value;
onChanged();
return this;
}
/**
*
* optional
*
*
* int32 event_type = 7;
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> resourceProperties_;
private com.google.protobuf.MapField
internalGetResourceProperties() {
if (resourceProperties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResourcePropertiesDefaultEntryHolder.defaultEntry);
}
return resourceProperties_;
}
private com.google.protobuf.MapField
internalGetMutableResourceProperties() {
onChanged();;
if (resourceProperties_ == null) {
resourceProperties_ = com.google.protobuf.MapField.newMapField(
ResourcePropertiesDefaultEntryHolder.defaultEntry);
}
if (!resourceProperties_.isMutable()) {
resourceProperties_ = resourceProperties_.copy();
}
return resourceProperties_;
}
public int getResourcePropertiesCount() {
return internalGetResourceProperties().getMap().size();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public boolean containsResourceProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResourceProperties().getMap().containsKey(key);
}
/**
* Use {@link #getResourcePropertiesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResourceProperties() {
return getResourcePropertiesMap();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.util.Map getResourcePropertiesMap() {
return internalGetResourceProperties().getMap();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.lang.String getResourcePropertiesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResourceProperties().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
@java.lang.Override
public java.lang.String getResourcePropertiesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResourceProperties().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearResourceProperties() {
internalGetMutableResourceProperties().getMutableMap()
.clear();
return this;
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
public Builder removeResourceProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableResourceProperties().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableResourceProperties() {
return internalGetMutableResourceProperties().getMutableMap();
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
public Builder putResourceProperties(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableResourceProperties().getMutableMap()
.put(key, value);
return this;
}
/**
*
* optional
*
*
* map<string, string> resource_properties = 8;
*/
public Builder putAllResourceProperties(
java.util.Map values) {
internalGetMutableResourceProperties().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object idempotent_ = "";
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The idempotent.
*/
public java.lang.String getIdempotent() {
java.lang.Object ref = idempotent_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
idempotent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return The bytes for idempotent.
*/
public com.google.protobuf.ByteString
getIdempotentBytes() {
java.lang.Object ref = idempotent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
idempotent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* non-empty
*
*
* string idempotent = 9;
* @param value The idempotent to set.
* @return This builder for chaining.
*/
public Builder setIdempotent(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
idempotent_ = value;
onChanged();
return this;
}
/**
*
* non-empty
*
*
* string idempotent = 9;
* @return This builder for chaining.
*/
public Builder clearIdempotent() {
idempotent_ = getDefaultInstance().getIdempotent();
onChanged();
return this;
}
/**
*
* non-empty
*
*
* string idempotent = 9;
* @param value The bytes for idempotent to set.
* @return This builder for chaining.
*/
public Builder setIdempotentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
idempotent_ = value;
onChanged();
return this;
}
private boolean isObjDropped_ ;
/**
* bool is_obj_dropped = 10;
* @return The isObjDropped.
*/
@java.lang.Override
public boolean getIsObjDropped() {
return isObjDropped_;
}
/**
* bool is_obj_dropped = 10;
* @param value The isObjDropped to set.
* @return This builder for chaining.
*/
public Builder setIsObjDropped(boolean value) {
isObjDropped_ = value;
onChanged();
return this;
}
/**
* bool is_obj_dropped = 10;
* @return This builder for chaining.
*/
public Builder clearIsObjDropped() {
isObjDropped_ = false;
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:cz.proto.meter.MeterEvent)
}
// @@protoc_insertion_point(class_scope:cz.proto.meter.MeterEvent)
private static final cz.proto.meter.MeterOuterClass.MeterEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.meter.MeterOuterClass.MeterEvent();
}
public static cz.proto.meter.MeterOuterClass.MeterEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MeterEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MeterEvent(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 cz.proto.meter.MeterOuterClass.MeterEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_meter_Meter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_meter_Meter_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_meter_Meter_ResourcePropertiesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_meter_Meter_ResourcePropertiesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_meter_Measurement_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_meter_Measurement_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_meter_MeterEvent_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_meter_MeterEvent_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_meter_MeterEvent_ResourcePropertiesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_meter_MeterEvent_ResourcePropertiesEntry_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\013meter.proto\022\016cz.proto.meter\"\210\003\n\005Meter\022" +
"\022\n\naccount_id\030\001 \001(\003\022\023\n\013instance_id\030\002 \001(\003" +
"\022\020\n\010sku_code\030\003 \001(\t\022\023\n\013resource_id\030\004 \001(\003\022" +
"\025\n\rresource_name\030\013 \001(\t\022\031\n\021measurement_st" +
"art\030\005 \001(\003\022\027\n\017measurement_end\030\006 \001(\003\0221\n\014me" +
"asurements\030\007 \003(\0132\033.cz.proto.meter.Measur" +
"ement\022J\n\023resource_properties\030\010 \003(\0132-.cz." +
"proto.meter.Meter.ResourcePropertiesEntr" +
"y\022\022\n\nidempotent\030\t \001(\t\022\026\n\016is_obj_dropped\030" +
"\n \001(\010\0329\n\027ResourcePropertiesEntry\022\013\n\003key\030" +
"\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\013Measurement\022" +
"\013\n\003key\030\001 \001(\t\022\014\n\004unit\030\002 \001(\t\022\r\n\005value\030\003 \001(" +
"\t\"\333\002\n\nMeterEvent\022\022\n\naccount_id\030\001 \001(\003\022\023\n\013" +
"instance_id\030\002 \001(\003\022\020\n\010sku_code\030\003 \001(\t\022\023\n\013r" +
"esource_id\030\004 \001(\003\022\025\n\rresource_name\030\005 \001(\t\022" +
"\032\n\022event_timestamp_ms\030\006 \001(\003\022\022\n\nevent_typ" +
"e\030\007 \001(\005\022O\n\023resource_properties\030\010 \003(\01322.c" +
"z.proto.meter.MeterEvent.ResourcePropert" +
"iesEntry\022\022\n\nidempotent\030\t \001(\t\022\026\n\016is_obj_d" +
"ropped\030\n \001(\010\0329\n\027ResourcePropertiesEntry\022" +
"\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_cz_proto_meter_Meter_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cz_proto_meter_Meter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_meter_Meter_descriptor,
new java.lang.String[] { "AccountId", "InstanceId", "SkuCode", "ResourceId", "ResourceName", "MeasurementStart", "MeasurementEnd", "Measurements", "ResourceProperties", "Idempotent", "IsObjDropped", });
internal_static_cz_proto_meter_Meter_ResourcePropertiesEntry_descriptor =
internal_static_cz_proto_meter_Meter_descriptor.getNestedTypes().get(0);
internal_static_cz_proto_meter_Meter_ResourcePropertiesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_meter_Meter_ResourcePropertiesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_cz_proto_meter_Measurement_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cz_proto_meter_Measurement_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_meter_Measurement_descriptor,
new java.lang.String[] { "Key", "Unit", "Value", });
internal_static_cz_proto_meter_MeterEvent_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cz_proto_meter_MeterEvent_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_meter_MeterEvent_descriptor,
new java.lang.String[] { "AccountId", "InstanceId", "SkuCode", "ResourceId", "ResourceName", "EventTimestampMs", "EventType", "ResourceProperties", "Idempotent", "IsObjDropped", });
internal_static_cz_proto_meter_MeterEvent_ResourcePropertiesEntry_descriptor =
internal_static_cz_proto_meter_MeterEvent_descriptor.getNestedTypes().get(0);
internal_static_cz_proto_meter_MeterEvent_ResourcePropertiesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_meter_MeterEvent_ResourcePropertiesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy