com.passkit.grpc.ProjectOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK for the PassKit gRPC API that can be used to create, configure and manage Membership, Loyalty, Event Ticket, Coupon, Transit and Boarding Pass content for mobile wallet applications, including Apple Pay and Google Pay.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: io/common/project.proto
package com.passkit.grpc;
public final class ProjectOuterClass {
private ProjectOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code io.ProjectStatus}
*/
public enum ProjectStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Zero based enum, don't use 0.
*
*
* NO_PROJECT_STATUS = 0;
*/
NO_PROJECT_STATUS(0),
/**
*
* Active projects allow for creation of records (turned on by default).
*
*
* PROJECT_ACTIVE_FOR_OBJECT_CREATION = 1;
*/
PROJECT_ACTIVE_FOR_OBJECT_CREATION(1),
/**
*
* Disabled projects do not allow for creation of records (i.e. temporarily disable enroling of members / creating of coupons, etc).
*
*
* PROJECT_DISABLED_FOR_OBJECT_CREATION = 2;
*/
PROJECT_DISABLED_FOR_OBJECT_CREATION(2),
/**
*
* Default status for all projects. A draft project can do everything a published program can:
* Cards can be created, stats will show up, etc.
* Data belonging to draft projects is automatically purged every 7 days.
* A draft project uses a PassKit Apple Developer Certificate, and has a PassKit legal disclaimer on the back.
* Draft projects cannot be used for a production setup.
*
*
* PROJECT_DRAFT = 4;
*/
PROJECT_DRAFT(4),
/**
*
* A project can only be published if a custom Apple Developer Certificate is uploaded, if payment details have been provided,
* and an account email address has been validated.
* Published projects do not have a PassKit legal disclaimer on the back.
* Published projects do not have their data purged on a 7 day basis.
*
*
* PROJECT_PUBLISHED = 8;
*/
PROJECT_PUBLISHED(8),
/**
*
* A project is private: records can only by created by authorized users / via the portal interface.
*
*
* PROJECT_PRIVATE = 16;
*/
PROJECT_PRIVATE(16),
/**
*
* The project is currently over quota, and new records cannot be created (set by system only; cannot be set by user)
*
*
* PROJECT_OVER_QUOTA = 32;
*/
PROJECT_OVER_QUOTA(32),
/**
*
* A project which needs to be deleted. If delete flag is set, project will be deleted in the near future.
*
*
* PROJECT_DELETED = 64;
*/
PROJECT_DELETED(64),
UNRECOGNIZED(-1),
;
/**
*
* Zero based enum, don't use 0.
*
*
* NO_PROJECT_STATUS = 0;
*/
public static final int NO_PROJECT_STATUS_VALUE = 0;
/**
*
* Active projects allow for creation of records (turned on by default).
*
*
* PROJECT_ACTIVE_FOR_OBJECT_CREATION = 1;
*/
public static final int PROJECT_ACTIVE_FOR_OBJECT_CREATION_VALUE = 1;
/**
*
* Disabled projects do not allow for creation of records (i.e. temporarily disable enroling of members / creating of coupons, etc).
*
*
* PROJECT_DISABLED_FOR_OBJECT_CREATION = 2;
*/
public static final int PROJECT_DISABLED_FOR_OBJECT_CREATION_VALUE = 2;
/**
*
* Default status for all projects. A draft project can do everything a published program can:
* Cards can be created, stats will show up, etc.
* Data belonging to draft projects is automatically purged every 7 days.
* A draft project uses a PassKit Apple Developer Certificate, and has a PassKit legal disclaimer on the back.
* Draft projects cannot be used for a production setup.
*
*
* PROJECT_DRAFT = 4;
*/
public static final int PROJECT_DRAFT_VALUE = 4;
/**
*
* A project can only be published if a custom Apple Developer Certificate is uploaded, if payment details have been provided,
* and an account email address has been validated.
* Published projects do not have a PassKit legal disclaimer on the back.
* Published projects do not have their data purged on a 7 day basis.
*
*
* PROJECT_PUBLISHED = 8;
*/
public static final int PROJECT_PUBLISHED_VALUE = 8;
/**
*
* A project is private: records can only by created by authorized users / via the portal interface.
*
*
* PROJECT_PRIVATE = 16;
*/
public static final int PROJECT_PRIVATE_VALUE = 16;
/**
*
* The project is currently over quota, and new records cannot be created (set by system only; cannot be set by user)
*
*
* PROJECT_OVER_QUOTA = 32;
*/
public static final int PROJECT_OVER_QUOTA_VALUE = 32;
/**
*
* A project which needs to be deleted. If delete flag is set, project will be deleted in the near future.
*
*
* PROJECT_DELETED = 64;
*/
public static final int PROJECT_DELETED_VALUE = 64;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ProjectStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ProjectStatus forNumber(int value) {
switch (value) {
case 0: return NO_PROJECT_STATUS;
case 1: return PROJECT_ACTIVE_FOR_OBJECT_CREATION;
case 2: return PROJECT_DISABLED_FOR_OBJECT_CREATION;
case 4: return PROJECT_DRAFT;
case 8: return PROJECT_PUBLISHED;
case 16: return PROJECT_PRIVATE;
case 32: return PROJECT_OVER_QUOTA;
case 64: return PROJECT_DELETED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ProjectStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ProjectStatus findValueByNumber(int number) {
return ProjectStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.passkit.grpc.ProjectOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final ProjectStatus[] VALUES = values();
public static ProjectStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ProjectStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.ProjectStatus)
}
public interface ProjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.Project)
com.google.protobuf.MessageOrBuilder {
/**
*
* The PassProtocol the project implements.
*
*
* .io.PassProtocol protocol = 1;
* @return The enum numeric value on the wire for protocol.
*/
int getProtocolValue();
/**
*
* The PassProtocol the project implements.
*
*
* .io.PassProtocol protocol = 1;
* @return The protocol.
*/
com.passkit.grpc.Protocols.PassProtocol getProtocol();
/**
*
* The class ID that the projects refers to (highest level protocol object; i.e. member program id, coupon campaign id, etc).
*
*
* string classId = 2;
* @return The classId.
*/
java.lang.String getClassId();
/**
*
* The class ID that the projects refers to (highest level protocol object; i.e. member program id, coupon campaign id, etc).
*
*
* string classId = 2;
* @return The bytes for classId.
*/
com.google.protobuf.ByteString
getClassIdBytes();
/**
*
* The project name.
*
*
* string name = 3;
* @return The name.
*/
java.lang.String getName();
/**
*
* The project name.
*
*
* string name = 3;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* The project short-code; used for creating public project URL's.
*
*
* string shortCode = 4;
* @return The shortCode.
*/
java.lang.String getShortCode();
/**
*
* The project short-code; used for creating public project URL's.
*
*
* string shortCode = 4;
* @return The bytes for shortCode.
*/
com.google.protobuf.ByteString
getShortCodeBytes();
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
* @return Whether the created field is set.
*/
boolean hasCreated();
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
* @return The created.
*/
com.google.protobuf.Timestamp getCreated();
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
*/
com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder();
/**
*
* A shared secret used for creating signed links.
*
*
* string secret = 6;
* @return The secret.
*/
java.lang.String getSecret();
/**
*
* A shared secret used for creating signed links.
*
*
* string secret = 6;
* @return The bytes for secret.
*/
com.google.protobuf.ByteString
getSecretBytes();
/**
*
* A key used to create encrypted, signed links.
*
*
* string key = 7;
* @return The key.
*/
java.lang.String getKey();
/**
*
* A key used to create encrypted, signed links.
*
*
* string key = 7;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
* Encrypted class ID. Can be used in integrations where the Class ID needs to be publicly exposed.
*
*
* string encryptedClassId = 9;
* @return The encryptedClassId.
*/
java.lang.String getEncryptedClassId();
/**
*
* Encrypted class ID. Can be used in integrations where the Class ID needs to be publicly exposed.
*
*
* string encryptedClassId = 9;
* @return The bytes for encryptedClassId.
*/
com.google.protobuf.ByteString
getEncryptedClassIdBytes();
}
/**
* Protobuf type {@code io.Project}
*/
public static final class Project extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.Project)
ProjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use Project.newBuilder() to construct.
private Project(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Project() {
protocol_ = 0;
classId_ = "";
name_ = "";
shortCode_ = "";
secret_ = "";
key_ = "";
encryptedClassId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Project();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Project(
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: {
int rawValue = input.readEnum();
protocol_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
classId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
shortCode_ = s;
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (created_ != null) {
subBuilder = created_.toBuilder();
}
created_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(created_);
created_ = subBuilder.buildPartial();
}
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
secret_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
encryptedClassId_ = 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 com.passkit.grpc.ProjectOuterClass.internal_static_io_Project_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_Project_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.ProjectOuterClass.Project.class, com.passkit.grpc.ProjectOuterClass.Project.Builder.class);
}
public static final int PROTOCOL_FIELD_NUMBER = 1;
private int protocol_;
/**
*
* The PassProtocol the project implements.
*
*
* .io.PassProtocol protocol = 1;
* @return The enum numeric value on the wire for protocol.
*/
@java.lang.Override public int getProtocolValue() {
return protocol_;
}
/**
*
* The PassProtocol the project implements.
*
*
* .io.PassProtocol protocol = 1;
* @return The protocol.
*/
@java.lang.Override public com.passkit.grpc.Protocols.PassProtocol getProtocol() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_);
return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result;
}
public static final int CLASSID_FIELD_NUMBER = 2;
private volatile java.lang.Object classId_;
/**
*
* The class ID that the projects refers to (highest level protocol object; i.e. member program id, coupon campaign id, etc).
*
*
* string classId = 2;
* @return The classId.
*/
@java.lang.Override
public java.lang.String getClassId() {
java.lang.Object ref = classId_;
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();
classId_ = s;
return s;
}
}
/**
*
* The class ID that the projects refers to (highest level protocol object; i.e. member program id, coupon campaign id, etc).
*
*
* string classId = 2;
* @return The bytes for classId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassIdBytes() {
java.lang.Object ref = classId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* The project name.
*
*
* string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* The project name.
*
*
* string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHORTCODE_FIELD_NUMBER = 4;
private volatile java.lang.Object shortCode_;
/**
*
* The project short-code; used for creating public project URL's.
*
*
* string shortCode = 4;
* @return The shortCode.
*/
@java.lang.Override
public java.lang.String getShortCode() {
java.lang.Object ref = shortCode_;
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();
shortCode_ = s;
return s;
}
}
/**
*
* The project short-code; used for creating public project URL's.
*
*
* string shortCode = 4;
* @return The bytes for shortCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getShortCodeBytes() {
java.lang.Object ref = shortCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shortCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp created_;
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
* @return Whether the created field is set.
*/
@java.lang.Override
public boolean hasCreated() {
return created_ != null;
}
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
* @return The created.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreated() {
return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;
}
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() {
return getCreated();
}
public static final int SECRET_FIELD_NUMBER = 6;
private volatile java.lang.Object secret_;
/**
*
* A shared secret used for creating signed links.
*
*
* string secret = 6;
* @return The secret.
*/
@java.lang.Override
public java.lang.String getSecret() {
java.lang.Object ref = secret_;
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();
secret_ = s;
return s;
}
}
/**
*
* A shared secret used for creating signed links.
*
*
* string secret = 6;
* @return The bytes for secret.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSecretBytes() {
java.lang.Object ref = secret_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secret_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 7;
private volatile java.lang.Object key_;
/**
*
* A key used to create encrypted, signed links.
*
*
* string key = 7;
* @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;
}
}
/**
*
* A key used to create encrypted, signed links.
*
*
* string key = 7;
* @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 ENCRYPTEDCLASSID_FIELD_NUMBER = 9;
private volatile java.lang.Object encryptedClassId_;
/**
*
* Encrypted class ID. Can be used in integrations where the Class ID needs to be publicly exposed.
*
*
* string encryptedClassId = 9;
* @return The encryptedClassId.
*/
@java.lang.Override
public java.lang.String getEncryptedClassId() {
java.lang.Object ref = encryptedClassId_;
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();
encryptedClassId_ = s;
return s;
}
}
/**
*
* Encrypted class ID. Can be used in integrations where the Class ID needs to be publicly exposed.
*
*
* string encryptedClassId = 9;
* @return The bytes for encryptedClassId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEncryptedClassIdBytes() {
java.lang.Object ref = encryptedClassId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
encryptedClassId_ = 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 (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) {
output.writeEnum(1, protocol_);
}
if (!getClassIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, classId_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!getShortCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, shortCode_);
}
if (created_ != null) {
output.writeMessage(5, getCreated());
}
if (!getSecretBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, secret_);
}
if (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, key_);
}
if (!getEncryptedClassIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, encryptedClassId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (protocol_ != com.passkit.grpc.Protocols.PassProtocol.PASS_PROTOCOL_DO_NOT_USE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, protocol_);
}
if (!getClassIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, classId_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!getShortCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, shortCode_);
}
if (created_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCreated());
}
if (!getSecretBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, secret_);
}
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, key_);
}
if (!getEncryptedClassIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, encryptedClassId_);
}
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.ProjectOuterClass.Project)) {
return super.equals(obj);
}
com.passkit.grpc.ProjectOuterClass.Project other = (com.passkit.grpc.ProjectOuterClass.Project) obj;
if (protocol_ != other.protocol_) return false;
if (!getClassId()
.equals(other.getClassId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getShortCode()
.equals(other.getShortCode())) return false;
if (hasCreated() != other.hasCreated()) return false;
if (hasCreated()) {
if (!getCreated()
.equals(other.getCreated())) return false;
}
if (!getSecret()
.equals(other.getSecret())) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (!getEncryptedClassId()
.equals(other.getEncryptedClassId())) 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) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + protocol_;
hash = (37 * hash) + CLASSID_FIELD_NUMBER;
hash = (53 * hash) + getClassId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + SHORTCODE_FIELD_NUMBER;
hash = (53 * hash) + getShortCode().hashCode();
if (hasCreated()) {
hash = (37 * hash) + CREATED_FIELD_NUMBER;
hash = (53 * hash) + getCreated().hashCode();
}
hash = (37 * hash) + SECRET_FIELD_NUMBER;
hash = (53 * hash) + getSecret().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + ENCRYPTEDCLASSID_FIELD_NUMBER;
hash = (53 * hash) + getEncryptedClassId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.ProjectOuterClass.Project parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.ProjectOuterClass.Project 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.ProjectOuterClass.Project parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.ProjectOuterClass.Project 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.ProjectOuterClass.Project parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.ProjectOuterClass.Project parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.ProjectOuterClass.Project parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.ProjectOuterClass.Project 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.ProjectOuterClass.Project parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.ProjectOuterClass.Project 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.ProjectOuterClass.Project parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.ProjectOuterClass.Project 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.ProjectOuterClass.Project 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.Project}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.Project)
com.passkit.grpc.ProjectOuterClass.ProjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_Project_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_Project_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.ProjectOuterClass.Project.class, com.passkit.grpc.ProjectOuterClass.Project.Builder.class);
}
// Construct using com.passkit.grpc.ProjectOuterClass.Project.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();
protocol_ = 0;
classId_ = "";
name_ = "";
shortCode_ = "";
if (createdBuilder_ == null) {
created_ = null;
} else {
created_ = null;
createdBuilder_ = null;
}
secret_ = "";
key_ = "";
encryptedClassId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_Project_descriptor;
}
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.Project getDefaultInstanceForType() {
return com.passkit.grpc.ProjectOuterClass.Project.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.Project build() {
com.passkit.grpc.ProjectOuterClass.Project result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.Project buildPartial() {
com.passkit.grpc.ProjectOuterClass.Project result = new com.passkit.grpc.ProjectOuterClass.Project(this);
result.protocol_ = protocol_;
result.classId_ = classId_;
result.name_ = name_;
result.shortCode_ = shortCode_;
if (createdBuilder_ == null) {
result.created_ = created_;
} else {
result.created_ = createdBuilder_.build();
}
result.secret_ = secret_;
result.key_ = key_;
result.encryptedClassId_ = encryptedClassId_;
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.ProjectOuterClass.Project) {
return mergeFrom((com.passkit.grpc.ProjectOuterClass.Project)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.ProjectOuterClass.Project other) {
if (other == com.passkit.grpc.ProjectOuterClass.Project.getDefaultInstance()) return this;
if (other.protocol_ != 0) {
setProtocolValue(other.getProtocolValue());
}
if (!other.getClassId().isEmpty()) {
classId_ = other.classId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getShortCode().isEmpty()) {
shortCode_ = other.shortCode_;
onChanged();
}
if (other.hasCreated()) {
mergeCreated(other.getCreated());
}
if (!other.getSecret().isEmpty()) {
secret_ = other.secret_;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getEncryptedClassId().isEmpty()) {
encryptedClassId_ = other.encryptedClassId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.passkit.grpc.ProjectOuterClass.Project parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.ProjectOuterClass.Project) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int protocol_ = 0;
/**
*
* The PassProtocol the project implements.
*
*
* .io.PassProtocol protocol = 1;
* @return The enum numeric value on the wire for protocol.
*/
@java.lang.Override public int getProtocolValue() {
return protocol_;
}
/**
*
* The PassProtocol the project implements.
*
*
* .io.PassProtocol protocol = 1;
* @param value The enum numeric value on the wire for protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocolValue(int value) {
protocol_ = value;
onChanged();
return this;
}
/**
*
* The PassProtocol the project implements.
*
*
* .io.PassProtocol protocol = 1;
* @return The protocol.
*/
@java.lang.Override
public com.passkit.grpc.Protocols.PassProtocol getProtocol() {
@SuppressWarnings("deprecation")
com.passkit.grpc.Protocols.PassProtocol result = com.passkit.grpc.Protocols.PassProtocol.valueOf(protocol_);
return result == null ? com.passkit.grpc.Protocols.PassProtocol.UNRECOGNIZED : result;
}
/**
*
* The PassProtocol the project implements.
*
*
* .io.PassProtocol protocol = 1;
* @param value The protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocol(com.passkit.grpc.Protocols.PassProtocol value) {
if (value == null) {
throw new NullPointerException();
}
protocol_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The PassProtocol the project implements.
*
*
* .io.PassProtocol protocol = 1;
* @return This builder for chaining.
*/
public Builder clearProtocol() {
protocol_ = 0;
onChanged();
return this;
}
private java.lang.Object classId_ = "";
/**
*
* The class ID that the projects refers to (highest level protocol object; i.e. member program id, coupon campaign id, etc).
*
*
* string classId = 2;
* @return The classId.
*/
public java.lang.String getClassId() {
java.lang.Object ref = classId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
classId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The class ID that the projects refers to (highest level protocol object; i.e. member program id, coupon campaign id, etc).
*
*
* string classId = 2;
* @return The bytes for classId.
*/
public com.google.protobuf.ByteString
getClassIdBytes() {
java.lang.Object ref = classId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The class ID that the projects refers to (highest level protocol object; i.e. member program id, coupon campaign id, etc).
*
*
* string classId = 2;
* @param value The classId to set.
* @return This builder for chaining.
*/
public Builder setClassId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
classId_ = value;
onChanged();
return this;
}
/**
*
* The class ID that the projects refers to (highest level protocol object; i.e. member program id, coupon campaign id, etc).
*
*
* string classId = 2;
* @return This builder for chaining.
*/
public Builder clearClassId() {
classId_ = getDefaultInstance().getClassId();
onChanged();
return this;
}
/**
*
* The class ID that the projects refers to (highest level protocol object; i.e. member program id, coupon campaign id, etc).
*
*
* string classId = 2;
* @param value The bytes for classId to set.
* @return This builder for chaining.
*/
public Builder setClassIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
classId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* The project name.
*
*
* string name = 3;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The project name.
*
*
* string name = 3;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The project name.
*
*
* string name = 3;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* The project name.
*
*
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The project name.
*
*
* string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object shortCode_ = "";
/**
*
* The project short-code; used for creating public project URL's.
*
*
* string shortCode = 4;
* @return The shortCode.
*/
public java.lang.String getShortCode() {
java.lang.Object ref = shortCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
shortCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The project short-code; used for creating public project URL's.
*
*
* string shortCode = 4;
* @return The bytes for shortCode.
*/
public com.google.protobuf.ByteString
getShortCodeBytes() {
java.lang.Object ref = shortCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shortCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The project short-code; used for creating public project URL's.
*
*
* string shortCode = 4;
* @param value The shortCode to set.
* @return This builder for chaining.
*/
public Builder setShortCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
shortCode_ = value;
onChanged();
return this;
}
/**
*
* The project short-code; used for creating public project URL's.
*
*
* string shortCode = 4;
* @return This builder for chaining.
*/
public Builder clearShortCode() {
shortCode_ = getDefaultInstance().getShortCode();
onChanged();
return this;
}
/**
*
* The project short-code; used for creating public project URL's.
*
*
* string shortCode = 4;
* @param value The bytes for shortCode to set.
* @return This builder for chaining.
*/
public Builder setShortCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
shortCode_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp created_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdBuilder_;
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
* @return Whether the created field is set.
*/
public boolean hasCreated() {
return createdBuilder_ != null || created_ != null;
}
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
* @return The created.
*/
public com.google.protobuf.Timestamp getCreated() {
if (createdBuilder_ == null) {
return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;
} else {
return createdBuilder_.getMessage();
}
}
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
*/
public Builder setCreated(com.google.protobuf.Timestamp value) {
if (createdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
created_ = value;
onChanged();
} else {
createdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
*/
public Builder setCreated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdBuilder_ == null) {
created_ = builderForValue.build();
onChanged();
} else {
createdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
*/
public Builder mergeCreated(com.google.protobuf.Timestamp value) {
if (createdBuilder_ == null) {
if (created_ != null) {
created_ =
com.google.protobuf.Timestamp.newBuilder(created_).mergeFrom(value).buildPartial();
} else {
created_ = value;
}
onChanged();
} else {
createdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
*/
public Builder clearCreated() {
if (createdBuilder_ == null) {
created_ = null;
onChanged();
} else {
created_ = null;
createdBuilder_ = null;
}
return this;
}
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreatedBuilder() {
onChanged();
return getCreatedFieldBuilder().getBuilder();
}
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() {
if (createdBuilder_ != null) {
return createdBuilder_.getMessageOrBuilder();
} else {
return created_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : created_;
}
}
/**
*
* The timestamp when the project was created.
*
*
* .google.protobuf.Timestamp created = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedFieldBuilder() {
if (createdBuilder_ == null) {
createdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreated(),
getParentForChildren(),
isClean());
created_ = null;
}
return createdBuilder_;
}
private java.lang.Object secret_ = "";
/**
*
* A shared secret used for creating signed links.
*
*
* string secret = 6;
* @return The secret.
*/
public java.lang.String getSecret() {
java.lang.Object ref = secret_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
secret_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A shared secret used for creating signed links.
*
*
* string secret = 6;
* @return The bytes for secret.
*/
public com.google.protobuf.ByteString
getSecretBytes() {
java.lang.Object ref = secret_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secret_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A shared secret used for creating signed links.
*
*
* string secret = 6;
* @param value The secret to set.
* @return This builder for chaining.
*/
public Builder setSecret(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
secret_ = value;
onChanged();
return this;
}
/**
*
* A shared secret used for creating signed links.
*
*
* string secret = 6;
* @return This builder for chaining.
*/
public Builder clearSecret() {
secret_ = getDefaultInstance().getSecret();
onChanged();
return this;
}
/**
*
* A shared secret used for creating signed links.
*
*
* string secret = 6;
* @param value The bytes for secret to set.
* @return This builder for chaining.
*/
public Builder setSecretBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
secret_ = value;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
*
* A key used to create encrypted, signed links.
*
*
* string key = 7;
* @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;
}
}
/**
*
* A key used to create encrypted, signed links.
*
*
* string key = 7;
* @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;
}
}
/**
*
* A key used to create encrypted, signed links.
*
*
* string key = 7;
* @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;
}
/**
*
* A key used to create encrypted, signed links.
*
*
* string key = 7;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
*
* A key used to create encrypted, signed links.
*
*
* string key = 7;
* @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 encryptedClassId_ = "";
/**
*
* Encrypted class ID. Can be used in integrations where the Class ID needs to be publicly exposed.
*
*
* string encryptedClassId = 9;
* @return The encryptedClassId.
*/
public java.lang.String getEncryptedClassId() {
java.lang.Object ref = encryptedClassId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
encryptedClassId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Encrypted class ID. Can be used in integrations where the Class ID needs to be publicly exposed.
*
*
* string encryptedClassId = 9;
* @return The bytes for encryptedClassId.
*/
public com.google.protobuf.ByteString
getEncryptedClassIdBytes() {
java.lang.Object ref = encryptedClassId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
encryptedClassId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Encrypted class ID. Can be used in integrations where the Class ID needs to be publicly exposed.
*
*
* string encryptedClassId = 9;
* @param value The encryptedClassId to set.
* @return This builder for chaining.
*/
public Builder setEncryptedClassId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
encryptedClassId_ = value;
onChanged();
return this;
}
/**
*
* Encrypted class ID. Can be used in integrations where the Class ID needs to be publicly exposed.
*
*
* string encryptedClassId = 9;
* @return This builder for chaining.
*/
public Builder clearEncryptedClassId() {
encryptedClassId_ = getDefaultInstance().getEncryptedClassId();
onChanged();
return this;
}
/**
*
* Encrypted class ID. Can be used in integrations where the Class ID needs to be publicly exposed.
*
*
* string encryptedClassId = 9;
* @param value The bytes for encryptedClassId to set.
* @return This builder for chaining.
*/
public Builder setEncryptedClassIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
encryptedClassId_ = 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:io.Project)
}
// @@protoc_insertion_point(class_scope:io.Project)
private static final com.passkit.grpc.ProjectOuterClass.Project DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.ProjectOuterClass.Project();
}
public static com.passkit.grpc.ProjectOuterClass.Project getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Project parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Project(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.ProjectOuterClass.Project getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProjectByShortCodeResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.ProjectByShortCodeResult)
com.google.protobuf.MessageOrBuilder {
/**
* .io.Project project = 1;
* @return Whether the project field is set.
*/
boolean hasProject();
/**
* .io.Project project = 1;
* @return The project.
*/
com.passkit.grpc.ProjectOuterClass.Project getProject();
/**
* .io.Project project = 1;
*/
com.passkit.grpc.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder();
/**
* .io.PassTemplate template = 2;
* @return Whether the template field is set.
*/
boolean hasTemplate();
/**
* .io.PassTemplate template = 2;
* @return The template.
*/
com.passkit.grpc.Template.PassTemplate getTemplate();
/**
* .io.PassTemplate template = 2;
*/
com.passkit.grpc.Template.PassTemplateOrBuilder getTemplateOrBuilder();
}
/**
* Protobuf type {@code io.ProjectByShortCodeResult}
*/
public static final class ProjectByShortCodeResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.ProjectByShortCodeResult)
ProjectByShortCodeResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProjectByShortCodeResult.newBuilder() to construct.
private ProjectByShortCodeResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProjectByShortCodeResult() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProjectByShortCodeResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProjectByShortCodeResult(
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: {
com.passkit.grpc.ProjectOuterClass.Project.Builder subBuilder = null;
if (project_ != null) {
subBuilder = project_.toBuilder();
}
project_ = input.readMessage(com.passkit.grpc.ProjectOuterClass.Project.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(project_);
project_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.passkit.grpc.Template.PassTemplate.Builder subBuilder = null;
if (template_ != null) {
subBuilder = template_.toBuilder();
}
template_ = input.readMessage(com.passkit.grpc.Template.PassTemplate.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(template_);
template_ = subBuilder.buildPartial();
}
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.ProjectOuterClass.internal_static_io_ProjectByShortCodeResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_ProjectByShortCodeResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult.class, com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult.Builder.class);
}
public static final int PROJECT_FIELD_NUMBER = 1;
private com.passkit.grpc.ProjectOuterClass.Project project_;
/**
* .io.Project project = 1;
* @return Whether the project field is set.
*/
@java.lang.Override
public boolean hasProject() {
return project_ != null;
}
/**
* .io.Project project = 1;
* @return The project.
*/
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.Project getProject() {
return project_ == null ? com.passkit.grpc.ProjectOuterClass.Project.getDefaultInstance() : project_;
}
/**
* .io.Project project = 1;
*/
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() {
return getProject();
}
public static final int TEMPLATE_FIELD_NUMBER = 2;
private com.passkit.grpc.Template.PassTemplate template_;
/**
* .io.PassTemplate template = 2;
* @return Whether the template field is set.
*/
@java.lang.Override
public boolean hasTemplate() {
return template_ != null;
}
/**
* .io.PassTemplate template = 2;
* @return The template.
*/
@java.lang.Override
public com.passkit.grpc.Template.PassTemplate getTemplate() {
return template_ == null ? com.passkit.grpc.Template.PassTemplate.getDefaultInstance() : template_;
}
/**
* .io.PassTemplate template = 2;
*/
@java.lang.Override
public com.passkit.grpc.Template.PassTemplateOrBuilder getTemplateOrBuilder() {
return getTemplate();
}
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 (project_ != null) {
output.writeMessage(1, getProject());
}
if (template_ != null) {
output.writeMessage(2, getTemplate());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (project_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getProject());
}
if (template_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTemplate());
}
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.ProjectOuterClass.ProjectByShortCodeResult)) {
return super.equals(obj);
}
com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult other = (com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult) obj;
if (hasProject() != other.hasProject()) return false;
if (hasProject()) {
if (!getProject()
.equals(other.getProject())) return false;
}
if (hasTemplate() != other.hasTemplate()) return false;
if (hasTemplate()) {
if (!getTemplate()
.equals(other.getTemplate())) 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 (hasProject()) {
hash = (37 * hash) + PROJECT_FIELD_NUMBER;
hash = (53 * hash) + getProject().hashCode();
}
if (hasTemplate()) {
hash = (37 * hash) + TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTemplate().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult 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.ProjectOuterClass.ProjectByShortCodeResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult 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.ProjectOuterClass.ProjectByShortCodeResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult 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.ProjectOuterClass.ProjectByShortCodeResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult 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.ProjectOuterClass.ProjectByShortCodeResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult 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.ProjectOuterClass.ProjectByShortCodeResult 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.ProjectByShortCodeResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.ProjectByShortCodeResult)
com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_ProjectByShortCodeResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_ProjectByShortCodeResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult.class, com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult.Builder.class);
}
// Construct using com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult.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();
if (projectBuilder_ == null) {
project_ = null;
} else {
project_ = null;
projectBuilder_ = null;
}
if (templateBuilder_ == null) {
template_ = null;
} else {
template_ = null;
templateBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_ProjectByShortCodeResult_descriptor;
}
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult getDefaultInstanceForType() {
return com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult build() {
com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult buildPartial() {
com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult result = new com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult(this);
if (projectBuilder_ == null) {
result.project_ = project_;
} else {
result.project_ = projectBuilder_.build();
}
if (templateBuilder_ == null) {
result.template_ = template_;
} else {
result.template_ = templateBuilder_.build();
}
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.ProjectOuterClass.ProjectByShortCodeResult) {
return mergeFrom((com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult other) {
if (other == com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult.getDefaultInstance()) return this;
if (other.hasProject()) {
mergeProject(other.getProject());
}
if (other.hasTemplate()) {
mergeTemplate(other.getTemplate());
}
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.ProjectOuterClass.ProjectByShortCodeResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.passkit.grpc.ProjectOuterClass.Project project_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.ProjectOuterClass.Project, com.passkit.grpc.ProjectOuterClass.Project.Builder, com.passkit.grpc.ProjectOuterClass.ProjectOrBuilder> projectBuilder_;
/**
* .io.Project project = 1;
* @return Whether the project field is set.
*/
public boolean hasProject() {
return projectBuilder_ != null || project_ != null;
}
/**
* .io.Project project = 1;
* @return The project.
*/
public com.passkit.grpc.ProjectOuterClass.Project getProject() {
if (projectBuilder_ == null) {
return project_ == null ? com.passkit.grpc.ProjectOuterClass.Project.getDefaultInstance() : project_;
} else {
return projectBuilder_.getMessage();
}
}
/**
* .io.Project project = 1;
*/
public Builder setProject(com.passkit.grpc.ProjectOuterClass.Project value) {
if (projectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
project_ = value;
onChanged();
} else {
projectBuilder_.setMessage(value);
}
return this;
}
/**
* .io.Project project = 1;
*/
public Builder setProject(
com.passkit.grpc.ProjectOuterClass.Project.Builder builderForValue) {
if (projectBuilder_ == null) {
project_ = builderForValue.build();
onChanged();
} else {
projectBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.Project project = 1;
*/
public Builder mergeProject(com.passkit.grpc.ProjectOuterClass.Project value) {
if (projectBuilder_ == null) {
if (project_ != null) {
project_ =
com.passkit.grpc.ProjectOuterClass.Project.newBuilder(project_).mergeFrom(value).buildPartial();
} else {
project_ = value;
}
onChanged();
} else {
projectBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.Project project = 1;
*/
public Builder clearProject() {
if (projectBuilder_ == null) {
project_ = null;
onChanged();
} else {
project_ = null;
projectBuilder_ = null;
}
return this;
}
/**
* .io.Project project = 1;
*/
public com.passkit.grpc.ProjectOuterClass.Project.Builder getProjectBuilder() {
onChanged();
return getProjectFieldBuilder().getBuilder();
}
/**
* .io.Project project = 1;
*/
public com.passkit.grpc.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() {
if (projectBuilder_ != null) {
return projectBuilder_.getMessageOrBuilder();
} else {
return project_ == null ?
com.passkit.grpc.ProjectOuterClass.Project.getDefaultInstance() : project_;
}
}
/**
* .io.Project project = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.ProjectOuterClass.Project, com.passkit.grpc.ProjectOuterClass.Project.Builder, com.passkit.grpc.ProjectOuterClass.ProjectOrBuilder>
getProjectFieldBuilder() {
if (projectBuilder_ == null) {
projectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.ProjectOuterClass.Project, com.passkit.grpc.ProjectOuterClass.Project.Builder, com.passkit.grpc.ProjectOuterClass.ProjectOrBuilder>(
getProject(),
getParentForChildren(),
isClean());
project_ = null;
}
return projectBuilder_;
}
private com.passkit.grpc.Template.PassTemplate template_;
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.PassTemplate, com.passkit.grpc.Template.PassTemplate.Builder, com.passkit.grpc.Template.PassTemplateOrBuilder> templateBuilder_;
/**
* .io.PassTemplate template = 2;
* @return Whether the template field is set.
*/
public boolean hasTemplate() {
return templateBuilder_ != null || template_ != null;
}
/**
* .io.PassTemplate template = 2;
* @return The template.
*/
public com.passkit.grpc.Template.PassTemplate getTemplate() {
if (templateBuilder_ == null) {
return template_ == null ? com.passkit.grpc.Template.PassTemplate.getDefaultInstance() : template_;
} else {
return templateBuilder_.getMessage();
}
}
/**
* .io.PassTemplate template = 2;
*/
public Builder setTemplate(com.passkit.grpc.Template.PassTemplate value) {
if (templateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
template_ = value;
onChanged();
} else {
templateBuilder_.setMessage(value);
}
return this;
}
/**
* .io.PassTemplate template = 2;
*/
public Builder setTemplate(
com.passkit.grpc.Template.PassTemplate.Builder builderForValue) {
if (templateBuilder_ == null) {
template_ = builderForValue.build();
onChanged();
} else {
templateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.PassTemplate template = 2;
*/
public Builder mergeTemplate(com.passkit.grpc.Template.PassTemplate value) {
if (templateBuilder_ == null) {
if (template_ != null) {
template_ =
com.passkit.grpc.Template.PassTemplate.newBuilder(template_).mergeFrom(value).buildPartial();
} else {
template_ = value;
}
onChanged();
} else {
templateBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.PassTemplate template = 2;
*/
public Builder clearTemplate() {
if (templateBuilder_ == null) {
template_ = null;
onChanged();
} else {
template_ = null;
templateBuilder_ = null;
}
return this;
}
/**
* .io.PassTemplate template = 2;
*/
public com.passkit.grpc.Template.PassTemplate.Builder getTemplateBuilder() {
onChanged();
return getTemplateFieldBuilder().getBuilder();
}
/**
* .io.PassTemplate template = 2;
*/
public com.passkit.grpc.Template.PassTemplateOrBuilder getTemplateOrBuilder() {
if (templateBuilder_ != null) {
return templateBuilder_.getMessageOrBuilder();
} else {
return template_ == null ?
com.passkit.grpc.Template.PassTemplate.getDefaultInstance() : template_;
}
}
/**
* .io.PassTemplate template = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.PassTemplate, com.passkit.grpc.Template.PassTemplate.Builder, com.passkit.grpc.Template.PassTemplateOrBuilder>
getTemplateFieldBuilder() {
if (templateBuilder_ == null) {
templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.passkit.grpc.Template.PassTemplate, com.passkit.grpc.Template.PassTemplate.Builder, com.passkit.grpc.Template.PassTemplateOrBuilder>(
getTemplate(),
getParentForChildren(),
isClean());
template_ = null;
}
return templateBuilder_;
}
@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.ProjectByShortCodeResult)
}
// @@protoc_insertion_point(class_scope:io.ProjectByShortCodeResult)
private static final com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult();
}
public static com.passkit.grpc.ProjectOuterClass.ProjectByShortCodeResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProjectByShortCodeResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProjectByShortCodeResult(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.ProjectOuterClass.ProjectByShortCodeResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProjectStatusFilterOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.ProjectStatusFilter)
com.google.protobuf.MessageOrBuilder {
/**
* .io.ProjectStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .io.ProjectStatus status = 1;
* @return The status.
*/
com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus();
}
/**
* Protobuf type {@code io.ProjectStatusFilter}
*/
public static final class ProjectStatusFilter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.ProjectStatusFilter)
ProjectStatusFilterOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProjectStatusFilter.newBuilder() to construct.
private ProjectStatusFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProjectStatusFilter() {
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProjectStatusFilter();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProjectStatusFilter(
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: {
int rawValue = input.readEnum();
status_ = rawValue;
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.ProjectOuterClass.internal_static_io_ProjectStatusFilter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_ProjectStatusFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter.class, com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* .io.ProjectStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .io.ProjectStatus status = 1;
* @return The status.
*/
@java.lang.Override public com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus() {
@SuppressWarnings("deprecation")
com.passkit.grpc.ProjectOuterClass.ProjectStatus result = com.passkit.grpc.ProjectOuterClass.ProjectStatus.valueOf(status_);
return result == null ? com.passkit.grpc.ProjectOuterClass.ProjectStatus.UNRECOGNIZED : result;
}
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 (status_ != com.passkit.grpc.ProjectOuterClass.ProjectStatus.NO_PROJECT_STATUS.getNumber()) {
output.writeEnum(1, status_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != com.passkit.grpc.ProjectOuterClass.ProjectStatus.NO_PROJECT_STATUS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, 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.ProjectOuterClass.ProjectStatusFilter)) {
return super.equals(obj);
}
com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter other = (com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter) obj;
if (status_ != other.status_) 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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter 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.ProjectOuterClass.ProjectStatusFilter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter 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.ProjectOuterClass.ProjectStatusFilter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter 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.ProjectOuterClass.ProjectStatusFilter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter 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.ProjectOuterClass.ProjectStatusFilter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter 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.ProjectOuterClass.ProjectStatusFilter 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.ProjectStatusFilter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.ProjectStatusFilter)
com.passkit.grpc.ProjectOuterClass.ProjectStatusFilterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_ProjectStatusFilter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_ProjectStatusFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter.class, com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter.Builder.class);
}
// Construct using com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter.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();
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.passkit.grpc.ProjectOuterClass.internal_static_io_ProjectStatusFilter_descriptor;
}
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter getDefaultInstanceForType() {
return com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter.getDefaultInstance();
}
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter build() {
com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter buildPartial() {
com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter result = new com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter(this);
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.ProjectOuterClass.ProjectStatusFilter) {
return mergeFrom((com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter other) {
if (other == com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
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.ProjectOuterClass.ProjectStatusFilter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int status_ = 0;
/**
* .io.ProjectStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .io.ProjectStatus status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* .io.ProjectStatus status = 1;
* @return The status.
*/
@java.lang.Override
public com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus() {
@SuppressWarnings("deprecation")
com.passkit.grpc.ProjectOuterClass.ProjectStatus result = com.passkit.grpc.ProjectOuterClass.ProjectStatus.valueOf(status_);
return result == null ? com.passkit.grpc.ProjectOuterClass.ProjectStatus.UNRECOGNIZED : result;
}
/**
* .io.ProjectStatus status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.passkit.grpc.ProjectOuterClass.ProjectStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.ProjectStatus status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
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.ProjectStatusFilter)
}
// @@protoc_insertion_point(class_scope:io.ProjectStatusFilter)
private static final com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter();
}
public static com.passkit.grpc.ProjectOuterClass.ProjectStatusFilter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProjectStatusFilter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProjectStatusFilter(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.ProjectOuterClass.ProjectStatusFilter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_Project_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_Project_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_ProjectByShortCodeResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_ProjectByShortCodeResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_ProjectStatusFilter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_ProjectStatusFilter_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/project.proto\022\002io\032\037google/pr" +
"otobuf/timestamp.proto\032\031io/common/protoc" +
"ols.proto\032\030io/common/template.proto\"\303\001\n\007" +
"Project\022\"\n\010protocol\030\001 \001(\0162\020.io.PassProto" +
"col\022\017\n\007classId\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\021\n\tsh" +
"ortCode\030\004 \001(\t\022+\n\007created\030\005 \001(\0132\032.google." +
"protobuf.Timestamp\022\016\n\006secret\030\006 \001(\t\022\013\n\003ke" +
"y\030\007 \001(\t\022\030\n\020encryptedClassId\030\t \001(\t\"\\\n\030Pro" +
"jectByShortCodeResult\022\034\n\007project\030\001 \001(\0132\013" +
".io.Project\022\"\n\010template\030\002 \001(\0132\020.io.PassT" +
"emplate\"8\n\023ProjectStatusFilter\022!\n\006status" +
"\030\001 \001(\0162\021.io.ProjectStatus*\344\001\n\rProjectSta" +
"tus\022\025\n\021NO_PROJECT_STATUS\020\000\022&\n\"PROJECT_AC" +
"TIVE_FOR_OBJECT_CREATION\020\001\022(\n$PROJECT_DI" +
"SABLED_FOR_OBJECT_CREATION\020\002\022\021\n\rPROJECT_" +
"DRAFT\020\004\022\025\n\021PROJECT_PUBLISHED\020\010\022\023\n\017PROJEC" +
"T_PRIVATE\020\020\022\026\n\022PROJECT_OVER_QUOTA\020 \022\023\n\017P" +
"ROJECT_DELETED\020@BG\n\020com.passkit.grpcZ$st" +
"ash.passkit.com/io/model/sdk/go/io\252\002\014Pas" +
"sKit.Grpcb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
com.passkit.grpc.Protocols.getDescriptor(),
com.passkit.grpc.Template.getDescriptor(),
});
internal_static_io_Project_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_io_Project_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_Project_descriptor,
new java.lang.String[] { "Protocol", "ClassId", "Name", "ShortCode", "Created", "Secret", "Key", "EncryptedClassId", });
internal_static_io_ProjectByShortCodeResult_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_io_ProjectByShortCodeResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_ProjectByShortCodeResult_descriptor,
new java.lang.String[] { "Project", "Template", });
internal_static_io_ProjectStatusFilter_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_io_ProjectStatusFilter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_ProjectStatusFilter_descriptor,
new java.lang.String[] { "Status", });
com.google.protobuf.TimestampProto.getDescriptor();
com.passkit.grpc.Protocols.getDescriptor();
com.passkit.grpc.Template.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}