com.passkit.grpc.Billing Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: io/common/billing.proto
package com.passkit.grpc;
public final class Billing {
private Billing() {}
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 QuotaOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Quota)
com.google.protobuf.MessageOrBuilder {
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
int getDetailsCount();
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
boolean containsDetails(
int key);
/**
* Use {@link #getDetailsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getDetails();
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
java.util.Map
getDetailsMap();
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
com.passkit.grpc.Billing.QuotaDetails getDetailsOrDefault(
int key,
com.passkit.grpc.Billing.QuotaDetails defaultValue);
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
com.passkit.grpc.Billing.QuotaDetails getDetailsOrThrow(
int key);
}
/**
* Protobuf type {@code io.Quota}
*/
public static final class Quota extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Quota)
QuotaOrBuilder {
private static final long serialVersionUID = 0L;
// Use Quota.newBuilder() to construct.
private Quota(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Quota() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Quota();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Quota(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
details_ = com.google.protobuf.MapField.newMapField(
DetailsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
details__ = input.readMessage(
DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
details_.getMutableMap().put(
details__.getKey(), details__.getValue());
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 com.passkit.grpc.Billing.internal_static_io_Quota_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetDetails();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Billing.internal_static_io_Quota_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Billing.Quota.class, com.passkit.grpc.Billing.Quota.Builder.class);
}
public static final int DETAILS_FIELD_NUMBER = 1;
private static final class DetailsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, com.passkit.grpc.Billing.QuotaDetails> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.passkit.grpc.Billing.internal_static_io_Quota_DetailsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT32,
0,
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.passkit.grpc.Billing.QuotaDetails.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.Integer, com.passkit.grpc.Billing.QuotaDetails> details_;
private com.google.protobuf.MapField
internalGetDetails() {
if (details_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DetailsDefaultEntryHolder.defaultEntry);
}
return details_;
}
public int getDetailsCount() {
return internalGetDetails().getMap().size();
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
@java.lang.Override
public boolean containsDetails(
int key) {
return internalGetDetails().getMap().containsKey(key);
}
/**
* Use {@link #getDetailsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getDetails() {
return getDetailsMap();
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
@java.lang.Override
public java.util.Map getDetailsMap() {
return internalGetDetails().getMap();
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
@java.lang.Override
public com.passkit.grpc.Billing.QuotaDetails getDetailsOrDefault(
int key,
com.passkit.grpc.Billing.QuotaDetails defaultValue) {
java.util.Map map =
internalGetDetails().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
@java.lang.Override
public com.passkit.grpc.Billing.QuotaDetails getDetailsOrThrow(
int key) {
java.util.Map map =
internalGetDetails().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetDetails(),
DetailsDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetDetails().getMap().entrySet()) {
com.google.protobuf.MapEntry
details__ = DetailsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, details__);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.passkit.grpc.Billing.Quota)) {
return super.equals(obj);
}
com.passkit.grpc.Billing.Quota other = (com.passkit.grpc.Billing.Quota) obj;
if (!internalGetDetails().equals(
other.internalGetDetails())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetDetails().getMap().isEmpty()) {
hash = (37 * hash) + DETAILS_FIELD_NUMBER;
hash = (53 * hash) + internalGetDetails().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Billing.Quota parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Billing.Quota parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Billing.Quota parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Billing.Quota parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Billing.Quota parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Billing.Quota parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Billing.Quota parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Billing.Quota parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.passkit.grpc.Billing.Quota parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Billing.Quota parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.passkit.grpc.Billing.Quota parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Billing.Quota parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.passkit.grpc.Billing.Quota 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 io.Quota}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Quota)
com.passkit.grpc.Billing.QuotaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Billing.internal_static_io_Quota_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetDetails();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableDetails();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Billing.internal_static_io_Quota_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Billing.Quota.class, com.passkit.grpc.Billing.Quota.Builder.class);
}
// Construct using com.passkit.grpc.Billing.Quota.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();
internalGetMutableDetails().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Billing.internal_static_io_Quota_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Billing.Quota getDefaultInstanceForType() {
return com.passkit.grpc.Billing.Quota.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Billing.Quota build() {
com.passkit.grpc.Billing.Quota result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Billing.Quota buildPartial() {
com.passkit.grpc.Billing.Quota result = new com.passkit.grpc.Billing.Quota(this);
int from_bitField0_ = bitField0_;
result.details_ = internalGetDetails();
result.details_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.passkit.grpc.Billing.Quota) {
return mergeFrom((com.passkit.grpc.Billing.Quota)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Billing.Quota other) {
if (other == com.passkit.grpc.Billing.Quota.getDefaultInstance()) return this;
internalGetMutableDetails().mergeFrom(
other.internalGetDetails());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.passkit.grpc.Billing.Quota parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Billing.Quota) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.Integer, com.passkit.grpc.Billing.QuotaDetails> details_;
private com.google.protobuf.MapField
internalGetDetails() {
if (details_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DetailsDefaultEntryHolder.defaultEntry);
}
return details_;
}
private com.google.protobuf.MapField
internalGetMutableDetails() {
onChanged();;
if (details_ == null) {
details_ = com.google.protobuf.MapField.newMapField(
DetailsDefaultEntryHolder.defaultEntry);
}
if (!details_.isMutable()) {
details_ = details_.copy();
}
return details_;
}
public int getDetailsCount() {
return internalGetDetails().getMap().size();
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
@java.lang.Override
public boolean containsDetails(
int key) {
return internalGetDetails().getMap().containsKey(key);
}
/**
* Use {@link #getDetailsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getDetails() {
return getDetailsMap();
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
@java.lang.Override
public java.util.Map getDetailsMap() {
return internalGetDetails().getMap();
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
@java.lang.Override
public com.passkit.grpc.Billing.QuotaDetails getDetailsOrDefault(
int key,
com.passkit.grpc.Billing.QuotaDetails defaultValue) {
java.util.Map map =
internalGetDetails().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
@java.lang.Override
public com.passkit.grpc.Billing.QuotaDetails getDetailsOrThrow(
int key) {
java.util.Map map =
internalGetDetails().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearDetails() {
internalGetMutableDetails().getMutableMap()
.clear();
return this;
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
public Builder removeDetails(
int key) {
internalGetMutableDetails().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableDetails() {
return internalGetMutableDetails().getMutableMap();
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
public Builder putDetails(
int key,
com.passkit.grpc.Billing.QuotaDetails value) {
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableDetails().getMutableMap()
.put(key, value);
return this;
}
/**
*
* key is one of pk.MeteredEventType
*
*
* map<uint32, .io.QuotaDetails> details = 1;
*/
public Builder putAllDetails(
java.util.Map values) {
internalGetMutableDetails().getMutableMap()
.putAll(values);
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:io.Quota)
}
// @@protoc_insertion_point(class_scope:io.Quota)
private static final com.passkit.grpc.Billing.Quota DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Billing.Quota();
}
public static com.passkit.grpc.Billing.Quota getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Quota parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Quota(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.passkit.grpc.Billing.Quota getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QuotaDetailsOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.QuotaDetails)
com.google.protobuf.MessageOrBuilder {
/**
* int32 quota = 1;
* @return The quota.
*/
int getQuota();
/**
*
* contains bitmask of pk.Status
*
*
* uint64 status = 2;
* @return The status.
*/
long getStatus();
}
/**
* Protobuf type {@code io.QuotaDetails}
*/
public static final class QuotaDetails extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.QuotaDetails)
QuotaDetailsOrBuilder {
private static final long serialVersionUID = 0L;
// Use QuotaDetails.newBuilder() to construct.
private QuotaDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QuotaDetails() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QuotaDetails();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QuotaDetails(
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 8: {
quota_ = input.readInt32();
break;
}
case 16: {
status_ = input.readUInt64();
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 com.passkit.grpc.Billing.internal_static_io_QuotaDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Billing.internal_static_io_QuotaDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Billing.QuotaDetails.class, com.passkit.grpc.Billing.QuotaDetails.Builder.class);
}
public static final int QUOTA_FIELD_NUMBER = 1;
private int quota_;
/**
* int32 quota = 1;
* @return The quota.
*/
@java.lang.Override
public int getQuota() {
return quota_;
}
public static final int STATUS_FIELD_NUMBER = 2;
private long status_;
/**
*
* contains bitmask of pk.Status
*
*
* uint64 status = 2;
* @return The status.
*/
@java.lang.Override
public long getStatus() {
return status_;
}
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 (quota_ != 0) {
output.writeInt32(1, quota_);
}
if (status_ != 0L) {
output.writeUInt64(2, status_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (quota_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, quota_);
}
if (status_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, status_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.passkit.grpc.Billing.QuotaDetails)) {
return super.equals(obj);
}
com.passkit.grpc.Billing.QuotaDetails other = (com.passkit.grpc.Billing.QuotaDetails) obj;
if (getQuota()
!= other.getQuota()) return false;
if (getStatus()
!= other.getStatus()) 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) + QUOTA_FIELD_NUMBER;
hash = (53 * hash) + getQuota();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStatus());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.Billing.QuotaDetails parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Billing.QuotaDetails parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Billing.QuotaDetails parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Billing.QuotaDetails parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Billing.QuotaDetails parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.Billing.QuotaDetails parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.Billing.QuotaDetails parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Billing.QuotaDetails parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.passkit.grpc.Billing.QuotaDetails parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.Billing.QuotaDetails parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.passkit.grpc.Billing.QuotaDetails parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.Billing.QuotaDetails parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.passkit.grpc.Billing.QuotaDetails 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 io.QuotaDetails}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.QuotaDetails)
com.passkit.grpc.Billing.QuotaDetailsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.Billing.internal_static_io_QuotaDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.Billing.internal_static_io_QuotaDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.Billing.QuotaDetails.class, com.passkit.grpc.Billing.QuotaDetails.Builder.class);
}
// Construct using com.passkit.grpc.Billing.QuotaDetails.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();
quota_ = 0;
status_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.Billing.internal_static_io_QuotaDetails_descriptor;
}
@java.lang.Override
public com.passkit.grpc.Billing.QuotaDetails getDefaultInstanceForType() {
return com.passkit.grpc.Billing.QuotaDetails.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.Billing.QuotaDetails build() {
com.passkit.grpc.Billing.QuotaDetails result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.Billing.QuotaDetails buildPartial() {
com.passkit.grpc.Billing.QuotaDetails result = new com.passkit.grpc.Billing.QuotaDetails(this);
result.quota_ = quota_;
result.status_ = status_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.passkit.grpc.Billing.QuotaDetails) {
return mergeFrom((com.passkit.grpc.Billing.QuotaDetails)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.Billing.QuotaDetails other) {
if (other == com.passkit.grpc.Billing.QuotaDetails.getDefaultInstance()) return this;
if (other.getQuota() != 0) {
setQuota(other.getQuota());
}
if (other.getStatus() != 0L) {
setStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.passkit.grpc.Billing.QuotaDetails parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.Billing.QuotaDetails) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int quota_ ;
/**
* int32 quota = 1;
* @return The quota.
*/
@java.lang.Override
public int getQuota() {
return quota_;
}
/**
* int32 quota = 1;
* @param value The quota to set.
* @return This builder for chaining.
*/
public Builder setQuota(int value) {
quota_ = value;
onChanged();
return this;
}
/**
* int32 quota = 1;
* @return This builder for chaining.
*/
public Builder clearQuota() {
quota_ = 0;
onChanged();
return this;
}
private long status_ ;
/**
*
* contains bitmask of pk.Status
*
*
* uint64 status = 2;
* @return The status.
*/
@java.lang.Override
public long getStatus() {
return status_;
}
/**
*
* contains bitmask of pk.Status
*
*
* uint64 status = 2;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(long value) {
status_ = value;
onChanged();
return this;
}
/**
*
* contains bitmask of pk.Status
*
*
* uint64 status = 2;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0L;
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:io.QuotaDetails)
}
// @@protoc_insertion_point(class_scope:io.QuotaDetails)
private static final com.passkit.grpc.Billing.QuotaDetails DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.Billing.QuotaDetails();
}
public static com.passkit.grpc.Billing.QuotaDetails getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QuotaDetails parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QuotaDetails(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.passkit.grpc.Billing.QuotaDetails getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Quota_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Quota_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Quota_DetailsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Quota_DetailsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_QuotaDetails_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_QuotaDetails_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\027io/common/billing.proto\022\002io\"r\n\005Quota\022\'" +
"\n\007details\030\001 \003(\0132\026.io.Quota.DetailsEntry\032" +
"@\n\014DetailsEntry\022\013\n\003key\030\001 \001(\r\022\037\n\005value\030\002 " +
"\001(\0132\020.io.QuotaDetails:\0028\001\"-\n\014QuotaDetail" +
"s\022\r\n\005quota\030\001 \001(\005\022\016\n\006status\030\002 \001(\004BG\n\020com." +
"passkit.grpcZ$stash.passkit.com/io/model" +
"/sdk/go/io\252\002\014PassKit.Grpcb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_io_Quota_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_io_Quota_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Quota_descriptor,
new java.lang.String[] { "Details", });
internal_static_io_Quota_DetailsEntry_descriptor =
internal_static_io_Quota_descriptor.getNestedTypes().get(0);
internal_static_io_Quota_DetailsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Quota_DetailsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_io_QuotaDetails_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_io_QuotaDetails_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_QuotaDetails_descriptor,
new java.lang.String[] { "Quota", "Status", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy