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

com.passkit.grpc.Raw.Project Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.1.97
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: io/raw/project.proto

package com.passkit.grpc.Raw;

public final class Project {
  private Project() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface PassProjectOrBuilder extends
      // @@protoc_insertion_point(interface_extends:raw.PassProject)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * PassKit generated project id (22 characters)
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * PassKit generated project id (22 characters)
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Name of the pass project; will be shown on the data collection page (if set) and as pass issuer name.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Name of the pass project; will be shown on the data collection page (if set) and as pass issuer name.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Localized name of the pass project
     * 
* * .io.LocalizedString localizedName = 3; * @return Whether the localizedName field is set. */ boolean hasLocalizedName(); /** *
     * Localized name of the pass project
     * 
* * .io.LocalizedString localizedName = 3; * @return The localizedName. */ com.passkit.grpc.Localization.LocalizedString getLocalizedName(); /** *
     * Localized name of the pass project
     * 
* * .io.LocalizedString localizedName = 3; */ com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedNameOrBuilder(); /** *
     * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
     * 
* * repeated .io.ProjectStatus status = 4; * @return A list containing the status. */ java.util.List getStatusList(); /** *
     * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
     * 
* * repeated .io.ProjectStatus status = 4; * @return The count of status. */ int getStatusCount(); /** *
     * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
     * 
* * repeated .io.ProjectStatus status = 4; * @param index The index of the element to return. * @return The status at the given index. */ com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index); /** *
     * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
     * 
* * repeated .io.ProjectStatus status = 4; * @return A list containing the enum numeric values on the wire for status. */ java.util.List getStatusValueList(); /** *
     * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
     * 
* * repeated .io.ProjectStatus status = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of status at the given index. */ int getStatusValue(int index); /** *
     * The pass project quota
     * 
* * .io.Quota quota = 5; * @return Whether the quota field is set. */ boolean hasQuota(); /** *
     * The pass project quota
     * 
* * .io.Quota quota = 5; * @return The quota. */ com.passkit.grpc.Billing.Quota getQuota(); /** *
     * The pass project quota
     * 
* * .io.Quota quota = 5; */ com.passkit.grpc.Billing.QuotaOrBuilder getQuotaOrBuilder(); /** *
     * Leave empty for draft projects. Mandatory for projects where status contains PROJECT_PUBLISHED. Certificate to be used for signing the Apple passes.
     * 
* * string passTypeIdentifier = 6; * @return The passTypeIdentifier. */ java.lang.String getPassTypeIdentifier(); /** *
     * Leave empty for draft projects. Mandatory for projects where status contains PROJECT_PUBLISHED. Certificate to be used for signing the Apple passes.
     * 
* * string passTypeIdentifier = 6; * @return The bytes for passTypeIdentifier. */ com.google.protobuf.ByteString getPassTypeIdentifierBytes(); /** *
     * Contains the email & sms distribution settings for the project
     * 
* * .io.DistributionSettings distributionSettings = 7; * @return Whether the distributionSettings field is set. */ boolean hasDistributionSettings(); /** *
     * Contains the email & sms distribution settings for the project
     * 
* * .io.DistributionSettings distributionSettings = 7; * @return The distributionSettings. */ com.passkit.grpc.Distribution.DistributionSettings getDistributionSettings(); /** *
     * Contains the email & sms distribution settings for the project
     * 
* * .io.DistributionSettings distributionSettings = 7; */ com.passkit.grpc.Distribution.DistributionSettingsOrBuilder getDistributionSettingsOrBuilder(); /** *
     * The date the project was created.
     * 
* * .google.protobuf.Timestamp created = 8; * @return Whether the created field is set. */ boolean hasCreated(); /** *
     * The date the project was created.
     * 
* * .google.protobuf.Timestamp created = 8; * @return The created. */ com.google.protobuf.Timestamp getCreated(); /** *
     * The date the project was created.
     * 
* * .google.protobuf.Timestamp created = 8; */ com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder(); /** *
     * The date the project was updated.
     * 
* * .google.protobuf.Timestamp updated = 9; * @return Whether the updated field is set. */ boolean hasUpdated(); /** *
     * The date the project was updated.
     * 
* * .google.protobuf.Timestamp updated = 9; * @return The updated. */ com.google.protobuf.Timestamp getUpdated(); /** *
     * The date the project was updated.
     * 
* * .google.protobuf.Timestamp updated = 9; */ com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder(); } /** *
   * Pass Project holds the basic business logic of the Pass Project. It holds details on pass distribution, quotas, Apple certificate, integrations & hooks to use.
   * 
* * Protobuf type {@code raw.PassProject} */ public static final class PassProject extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raw.PassProject) PassProjectOrBuilder { private static final long serialVersionUID = 0L; // Use PassProject.newBuilder() to construct. private PassProject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PassProject() { id_ = ""; name_ = ""; status_ = java.util.Collections.emptyList(); passTypeIdentifier_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PassProject(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PassProject( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { com.passkit.grpc.Localization.LocalizedString.Builder subBuilder = null; if (localizedName_ != null) { subBuilder = localizedName_.toBuilder(); } localizedName_ = input.readMessage(com.passkit.grpc.Localization.LocalizedString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localizedName_); localizedName_ = subBuilder.buildPartial(); } break; } case 32: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { status_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } status_.add(rawValue); break; } case 34: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { status_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } status_.add(rawValue); } input.popLimit(oldLimit); break; } case 42: { com.passkit.grpc.Billing.Quota.Builder subBuilder = null; if (quota_ != null) { subBuilder = quota_.toBuilder(); } quota_ = input.readMessage(com.passkit.grpc.Billing.Quota.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(quota_); quota_ = subBuilder.buildPartial(); } break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); passTypeIdentifier_ = s; break; } case 58: { com.passkit.grpc.Distribution.DistributionSettings.Builder subBuilder = null; if (distributionSettings_ != null) { subBuilder = distributionSettings_.toBuilder(); } distributionSettings_ = input.readMessage(com.passkit.grpc.Distribution.DistributionSettings.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(distributionSettings_); distributionSettings_ = subBuilder.buildPartial(); } break; } case 66: { 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 74: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (updated_ != null) { subBuilder = updated_.toBuilder(); } updated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updated_); updated_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { status_ = java.util.Collections.unmodifiableList(status_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Raw.Project.internal_static_raw_PassProject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Raw.Project.internal_static_raw_PassProject_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Raw.Project.PassProject.class, com.passkit.grpc.Raw.Project.PassProject.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * PassKit generated project id (22 characters)
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * PassKit generated project id (22 characters)
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the pass project; will be shown on the data collection page (if set) and as pass issuer name.
     * 
* * string name = 2; * @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; } } /** *
     * Name of the pass project; will be shown on the data collection page (if set) and as pass issuer name.
     * 
* * string name = 2; * @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 LOCALIZEDNAME_FIELD_NUMBER = 3; private com.passkit.grpc.Localization.LocalizedString localizedName_; /** *
     * Localized name of the pass project
     * 
* * .io.LocalizedString localizedName = 3; * @return Whether the localizedName field is set. */ @java.lang.Override public boolean hasLocalizedName() { return localizedName_ != null; } /** *
     * Localized name of the pass project
     * 
* * .io.LocalizedString localizedName = 3; * @return The localizedName. */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedString getLocalizedName() { return localizedName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedName_; } /** *
     * Localized name of the pass project
     * 
* * .io.LocalizedString localizedName = 3; */ @java.lang.Override public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedNameOrBuilder() { return getLocalizedName(); } public static final int STATUS_FIELD_NUMBER = 4; private java.util.List status_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus> status_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>() { public com.passkit.grpc.ProjectOuterClass.ProjectStatus convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.passkit.grpc.ProjectOuterClass.ProjectStatus result = com.passkit.grpc.ProjectOuterClass.ProjectStatus.valueOf(from); return result == null ? com.passkit.grpc.ProjectOuterClass.ProjectStatus.UNRECOGNIZED : result; } }; /** *
     * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
     * 
* * repeated .io.ProjectStatus status = 4; * @return A list containing the status. */ @java.lang.Override public java.util.List getStatusList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>(status_, status_converter_); } /** *
     * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
     * 
* * repeated .io.ProjectStatus status = 4; * @return The count of status. */ @java.lang.Override public int getStatusCount() { return status_.size(); } /** *
     * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
     * 
* * repeated .io.ProjectStatus status = 4; * @param index The index of the element to return. * @return The status at the given index. */ @java.lang.Override public com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index) { return status_converter_.convert(status_.get(index)); } /** *
     * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
     * 
* * repeated .io.ProjectStatus status = 4; * @return A list containing the enum numeric values on the wire for status. */ @java.lang.Override public java.util.List getStatusValueList() { return status_; } /** *
     * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
     * 
* * repeated .io.ProjectStatus status = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of status at the given index. */ @java.lang.Override public int getStatusValue(int index) { return status_.get(index); } private int statusMemoizedSerializedSize; public static final int QUOTA_FIELD_NUMBER = 5; private com.passkit.grpc.Billing.Quota quota_; /** *
     * The pass project quota
     * 
* * .io.Quota quota = 5; * @return Whether the quota field is set. */ @java.lang.Override public boolean hasQuota() { return quota_ != null; } /** *
     * The pass project quota
     * 
* * .io.Quota quota = 5; * @return The quota. */ @java.lang.Override public com.passkit.grpc.Billing.Quota getQuota() { return quota_ == null ? com.passkit.grpc.Billing.Quota.getDefaultInstance() : quota_; } /** *
     * The pass project quota
     * 
* * .io.Quota quota = 5; */ @java.lang.Override public com.passkit.grpc.Billing.QuotaOrBuilder getQuotaOrBuilder() { return getQuota(); } public static final int PASSTYPEIDENTIFIER_FIELD_NUMBER = 6; private volatile java.lang.Object passTypeIdentifier_; /** *
     * Leave empty for draft projects. Mandatory for projects where status contains PROJECT_PUBLISHED. Certificate to be used for signing the Apple passes.
     * 
* * string passTypeIdentifier = 6; * @return The passTypeIdentifier. */ @java.lang.Override public java.lang.String getPassTypeIdentifier() { java.lang.Object ref = passTypeIdentifier_; 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(); passTypeIdentifier_ = s; return s; } } /** *
     * Leave empty for draft projects. Mandatory for projects where status contains PROJECT_PUBLISHED. Certificate to be used for signing the Apple passes.
     * 
* * string passTypeIdentifier = 6; * @return The bytes for passTypeIdentifier. */ @java.lang.Override public com.google.protobuf.ByteString getPassTypeIdentifierBytes() { java.lang.Object ref = passTypeIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passTypeIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISTRIBUTIONSETTINGS_FIELD_NUMBER = 7; private com.passkit.grpc.Distribution.DistributionSettings distributionSettings_; /** *
     * Contains the email & sms distribution settings for the project
     * 
* * .io.DistributionSettings distributionSettings = 7; * @return Whether the distributionSettings field is set. */ @java.lang.Override public boolean hasDistributionSettings() { return distributionSettings_ != null; } /** *
     * Contains the email & sms distribution settings for the project
     * 
* * .io.DistributionSettings distributionSettings = 7; * @return The distributionSettings. */ @java.lang.Override public com.passkit.grpc.Distribution.DistributionSettings getDistributionSettings() { return distributionSettings_ == null ? com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance() : distributionSettings_; } /** *
     * Contains the email & sms distribution settings for the project
     * 
* * .io.DistributionSettings distributionSettings = 7; */ @java.lang.Override public com.passkit.grpc.Distribution.DistributionSettingsOrBuilder getDistributionSettingsOrBuilder() { return getDistributionSettings(); } public static final int CREATED_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp created_; /** *
     * The date the project was created.
     * 
* * .google.protobuf.Timestamp created = 8; * @return Whether the created field is set. */ @java.lang.Override public boolean hasCreated() { return created_ != null; } /** *
     * The date the project was created.
     * 
* * .google.protobuf.Timestamp created = 8; * @return The created. */ @java.lang.Override public com.google.protobuf.Timestamp getCreated() { return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_; } /** *
     * The date the project was created.
     * 
* * .google.protobuf.Timestamp created = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() { return getCreated(); } public static final int UPDATED_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updated_; /** *
     * The date the project was updated.
     * 
* * .google.protobuf.Timestamp updated = 9; * @return Whether the updated field is set. */ @java.lang.Override public boolean hasUpdated() { return updated_ != null; } /** *
     * The date the project was updated.
     * 
* * .google.protobuf.Timestamp updated = 9; * @return The updated. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdated() { return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_; } /** *
     * The date the project was updated.
     * 
* * .google.protobuf.Timestamp updated = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() { return getUpdated(); } 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 { getSerializedSize(); if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (localizedName_ != null) { output.writeMessage(3, getLocalizedName()); } if (getStatusList().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(statusMemoizedSerializedSize); } for (int i = 0; i < status_.size(); i++) { output.writeEnumNoTag(status_.get(i)); } if (quota_ != null) { output.writeMessage(5, getQuota()); } if (!getPassTypeIdentifierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, passTypeIdentifier_); } if (distributionSettings_ != null) { output.writeMessage(7, getDistributionSettings()); } if (created_ != null) { output.writeMessage(8, getCreated()); } if (updated_ != null) { output.writeMessage(9, getUpdated()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (localizedName_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLocalizedName()); } { int dataSize = 0; for (int i = 0; i < status_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(status_.get(i)); } size += dataSize; if (!getStatusList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }statusMemoizedSerializedSize = dataSize; } if (quota_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getQuota()); } if (!getPassTypeIdentifierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, passTypeIdentifier_); } if (distributionSettings_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getDistributionSettings()); } if (created_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCreated()); } if (updated_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getUpdated()); } 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.Raw.Project.PassProject)) { return super.equals(obj); } com.passkit.grpc.Raw.Project.PassProject other = (com.passkit.grpc.Raw.Project.PassProject) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (hasLocalizedName() != other.hasLocalizedName()) return false; if (hasLocalizedName()) { if (!getLocalizedName() .equals(other.getLocalizedName())) return false; } if (!status_.equals(other.status_)) return false; if (hasQuota() != other.hasQuota()) return false; if (hasQuota()) { if (!getQuota() .equals(other.getQuota())) return false; } if (!getPassTypeIdentifier() .equals(other.getPassTypeIdentifier())) return false; if (hasDistributionSettings() != other.hasDistributionSettings()) return false; if (hasDistributionSettings()) { if (!getDistributionSettings() .equals(other.getDistributionSettings())) return false; } if (hasCreated() != other.hasCreated()) return false; if (hasCreated()) { if (!getCreated() .equals(other.getCreated())) return false; } if (hasUpdated() != other.hasUpdated()) return false; if (hasUpdated()) { if (!getUpdated() .equals(other.getUpdated())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasLocalizedName()) { hash = (37 * hash) + LOCALIZEDNAME_FIELD_NUMBER; hash = (53 * hash) + getLocalizedName().hashCode(); } if (getStatusCount() > 0) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_.hashCode(); } if (hasQuota()) { hash = (37 * hash) + QUOTA_FIELD_NUMBER; hash = (53 * hash) + getQuota().hashCode(); } hash = (37 * hash) + PASSTYPEIDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getPassTypeIdentifier().hashCode(); if (hasDistributionSettings()) { hash = (37 * hash) + DISTRIBUTIONSETTINGS_FIELD_NUMBER; hash = (53 * hash) + getDistributionSettings().hashCode(); } if (hasCreated()) { hash = (37 * hash) + CREATED_FIELD_NUMBER; hash = (53 * hash) + getCreated().hashCode(); } if (hasUpdated()) { hash = (37 * hash) + UPDATED_FIELD_NUMBER; hash = (53 * hash) + getUpdated().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Raw.Project.PassProject parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Raw.Project.PassProject 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.Raw.Project.PassProject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Raw.Project.PassProject 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.Raw.Project.PassProject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Raw.Project.PassProject parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Raw.Project.PassProject parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Raw.Project.PassProject 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.Raw.Project.PassProject parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Raw.Project.PassProject 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.Raw.Project.PassProject parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Raw.Project.PassProject 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.Raw.Project.PassProject 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; } /** *
     * Pass Project holds the basic business logic of the Pass Project. It holds details on pass distribution, quotas, Apple certificate, integrations & hooks to use.
     * 
* * Protobuf type {@code raw.PassProject} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raw.PassProject) com.passkit.grpc.Raw.Project.PassProjectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Raw.Project.internal_static_raw_PassProject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Raw.Project.internal_static_raw_PassProject_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Raw.Project.PassProject.class, com.passkit.grpc.Raw.Project.PassProject.Builder.class); } // Construct using com.passkit.grpc.Raw.Project.PassProject.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(); id_ = ""; name_ = ""; if (localizedNameBuilder_ == null) { localizedName_ = null; } else { localizedName_ = null; localizedNameBuilder_ = null; } status_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (quotaBuilder_ == null) { quota_ = null; } else { quota_ = null; quotaBuilder_ = null; } passTypeIdentifier_ = ""; if (distributionSettingsBuilder_ == null) { distributionSettings_ = null; } else { distributionSettings_ = null; distributionSettingsBuilder_ = null; } if (createdBuilder_ == null) { created_ = null; } else { created_ = null; createdBuilder_ = null; } if (updatedBuilder_ == null) { updated_ = null; } else { updated_ = null; updatedBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Raw.Project.internal_static_raw_PassProject_descriptor; } @java.lang.Override public com.passkit.grpc.Raw.Project.PassProject getDefaultInstanceForType() { return com.passkit.grpc.Raw.Project.PassProject.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Raw.Project.PassProject build() { com.passkit.grpc.Raw.Project.PassProject result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Raw.Project.PassProject buildPartial() { com.passkit.grpc.Raw.Project.PassProject result = new com.passkit.grpc.Raw.Project.PassProject(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; if (localizedNameBuilder_ == null) { result.localizedName_ = localizedName_; } else { result.localizedName_ = localizedNameBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { status_ = java.util.Collections.unmodifiableList(status_); bitField0_ = (bitField0_ & ~0x00000001); } result.status_ = status_; if (quotaBuilder_ == null) { result.quota_ = quota_; } else { result.quota_ = quotaBuilder_.build(); } result.passTypeIdentifier_ = passTypeIdentifier_; if (distributionSettingsBuilder_ == null) { result.distributionSettings_ = distributionSettings_; } else { result.distributionSettings_ = distributionSettingsBuilder_.build(); } if (createdBuilder_ == null) { result.created_ = created_; } else { result.created_ = createdBuilder_.build(); } if (updatedBuilder_ == null) { result.updated_ = updated_; } else { result.updated_ = updatedBuilder_.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.Raw.Project.PassProject) { return mergeFrom((com.passkit.grpc.Raw.Project.PassProject)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Raw.Project.PassProject other) { if (other == com.passkit.grpc.Raw.Project.PassProject.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasLocalizedName()) { mergeLocalizedName(other.getLocalizedName()); } if (!other.status_.isEmpty()) { if (status_.isEmpty()) { status_ = other.status_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStatusIsMutable(); status_.addAll(other.status_); } onChanged(); } if (other.hasQuota()) { mergeQuota(other.getQuota()); } if (!other.getPassTypeIdentifier().isEmpty()) { passTypeIdentifier_ = other.passTypeIdentifier_; onChanged(); } if (other.hasDistributionSettings()) { mergeDistributionSettings(other.getDistributionSettings()); } if (other.hasCreated()) { mergeCreated(other.getCreated()); } if (other.hasUpdated()) { mergeUpdated(other.getUpdated()); } 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.Raw.Project.PassProject parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Raw.Project.PassProject) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * PassKit generated project id (22 characters)
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * PassKit generated project id (22 characters)
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * PassKit generated project id (22 characters)
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * PassKit generated project id (22 characters)
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * PassKit generated project id (22 characters)
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Name of the pass project; will be shown on the data collection page (if set) and as pass issuer name.
       * 
* * string name = 2; * @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; } } /** *
       * Name of the pass project; will be shown on the data collection page (if set) and as pass issuer name.
       * 
* * string name = 2; * @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; } } /** *
       * Name of the pass project; will be shown on the data collection page (if set) and as pass issuer name.
       * 
* * string name = 2; * @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; } /** *
       * Name of the pass project; will be shown on the data collection page (if set) and as pass issuer name.
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the pass project; will be shown on the data collection page (if set) and as pass issuer name.
       * 
* * string name = 2; * @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 com.passkit.grpc.Localization.LocalizedString localizedName_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> localizedNameBuilder_; /** *
       * Localized name of the pass project
       * 
* * .io.LocalizedString localizedName = 3; * @return Whether the localizedName field is set. */ public boolean hasLocalizedName() { return localizedNameBuilder_ != null || localizedName_ != null; } /** *
       * Localized name of the pass project
       * 
* * .io.LocalizedString localizedName = 3; * @return The localizedName. */ public com.passkit.grpc.Localization.LocalizedString getLocalizedName() { if (localizedNameBuilder_ == null) { return localizedName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedName_; } else { return localizedNameBuilder_.getMessage(); } } /** *
       * Localized name of the pass project
       * 
* * .io.LocalizedString localizedName = 3; */ public Builder setLocalizedName(com.passkit.grpc.Localization.LocalizedString value) { if (localizedNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localizedName_ = value; onChanged(); } else { localizedNameBuilder_.setMessage(value); } return this; } /** *
       * Localized name of the pass project
       * 
* * .io.LocalizedString localizedName = 3; */ public Builder setLocalizedName( com.passkit.grpc.Localization.LocalizedString.Builder builderForValue) { if (localizedNameBuilder_ == null) { localizedName_ = builderForValue.build(); onChanged(); } else { localizedNameBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Localized name of the pass project
       * 
* * .io.LocalizedString localizedName = 3; */ public Builder mergeLocalizedName(com.passkit.grpc.Localization.LocalizedString value) { if (localizedNameBuilder_ == null) { if (localizedName_ != null) { localizedName_ = com.passkit.grpc.Localization.LocalizedString.newBuilder(localizedName_).mergeFrom(value).buildPartial(); } else { localizedName_ = value; } onChanged(); } else { localizedNameBuilder_.mergeFrom(value); } return this; } /** *
       * Localized name of the pass project
       * 
* * .io.LocalizedString localizedName = 3; */ public Builder clearLocalizedName() { if (localizedNameBuilder_ == null) { localizedName_ = null; onChanged(); } else { localizedName_ = null; localizedNameBuilder_ = null; } return this; } /** *
       * Localized name of the pass project
       * 
* * .io.LocalizedString localizedName = 3; */ public com.passkit.grpc.Localization.LocalizedString.Builder getLocalizedNameBuilder() { onChanged(); return getLocalizedNameFieldBuilder().getBuilder(); } /** *
       * Localized name of the pass project
       * 
* * .io.LocalizedString localizedName = 3; */ public com.passkit.grpc.Localization.LocalizedStringOrBuilder getLocalizedNameOrBuilder() { if (localizedNameBuilder_ != null) { return localizedNameBuilder_.getMessageOrBuilder(); } else { return localizedName_ == null ? com.passkit.grpc.Localization.LocalizedString.getDefaultInstance() : localizedName_; } } /** *
       * Localized name of the pass project
       * 
* * .io.LocalizedString localizedName = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder> getLocalizedNameFieldBuilder() { if (localizedNameBuilder_ == null) { localizedNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Localization.LocalizedString, com.passkit.grpc.Localization.LocalizedString.Builder, com.passkit.grpc.Localization.LocalizedStringOrBuilder>( getLocalizedName(), getParentForChildren(), isClean()); localizedName_ = null; } return localizedNameBuilder_; } private java.util.List status_ = java.util.Collections.emptyList(); private void ensureStatusIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { status_ = new java.util.ArrayList(status_); bitField0_ |= 0x00000001; } } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @return A list containing the status. */ public java.util.List getStatusList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>(status_, status_converter_); } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @return The count of status. */ public int getStatusCount() { return status_.size(); } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @param index The index of the element to return. * @return The status at the given index. */ public com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index) { return status_converter_.convert(status_.get(index)); } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @param index The index to set the value at. * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus( int index, com.passkit.grpc.ProjectOuterClass.ProjectStatus value) { if (value == null) { throw new NullPointerException(); } ensureStatusIsMutable(); status_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @param value The status to add. * @return This builder for chaining. */ public Builder addStatus(com.passkit.grpc.ProjectOuterClass.ProjectStatus value) { if (value == null) { throw new NullPointerException(); } ensureStatusIsMutable(); status_.add(value.getNumber()); onChanged(); return this; } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @param values The status to add. * @return This builder for chaining. */ public Builder addAllStatus( java.lang.Iterable values) { ensureStatusIsMutable(); for (com.passkit.grpc.ProjectOuterClass.ProjectStatus value : values) { status_.add(value.getNumber()); } onChanged(); return this; } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @return This builder for chaining. */ public Builder clearStatus() { status_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @return A list containing the enum numeric values on the wire for status. */ public java.util.List getStatusValueList() { return java.util.Collections.unmodifiableList(status_); } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of status at the given index. */ public int getStatusValue(int index) { return status_.get(index); } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of status at the given index. * @return This builder for chaining. */ public Builder setStatusValue( int index, int value) { ensureStatusIsMutable(); status_.set(index, value); onChanged(); return this; } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @param value The enum numeric value on the wire for status to add. * @return This builder for chaining. */ public Builder addStatusValue(int value) { ensureStatusIsMutable(); status_.add(value); onChanged(); return this; } /** *
       * The pass project status (bitmask of ProjectStatus). Defaults to io.ProjectStatus.PROJECT_ACTIVE_FOR_OBJECT_CREATION + io.ProjectStatus.PROJECT_DRAFT
       * 
* * repeated .io.ProjectStatus status = 4; * @param values The enum numeric values on the wire for status to add. * @return This builder for chaining. */ public Builder addAllStatusValue( java.lang.Iterable values) { ensureStatusIsMutable(); for (int value : values) { status_.add(value); } onChanged(); return this; } private com.passkit.grpc.Billing.Quota quota_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Billing.Quota, com.passkit.grpc.Billing.Quota.Builder, com.passkit.grpc.Billing.QuotaOrBuilder> quotaBuilder_; /** *
       * The pass project quota
       * 
* * .io.Quota quota = 5; * @return Whether the quota field is set. */ public boolean hasQuota() { return quotaBuilder_ != null || quota_ != null; } /** *
       * The pass project quota
       * 
* * .io.Quota quota = 5; * @return The quota. */ public com.passkit.grpc.Billing.Quota getQuota() { if (quotaBuilder_ == null) { return quota_ == null ? com.passkit.grpc.Billing.Quota.getDefaultInstance() : quota_; } else { return quotaBuilder_.getMessage(); } } /** *
       * The pass project quota
       * 
* * .io.Quota quota = 5; */ public Builder setQuota(com.passkit.grpc.Billing.Quota value) { if (quotaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } quota_ = value; onChanged(); } else { quotaBuilder_.setMessage(value); } return this; } /** *
       * The pass project quota
       * 
* * .io.Quota quota = 5; */ public Builder setQuota( com.passkit.grpc.Billing.Quota.Builder builderForValue) { if (quotaBuilder_ == null) { quota_ = builderForValue.build(); onChanged(); } else { quotaBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The pass project quota
       * 
* * .io.Quota quota = 5; */ public Builder mergeQuota(com.passkit.grpc.Billing.Quota value) { if (quotaBuilder_ == null) { if (quota_ != null) { quota_ = com.passkit.grpc.Billing.Quota.newBuilder(quota_).mergeFrom(value).buildPartial(); } else { quota_ = value; } onChanged(); } else { quotaBuilder_.mergeFrom(value); } return this; } /** *
       * The pass project quota
       * 
* * .io.Quota quota = 5; */ public Builder clearQuota() { if (quotaBuilder_ == null) { quota_ = null; onChanged(); } else { quota_ = null; quotaBuilder_ = null; } return this; } /** *
       * The pass project quota
       * 
* * .io.Quota quota = 5; */ public com.passkit.grpc.Billing.Quota.Builder getQuotaBuilder() { onChanged(); return getQuotaFieldBuilder().getBuilder(); } /** *
       * The pass project quota
       * 
* * .io.Quota quota = 5; */ public com.passkit.grpc.Billing.QuotaOrBuilder getQuotaOrBuilder() { if (quotaBuilder_ != null) { return quotaBuilder_.getMessageOrBuilder(); } else { return quota_ == null ? com.passkit.grpc.Billing.Quota.getDefaultInstance() : quota_; } } /** *
       * The pass project quota
       * 
* * .io.Quota quota = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Billing.Quota, com.passkit.grpc.Billing.Quota.Builder, com.passkit.grpc.Billing.QuotaOrBuilder> getQuotaFieldBuilder() { if (quotaBuilder_ == null) { quotaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Billing.Quota, com.passkit.grpc.Billing.Quota.Builder, com.passkit.grpc.Billing.QuotaOrBuilder>( getQuota(), getParentForChildren(), isClean()); quota_ = null; } return quotaBuilder_; } private java.lang.Object passTypeIdentifier_ = ""; /** *
       * Leave empty for draft projects. Mandatory for projects where status contains PROJECT_PUBLISHED. Certificate to be used for signing the Apple passes.
       * 
* * string passTypeIdentifier = 6; * @return The passTypeIdentifier. */ public java.lang.String getPassTypeIdentifier() { java.lang.Object ref = passTypeIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); passTypeIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Leave empty for draft projects. Mandatory for projects where status contains PROJECT_PUBLISHED. Certificate to be used for signing the Apple passes.
       * 
* * string passTypeIdentifier = 6; * @return The bytes for passTypeIdentifier. */ public com.google.protobuf.ByteString getPassTypeIdentifierBytes() { java.lang.Object ref = passTypeIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passTypeIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Leave empty for draft projects. Mandatory for projects where status contains PROJECT_PUBLISHED. Certificate to be used for signing the Apple passes.
       * 
* * string passTypeIdentifier = 6; * @param value The passTypeIdentifier to set. * @return This builder for chaining. */ public Builder setPassTypeIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } passTypeIdentifier_ = value; onChanged(); return this; } /** *
       * Leave empty for draft projects. Mandatory for projects where status contains PROJECT_PUBLISHED. Certificate to be used for signing the Apple passes.
       * 
* * string passTypeIdentifier = 6; * @return This builder for chaining. */ public Builder clearPassTypeIdentifier() { passTypeIdentifier_ = getDefaultInstance().getPassTypeIdentifier(); onChanged(); return this; } /** *
       * Leave empty for draft projects. Mandatory for projects where status contains PROJECT_PUBLISHED. Certificate to be used for signing the Apple passes.
       * 
* * string passTypeIdentifier = 6; * @param value The bytes for passTypeIdentifier to set. * @return This builder for chaining. */ public Builder setPassTypeIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); passTypeIdentifier_ = value; onChanged(); return this; } private com.passkit.grpc.Distribution.DistributionSettings distributionSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.DistributionSettings, com.passkit.grpc.Distribution.DistributionSettings.Builder, com.passkit.grpc.Distribution.DistributionSettingsOrBuilder> distributionSettingsBuilder_; /** *
       * Contains the email & sms distribution settings for the project
       * 
* * .io.DistributionSettings distributionSettings = 7; * @return Whether the distributionSettings field is set. */ public boolean hasDistributionSettings() { return distributionSettingsBuilder_ != null || distributionSettings_ != null; } /** *
       * Contains the email & sms distribution settings for the project
       * 
* * .io.DistributionSettings distributionSettings = 7; * @return The distributionSettings. */ public com.passkit.grpc.Distribution.DistributionSettings getDistributionSettings() { if (distributionSettingsBuilder_ == null) { return distributionSettings_ == null ? com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance() : distributionSettings_; } else { return distributionSettingsBuilder_.getMessage(); } } /** *
       * Contains the email & sms distribution settings for the project
       * 
* * .io.DistributionSettings distributionSettings = 7; */ public Builder setDistributionSettings(com.passkit.grpc.Distribution.DistributionSettings value) { if (distributionSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } distributionSettings_ = value; onChanged(); } else { distributionSettingsBuilder_.setMessage(value); } return this; } /** *
       * Contains the email & sms distribution settings for the project
       * 
* * .io.DistributionSettings distributionSettings = 7; */ public Builder setDistributionSettings( com.passkit.grpc.Distribution.DistributionSettings.Builder builderForValue) { if (distributionSettingsBuilder_ == null) { distributionSettings_ = builderForValue.build(); onChanged(); } else { distributionSettingsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Contains the email & sms distribution settings for the project
       * 
* * .io.DistributionSettings distributionSettings = 7; */ public Builder mergeDistributionSettings(com.passkit.grpc.Distribution.DistributionSettings value) { if (distributionSettingsBuilder_ == null) { if (distributionSettings_ != null) { distributionSettings_ = com.passkit.grpc.Distribution.DistributionSettings.newBuilder(distributionSettings_).mergeFrom(value).buildPartial(); } else { distributionSettings_ = value; } onChanged(); } else { distributionSettingsBuilder_.mergeFrom(value); } return this; } /** *
       * Contains the email & sms distribution settings for the project
       * 
* * .io.DistributionSettings distributionSettings = 7; */ public Builder clearDistributionSettings() { if (distributionSettingsBuilder_ == null) { distributionSettings_ = null; onChanged(); } else { distributionSettings_ = null; distributionSettingsBuilder_ = null; } return this; } /** *
       * Contains the email & sms distribution settings for the project
       * 
* * .io.DistributionSettings distributionSettings = 7; */ public com.passkit.grpc.Distribution.DistributionSettings.Builder getDistributionSettingsBuilder() { onChanged(); return getDistributionSettingsFieldBuilder().getBuilder(); } /** *
       * Contains the email & sms distribution settings for the project
       * 
* * .io.DistributionSettings distributionSettings = 7; */ public com.passkit.grpc.Distribution.DistributionSettingsOrBuilder getDistributionSettingsOrBuilder() { if (distributionSettingsBuilder_ != null) { return distributionSettingsBuilder_.getMessageOrBuilder(); } else { return distributionSettings_ == null ? com.passkit.grpc.Distribution.DistributionSettings.getDefaultInstance() : distributionSettings_; } } /** *
       * Contains the email & sms distribution settings for the project
       * 
* * .io.DistributionSettings distributionSettings = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.DistributionSettings, com.passkit.grpc.Distribution.DistributionSettings.Builder, com.passkit.grpc.Distribution.DistributionSettingsOrBuilder> getDistributionSettingsFieldBuilder() { if (distributionSettingsBuilder_ == null) { distributionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Distribution.DistributionSettings, com.passkit.grpc.Distribution.DistributionSettings.Builder, com.passkit.grpc.Distribution.DistributionSettingsOrBuilder>( getDistributionSettings(), getParentForChildren(), isClean()); distributionSettings_ = null; } return distributionSettingsBuilder_; } 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 date the project was created.
       * 
* * .google.protobuf.Timestamp created = 8; * @return Whether the created field is set. */ public boolean hasCreated() { return createdBuilder_ != null || created_ != null; } /** *
       * The date the project was created.
       * 
* * .google.protobuf.Timestamp created = 8; * @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 date the project was created.
       * 
* * .google.protobuf.Timestamp created = 8; */ 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 date the project was created.
       * 
* * .google.protobuf.Timestamp created = 8; */ public Builder setCreated( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdBuilder_ == null) { created_ = builderForValue.build(); onChanged(); } else { createdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The date the project was created.
       * 
* * .google.protobuf.Timestamp created = 8; */ 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 date the project was created.
       * 
* * .google.protobuf.Timestamp created = 8; */ public Builder clearCreated() { if (createdBuilder_ == null) { created_ = null; onChanged(); } else { created_ = null; createdBuilder_ = null; } return this; } /** *
       * The date the project was created.
       * 
* * .google.protobuf.Timestamp created = 8; */ public com.google.protobuf.Timestamp.Builder getCreatedBuilder() { onChanged(); return getCreatedFieldBuilder().getBuilder(); } /** *
       * The date the project was created.
       * 
* * .google.protobuf.Timestamp created = 8; */ public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() { if (createdBuilder_ != null) { return createdBuilder_.getMessageOrBuilder(); } else { return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_; } } /** *
       * The date the project was created.
       * 
* * .google.protobuf.Timestamp created = 8; */ 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 com.google.protobuf.Timestamp updated_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedBuilder_; /** *
       * The date the project was updated.
       * 
* * .google.protobuf.Timestamp updated = 9; * @return Whether the updated field is set. */ public boolean hasUpdated() { return updatedBuilder_ != null || updated_ != null; } /** *
       * The date the project was updated.
       * 
* * .google.protobuf.Timestamp updated = 9; * @return The updated. */ public com.google.protobuf.Timestamp getUpdated() { if (updatedBuilder_ == null) { return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_; } else { return updatedBuilder_.getMessage(); } } /** *
       * The date the project was updated.
       * 
* * .google.protobuf.Timestamp updated = 9; */ public Builder setUpdated(com.google.protobuf.Timestamp value) { if (updatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updated_ = value; onChanged(); } else { updatedBuilder_.setMessage(value); } return this; } /** *
       * The date the project was updated.
       * 
* * .google.protobuf.Timestamp updated = 9; */ public Builder setUpdated( com.google.protobuf.Timestamp.Builder builderForValue) { if (updatedBuilder_ == null) { updated_ = builderForValue.build(); onChanged(); } else { updatedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The date the project was updated.
       * 
* * .google.protobuf.Timestamp updated = 9; */ public Builder mergeUpdated(com.google.protobuf.Timestamp value) { if (updatedBuilder_ == null) { if (updated_ != null) { updated_ = com.google.protobuf.Timestamp.newBuilder(updated_).mergeFrom(value).buildPartial(); } else { updated_ = value; } onChanged(); } else { updatedBuilder_.mergeFrom(value); } return this; } /** *
       * The date the project was updated.
       * 
* * .google.protobuf.Timestamp updated = 9; */ public Builder clearUpdated() { if (updatedBuilder_ == null) { updated_ = null; onChanged(); } else { updated_ = null; updatedBuilder_ = null; } return this; } /** *
       * The date the project was updated.
       * 
* * .google.protobuf.Timestamp updated = 9; */ public com.google.protobuf.Timestamp.Builder getUpdatedBuilder() { onChanged(); return getUpdatedFieldBuilder().getBuilder(); } /** *
       * The date the project was updated.
       * 
* * .google.protobuf.Timestamp updated = 9; */ public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() { if (updatedBuilder_ != null) { return updatedBuilder_.getMessageOrBuilder(); } else { return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_; } } /** *
       * The date the project was updated.
       * 
* * .google.protobuf.Timestamp updated = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdatedFieldBuilder() { if (updatedBuilder_ == null) { updatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdated(), getParentForChildren(), isClean()); updated_ = null; } return updatedBuilder_; } @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:raw.PassProject) } // @@protoc_insertion_point(class_scope:raw.PassProject) private static final com.passkit.grpc.Raw.Project.PassProject DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Raw.Project.PassProject(); } public static com.passkit.grpc.Raw.Project.PassProject getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PassProject parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PassProject(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.Raw.Project.PassProject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PassProjectCopyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raw.PassProjectCopyRequest) com.google.protobuf.MessageOrBuilder { /** *
     * uuid of the pass project to copy
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * uuid of the pass project to copy
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * optional name for the new pass project
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * optional name for the new pass project
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Status to set the copied project to
     * 
* * repeated .io.ProjectStatus status = 3; * @return A list containing the status. */ java.util.List getStatusList(); /** *
     * Status to set the copied project to
     * 
* * repeated .io.ProjectStatus status = 3; * @return The count of status. */ int getStatusCount(); /** *
     * Status to set the copied project to
     * 
* * repeated .io.ProjectStatus status = 3; * @param index The index of the element to return. * @return The status at the given index. */ com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index); /** *
     * Status to set the copied project to
     * 
* * repeated .io.ProjectStatus status = 3; * @return A list containing the enum numeric values on the wire for status. */ java.util.List getStatusValueList(); /** *
     * Status to set the copied project to
     * 
* * repeated .io.ProjectStatus status = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of status at the given index. */ int getStatusValue(int index); /** *
     * Can optionally be provided if setting status to published (requires a prod cert)
     * 
* * string passTypeIdentifier = 4; * @return The passTypeIdentifier. */ java.lang.String getPassTypeIdentifier(); /** *
     * Can optionally be provided if setting status to published (requires a prod cert)
     * 
* * string passTypeIdentifier = 4; * @return The bytes for passTypeIdentifier. */ com.google.protobuf.ByteString getPassTypeIdentifierBytes(); } /** *
   * Contains payload for copying a pass project
   * 
* * Protobuf type {@code raw.PassProjectCopyRequest} */ public static final class PassProjectCopyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raw.PassProjectCopyRequest) PassProjectCopyRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PassProjectCopyRequest.newBuilder() to construct. private PassProjectCopyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PassProjectCopyRequest() { id_ = ""; name_ = ""; status_ = java.util.Collections.emptyList(); passTypeIdentifier_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PassProjectCopyRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PassProjectCopyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 24: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { status_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } status_.add(rawValue); break; } case 26: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { status_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } status_.add(rawValue); } input.popLimit(oldLimit); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); passTypeIdentifier_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { status_ = java.util.Collections.unmodifiableList(status_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Raw.Project.internal_static_raw_PassProjectCopyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Raw.Project.internal_static_raw_PassProjectCopyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Raw.Project.PassProjectCopyRequest.class, com.passkit.grpc.Raw.Project.PassProjectCopyRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * uuid of the pass project to copy
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * uuid of the pass project to copy
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * optional name for the new pass project
     * 
* * string name = 2; * @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; } } /** *
     * optional name for the new pass project
     * 
* * string name = 2; * @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 STATUS_FIELD_NUMBER = 3; private java.util.List status_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus> status_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>() { public com.passkit.grpc.ProjectOuterClass.ProjectStatus convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.passkit.grpc.ProjectOuterClass.ProjectStatus result = com.passkit.grpc.ProjectOuterClass.ProjectStatus.valueOf(from); return result == null ? com.passkit.grpc.ProjectOuterClass.ProjectStatus.UNRECOGNIZED : result; } }; /** *
     * Status to set the copied project to
     * 
* * repeated .io.ProjectStatus status = 3; * @return A list containing the status. */ @java.lang.Override public java.util.List getStatusList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>(status_, status_converter_); } /** *
     * Status to set the copied project to
     * 
* * repeated .io.ProjectStatus status = 3; * @return The count of status. */ @java.lang.Override public int getStatusCount() { return status_.size(); } /** *
     * Status to set the copied project to
     * 
* * repeated .io.ProjectStatus status = 3; * @param index The index of the element to return. * @return The status at the given index. */ @java.lang.Override public com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index) { return status_converter_.convert(status_.get(index)); } /** *
     * Status to set the copied project to
     * 
* * repeated .io.ProjectStatus status = 3; * @return A list containing the enum numeric values on the wire for status. */ @java.lang.Override public java.util.List getStatusValueList() { return status_; } /** *
     * Status to set the copied project to
     * 
* * repeated .io.ProjectStatus status = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of status at the given index. */ @java.lang.Override public int getStatusValue(int index) { return status_.get(index); } private int statusMemoizedSerializedSize; public static final int PASSTYPEIDENTIFIER_FIELD_NUMBER = 4; private volatile java.lang.Object passTypeIdentifier_; /** *
     * Can optionally be provided if setting status to published (requires a prod cert)
     * 
* * string passTypeIdentifier = 4; * @return The passTypeIdentifier. */ @java.lang.Override public java.lang.String getPassTypeIdentifier() { java.lang.Object ref = passTypeIdentifier_; 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(); passTypeIdentifier_ = s; return s; } } /** *
     * Can optionally be provided if setting status to published (requires a prod cert)
     * 
* * string passTypeIdentifier = 4; * @return The bytes for passTypeIdentifier. */ @java.lang.Override public com.google.protobuf.ByteString getPassTypeIdentifierBytes() { java.lang.Object ref = passTypeIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passTypeIdentifier_ = 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 { getSerializedSize(); if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (getStatusList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(statusMemoizedSerializedSize); } for (int i = 0; i < status_.size(); i++) { output.writeEnumNoTag(status_.get(i)); } if (!getPassTypeIdentifierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, passTypeIdentifier_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } { int dataSize = 0; for (int i = 0; i < status_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(status_.get(i)); } size += dataSize; if (!getStatusList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }statusMemoizedSerializedSize = dataSize; } if (!getPassTypeIdentifierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, passTypeIdentifier_); } 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.Raw.Project.PassProjectCopyRequest)) { return super.equals(obj); } com.passkit.grpc.Raw.Project.PassProjectCopyRequest other = (com.passkit.grpc.Raw.Project.PassProjectCopyRequest) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!status_.equals(other.status_)) return false; if (!getPassTypeIdentifier() .equals(other.getPassTypeIdentifier())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getStatusCount() > 0) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_.hashCode(); } hash = (37 * hash) + PASSTYPEIDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getPassTypeIdentifier().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.Raw.Project.PassProjectCopyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Raw.Project.PassProjectCopyRequest 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.Raw.Project.PassProjectCopyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Raw.Project.PassProjectCopyRequest 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.Raw.Project.PassProjectCopyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.Raw.Project.PassProjectCopyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.Raw.Project.PassProjectCopyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Raw.Project.PassProjectCopyRequest 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.Raw.Project.PassProjectCopyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.Raw.Project.PassProjectCopyRequest 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.Raw.Project.PassProjectCopyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.Raw.Project.PassProjectCopyRequest 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.Raw.Project.PassProjectCopyRequest 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; } /** *
     * Contains payload for copying a pass project
     * 
* * Protobuf type {@code raw.PassProjectCopyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raw.PassProjectCopyRequest) com.passkit.grpc.Raw.Project.PassProjectCopyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.Raw.Project.internal_static_raw_PassProjectCopyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.Raw.Project.internal_static_raw_PassProjectCopyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.Raw.Project.PassProjectCopyRequest.class, com.passkit.grpc.Raw.Project.PassProjectCopyRequest.Builder.class); } // Construct using com.passkit.grpc.Raw.Project.PassProjectCopyRequest.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(); id_ = ""; name_ = ""; status_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); passTypeIdentifier_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.Raw.Project.internal_static_raw_PassProjectCopyRequest_descriptor; } @java.lang.Override public com.passkit.grpc.Raw.Project.PassProjectCopyRequest getDefaultInstanceForType() { return com.passkit.grpc.Raw.Project.PassProjectCopyRequest.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.Raw.Project.PassProjectCopyRequest build() { com.passkit.grpc.Raw.Project.PassProjectCopyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.Raw.Project.PassProjectCopyRequest buildPartial() { com.passkit.grpc.Raw.Project.PassProjectCopyRequest result = new com.passkit.grpc.Raw.Project.PassProjectCopyRequest(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { status_ = java.util.Collections.unmodifiableList(status_); bitField0_ = (bitField0_ & ~0x00000001); } result.status_ = status_; result.passTypeIdentifier_ = passTypeIdentifier_; 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.Raw.Project.PassProjectCopyRequest) { return mergeFrom((com.passkit.grpc.Raw.Project.PassProjectCopyRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.Raw.Project.PassProjectCopyRequest other) { if (other == com.passkit.grpc.Raw.Project.PassProjectCopyRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.status_.isEmpty()) { if (status_.isEmpty()) { status_ = other.status_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStatusIsMutable(); status_.addAll(other.status_); } onChanged(); } if (!other.getPassTypeIdentifier().isEmpty()) { passTypeIdentifier_ = other.passTypeIdentifier_; 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.Raw.Project.PassProjectCopyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.Raw.Project.PassProjectCopyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * uuid of the pass project to copy
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * uuid of the pass project to copy
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * uuid of the pass project to copy
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * uuid of the pass project to copy
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * uuid of the pass project to copy
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * optional name for the new pass project
       * 
* * string name = 2; * @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; } } /** *
       * optional name for the new pass project
       * 
* * string name = 2; * @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; } } /** *
       * optional name for the new pass project
       * 
* * string name = 2; * @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; } /** *
       * optional name for the new pass project
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * optional name for the new pass project
       * 
* * string name = 2; * @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.util.List status_ = java.util.Collections.emptyList(); private void ensureStatusIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { status_ = new java.util.ArrayList(status_); bitField0_ |= 0x00000001; } } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @return A list containing the status. */ public java.util.List getStatusList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.passkit.grpc.ProjectOuterClass.ProjectStatus>(status_, status_converter_); } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @return The count of status. */ public int getStatusCount() { return status_.size(); } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @param index The index of the element to return. * @return The status at the given index. */ public com.passkit.grpc.ProjectOuterClass.ProjectStatus getStatus(int index) { return status_converter_.convert(status_.get(index)); } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @param index The index to set the value at. * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus( int index, com.passkit.grpc.ProjectOuterClass.ProjectStatus value) { if (value == null) { throw new NullPointerException(); } ensureStatusIsMutable(); status_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @param value The status to add. * @return This builder for chaining. */ public Builder addStatus(com.passkit.grpc.ProjectOuterClass.ProjectStatus value) { if (value == null) { throw new NullPointerException(); } ensureStatusIsMutable(); status_.add(value.getNumber()); onChanged(); return this; } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @param values The status to add. * @return This builder for chaining. */ public Builder addAllStatus( java.lang.Iterable values) { ensureStatusIsMutable(); for (com.passkit.grpc.ProjectOuterClass.ProjectStatus value : values) { status_.add(value.getNumber()); } onChanged(); return this; } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @return This builder for chaining. */ public Builder clearStatus() { status_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @return A list containing the enum numeric values on the wire for status. */ public java.util.List getStatusValueList() { return java.util.Collections.unmodifiableList(status_); } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of status at the given index. */ public int getStatusValue(int index) { return status_.get(index); } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of status at the given index. * @return This builder for chaining. */ public Builder setStatusValue( int index, int value) { ensureStatusIsMutable(); status_.set(index, value); onChanged(); return this; } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @param value The enum numeric value on the wire for status to add. * @return This builder for chaining. */ public Builder addStatusValue(int value) { ensureStatusIsMutable(); status_.add(value); onChanged(); return this; } /** *
       * Status to set the copied project to
       * 
* * repeated .io.ProjectStatus status = 3; * @param values The enum numeric values on the wire for status to add. * @return This builder for chaining. */ public Builder addAllStatusValue( java.lang.Iterable values) { ensureStatusIsMutable(); for (int value : values) { status_.add(value); } onChanged(); return this; } private java.lang.Object passTypeIdentifier_ = ""; /** *
       * Can optionally be provided if setting status to published (requires a prod cert)
       * 
* * string passTypeIdentifier = 4; * @return The passTypeIdentifier. */ public java.lang.String getPassTypeIdentifier() { java.lang.Object ref = passTypeIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); passTypeIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Can optionally be provided if setting status to published (requires a prod cert)
       * 
* * string passTypeIdentifier = 4; * @return The bytes for passTypeIdentifier. */ public com.google.protobuf.ByteString getPassTypeIdentifierBytes() { java.lang.Object ref = passTypeIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passTypeIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Can optionally be provided if setting status to published (requires a prod cert)
       * 
* * string passTypeIdentifier = 4; * @param value The passTypeIdentifier to set. * @return This builder for chaining. */ public Builder setPassTypeIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } passTypeIdentifier_ = value; onChanged(); return this; } /** *
       * Can optionally be provided if setting status to published (requires a prod cert)
       * 
* * string passTypeIdentifier = 4; * @return This builder for chaining. */ public Builder clearPassTypeIdentifier() { passTypeIdentifier_ = getDefaultInstance().getPassTypeIdentifier(); onChanged(); return this; } /** *
       * Can optionally be provided if setting status to published (requires a prod cert)
       * 
* * string passTypeIdentifier = 4; * @param value The bytes for passTypeIdentifier to set. * @return This builder for chaining. */ public Builder setPassTypeIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); passTypeIdentifier_ = 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:raw.PassProjectCopyRequest) } // @@protoc_insertion_point(class_scope:raw.PassProjectCopyRequest) private static final com.passkit.grpc.Raw.Project.PassProjectCopyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.Raw.Project.PassProjectCopyRequest(); } public static com.passkit.grpc.Raw.Project.PassProjectCopyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PassProjectCopyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PassProjectCopyRequest(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.Raw.Project.PassProjectCopyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_raw_PassProject_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raw_PassProject_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raw_PassProjectCopyRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raw_PassProjectCopyRequest_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\024io/raw/project.proto\022\003raw\032\037google/prot" + "obuf/timestamp.proto\032\034io/common/distribu" + "tion.proto\032\034io/common/localization.proto" + "\032\027io/common/project.proto\032\027io/common/bil" + "ling.proto\032.protoc-gen-openapiv2/options" + "/annotations.proto\"\376\003\n\013PassProject\022\n\n\002id" + "\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022*\n\rlocalizedName\030\003 " + "\001(\0132\023.io.LocalizedString\022!\n\006status\030\004 \003(\016" + "2\021.io.ProjectStatus\022\030\n\005quota\030\005 \001(\0132\t.io." + "Quota\022\032\n\022passTypeIdentifier\030\006 \001(\t\0226\n\024dis" + "tributionSettings\030\007 \001(\0132\030.io.Distributio" + "nSettings\022+\n\007created\030\010 \001(\0132\032.google.prot" + "obuf.Timestamp\022+\n\007updated\030\t \001(\0132\032.google" + ".protobuf.Timestamp:\275\001\222A\271\001\n\266\001*\014Pass Proj" + "ect2\225\001Pass Project holds the basic busin" + "ess logic. Pass Project holds details on" + " pass distribution, quotas, Apple certif" + "icate, integrations & hooks to use.\322\001\004na" + "me\322\001\006status\"q\n\026PassProjectCopyRequest\022\n\n" + "\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022!\n\006status\030\003 \003(\0162" + "\021.io.ProjectStatus\022\032\n\022passTypeIdentifier" + "\030\004 \001(\tBS\n\024com.passkit.grpc.RawZ(stash.pa" + "sskit.com/io/model/sdk/go/io/raw\252\002\020PassK" + "it.Grpc.Rawb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), com.passkit.grpc.Distribution.getDescriptor(), com.passkit.grpc.Localization.getDescriptor(), com.passkit.grpc.ProjectOuterClass.getDescriptor(), com.passkit.grpc.Billing.getDescriptor(), grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(), }); internal_static_raw_PassProject_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_raw_PassProject_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raw_PassProject_descriptor, new java.lang.String[] { "Id", "Name", "LocalizedName", "Status", "Quota", "PassTypeIdentifier", "DistributionSettings", "Created", "Updated", }); internal_static_raw_PassProjectCopyRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_raw_PassProjectCopyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raw_PassProjectCopyRequest_descriptor, new java.lang.String[] { "Id", "Name", "Status", "PassTypeIdentifier", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Schema); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.TimestampProto.getDescriptor(); com.passkit.grpc.Distribution.getDescriptor(); com.passkit.grpc.Localization.getDescriptor(); com.passkit.grpc.ProjectOuterClass.getDescriptor(); com.passkit.grpc.Billing.getDescriptor(); grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy