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

com.wgtwo.api.v0.consent.ConsentsProto Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: wgtwo/consents/v0/consents.proto

package com.wgtwo.api.v0.consent;

public final class ConsentsProto {
  private ConsentsProto() {}
  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 GetConsentsForSubscriptionRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:wgtwo.consents.v0.GetConsentsForSubscriptionRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .wgtwo.common.v0.SubscriptionIdentifier id = 1;
     * @return Whether the id field is set.
     */
    boolean hasId();
    /**
     * .wgtwo.common.v0.SubscriptionIdentifier id = 1;
     * @return The id.
     */
    com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getId();
    /**
     * .wgtwo.common.v0.SubscriptionIdentifier id = 1;
     */
    com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getIdOrBuilder();

    /**
     * 
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; * @return Whether the phoneNumber field is set. */ boolean hasPhoneNumber(); /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; * @return The phoneNumber. */ com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getPhoneNumber(); /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; */ com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder getPhoneNumberOrBuilder(); } /** * Protobuf type {@code wgtwo.consents.v0.GetConsentsForSubscriptionRequest} */ public static final class GetConsentsForSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wgtwo.consents.v0.GetConsentsForSubscriptionRequest) GetConsentsForSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetConsentsForSubscriptionRequest.newBuilder() to construct. private GetConsentsForSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetConsentsForSubscriptionRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetConsentsForSubscriptionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest.class, com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier id_; /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return id_ != null; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return The id. */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getId() { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getIdOrBuilder() { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } public static final int PHONE_NUMBER_FIELD_NUMBER = 2; private com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber phoneNumber_; /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; * @return Whether the phoneNumber field is set. */ @java.lang.Override public boolean hasPhoneNumber() { return phoneNumber_ != null; } /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; * @return The phoneNumber. */ @java.lang.Override public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getPhoneNumber() { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; */ @java.lang.Override public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder getPhoneNumberOrBuilder() { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != null) { output.writeMessage(1, getId()); } if (phoneNumber_ != null) { output.writeMessage(2, getPhoneNumber()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (phoneNumber_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPhoneNumber()); } size += getUnknownFields().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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest)) { return super.equals(obj); } com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest other = (com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasPhoneNumber() != other.hasPhoneNumber()) return false; if (hasPhoneNumber()) { if (!getPhoneNumber() .equals(other.getPhoneNumber())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasPhoneNumber()) { hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest 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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest 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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest 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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code wgtwo.consents.v0.GetConsentsForSubscriptionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wgtwo.consents.v0.GetConsentsForSubscriptionRequest) com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest.class, com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest.Builder.class); } // Construct using com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = null; if (idBuilder_ != null) { idBuilder_.dispose(); idBuilder_ = null; } phoneNumber_ = null; if (phoneNumberBuilder_ != null) { phoneNumberBuilder_.dispose(); phoneNumberBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionRequest_descriptor; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest getDefaultInstanceForType() { return com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest.getDefaultInstance(); } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest build() { com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest buildPartial() { com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest result = new com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = idBuilder_ == null ? id_ : idBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.phoneNumber_ = phoneNumberBuilder_ == null ? phoneNumber_ : phoneNumberBuilder_.build(); } } @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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest) { return mergeFrom((com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest other) { if (other == com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.hasPhoneNumber()) { mergePhoneNumber(other.getPhoneNumber()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPhoneNumberFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier id_; private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder> idBuilder_; /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return The id. */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getId() { if (idBuilder_ == null) { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder setId(com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder setId( com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder mergeId(com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && id_ != null && id_ != com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance()) { getIdBuilder().mergeFrom(value); } else { id_ = value; } } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = null; if (idBuilder_ != null) { idBuilder_.dispose(); idBuilder_ = null; } onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder getIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdFieldBuilder().getBuilder(); } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber phoneNumber_; private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder> phoneNumberBuilder_; /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; * @return The phoneNumber. */ public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getPhoneNumber() { if (phoneNumberBuilder_ == null) { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } else { return phoneNumberBuilder_.getMessage(); } } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; */ public Builder setPhoneNumber(com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber value) { if (phoneNumberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } phoneNumber_ = value; } else { phoneNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; */ public Builder setPhoneNumber( com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder builderForValue) { if (phoneNumberBuilder_ == null) { phoneNumber_ = builderForValue.build(); } else { phoneNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; */ public Builder mergePhoneNumber(com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber value) { if (phoneNumberBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && phoneNumber_ != null && phoneNumber_ != com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance()) { getPhoneNumberBuilder().mergeFrom(value); } else { phoneNumber_ = value; } } else { phoneNumberBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; */ public Builder clearPhoneNumber() { bitField0_ = (bitField0_ & ~0x00000002); phoneNumber_ = null; if (phoneNumberBuilder_ != null) { phoneNumberBuilder_.dispose(); phoneNumberBuilder_ = null; } onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; */ public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder getPhoneNumberBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPhoneNumberFieldBuilder().getBuilder(); } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; */ public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder getPhoneNumberOrBuilder() { if (phoneNumberBuilder_ != null) { return phoneNumberBuilder_.getMessageOrBuilder(); } else { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder> getPhoneNumberFieldBuilder() { if (phoneNumberBuilder_ == null) { phoneNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder>( getPhoneNumber(), getParentForChildren(), isClean()); phoneNumber_ = null; } return phoneNumberBuilder_; } @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:wgtwo.consents.v0.GetConsentsForSubscriptionRequest) } // @@protoc_insertion_point(class_scope:wgtwo.consents.v0.GetConsentsForSubscriptionRequest) private static final com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest(); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetConsentsForSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetConsentsForSubscriptionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:wgtwo.consents.v0.GetConsentsForSubscriptionResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ java.util.List getConsentsList(); /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ com.wgtwo.api.v0.consent.ConsentsProto.Consent getConsents(int index); /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ int getConsentsCount(); /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ java.util.List getConsentsOrBuilderList(); /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ com.wgtwo.api.v0.consent.ConsentsProto.ConsentOrBuilder getConsentsOrBuilder( int index); /** * .wgtwo.common.v0.StatusCode status_code = 2; * @return The enum numeric value on the wire for statusCode. */ int getStatusCodeValue(); /** * .wgtwo.common.v0.StatusCode status_code = 2; * @return The statusCode. */ com.wgtwo.api.v0.common.ErrorsProto.StatusCode getStatusCode(); /** * string error_message = 3; * @return The errorMessage. */ java.lang.String getErrorMessage(); /** * string error_message = 3; * @return The bytes for errorMessage. */ com.google.protobuf.ByteString getErrorMessageBytes(); } /** * Protobuf type {@code wgtwo.consents.v0.GetConsentsForSubscriptionResponse} */ public static final class GetConsentsForSubscriptionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wgtwo.consents.v0.GetConsentsForSubscriptionResponse) GetConsentsForSubscriptionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetConsentsForSubscriptionResponse.newBuilder() to construct. private GetConsentsForSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetConsentsForSubscriptionResponse() { consents_ = java.util.Collections.emptyList(); statusCode_ = 0; errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetConsentsForSubscriptionResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse.class, com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse.Builder.class); } public static final int CONSENTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List consents_; /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ @java.lang.Override public java.util.List getConsentsList() { return consents_; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ @java.lang.Override public java.util.List getConsentsOrBuilderList() { return consents_; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ @java.lang.Override public int getConsentsCount() { return consents_.size(); } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Consent getConsents(int index) { return consents_.get(index); } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOrBuilder getConsentsOrBuilder( int index) { return consents_.get(index); } public static final int STATUS_CODE_FIELD_NUMBER = 2; private int statusCode_ = 0; /** * .wgtwo.common.v0.StatusCode status_code = 2; * @return The enum numeric value on the wire for statusCode. */ @java.lang.Override public int getStatusCodeValue() { return statusCode_; } /** * .wgtwo.common.v0.StatusCode status_code = 2; * @return The statusCode. */ @java.lang.Override public com.wgtwo.api.v0.common.ErrorsProto.StatusCode getStatusCode() { com.wgtwo.api.v0.common.ErrorsProto.StatusCode result = com.wgtwo.api.v0.common.ErrorsProto.StatusCode.forNumber(statusCode_); return result == null ? com.wgtwo.api.v0.common.ErrorsProto.StatusCode.UNRECOGNIZED : result; } public static final int ERROR_MESSAGE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** * string error_message = 3; * @return The errorMessage. */ @java.lang.Override public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; 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(); errorMessage_ = s; return s; } } /** * string error_message = 3; * @return The bytes for errorMessage. */ @java.lang.Override public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMessage_ = 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 { for (int i = 0; i < consents_.size(); i++) { output.writeMessage(1, consents_.get(i)); } if (statusCode_ != com.wgtwo.api.v0.common.ErrorsProto.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, statusCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorMessage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < consents_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, consents_.get(i)); } if (statusCode_ != com.wgtwo.api.v0.common.ErrorsProto.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, statusCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorMessage_); } size += getUnknownFields().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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse)) { return super.equals(obj); } com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse other = (com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse) obj; if (!getConsentsList() .equals(other.getConsentsList())) return false; if (statusCode_ != other.statusCode_) return false; if (!getErrorMessage() .equals(other.getErrorMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getConsentsCount() > 0) { hash = (37 * hash) + CONSENTS_FIELD_NUMBER; hash = (53 * hash) + getConsentsList().hashCode(); } hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER; hash = (53 * hash) + statusCode_; hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getErrorMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse 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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse 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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse 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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code wgtwo.consents.v0.GetConsentsForSubscriptionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wgtwo.consents.v0.GetConsentsForSubscriptionResponse) com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse.class, com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse.Builder.class); } // Construct using com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (consentsBuilder_ == null) { consents_ = java.util.Collections.emptyList(); } else { consents_ = null; consentsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); statusCode_ = 0; errorMessage_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionResponse_descriptor; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse getDefaultInstanceForType() { return com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse.getDefaultInstance(); } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse build() { com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse buildPartial() { com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse result = new com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse result) { if (consentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { consents_ = java.util.Collections.unmodifiableList(consents_); bitField0_ = (bitField0_ & ~0x00000001); } result.consents_ = consents_; } else { result.consents_ = consentsBuilder_.build(); } } private void buildPartial0(com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.statusCode_ = statusCode_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.errorMessage_ = errorMessage_; } } @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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse) { return mergeFrom((com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse other) { if (other == com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse.getDefaultInstance()) return this; if (consentsBuilder_ == null) { if (!other.consents_.isEmpty()) { if (consents_.isEmpty()) { consents_ = other.consents_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConsentsIsMutable(); consents_.addAll(other.consents_); } onChanged(); } } else { if (!other.consents_.isEmpty()) { if (consentsBuilder_.isEmpty()) { consentsBuilder_.dispose(); consentsBuilder_ = null; consents_ = other.consents_; bitField0_ = (bitField0_ & ~0x00000001); consentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConsentsFieldBuilder() : null; } else { consentsBuilder_.addAllMessages(other.consents_); } } } if (other.statusCode_ != 0) { setStatusCodeValue(other.getStatusCodeValue()); } if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.wgtwo.api.v0.consent.ConsentsProto.Consent m = input.readMessage( com.wgtwo.api.v0.consent.ConsentsProto.Consent.parser(), extensionRegistry); if (consentsBuilder_ == null) { ensureConsentsIsMutable(); consents_.add(m); } else { consentsBuilder_.addMessage(m); } break; } // case 10 case 16: { statusCode_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { errorMessage_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List consents_ = java.util.Collections.emptyList(); private void ensureConsentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { consents_ = new java.util.ArrayList(consents_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.Consent, com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOrBuilder> consentsBuilder_; /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public java.util.List getConsentsList() { if (consentsBuilder_ == null) { return java.util.Collections.unmodifiableList(consents_); } else { return consentsBuilder_.getMessageList(); } } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public int getConsentsCount() { if (consentsBuilder_ == null) { return consents_.size(); } else { return consentsBuilder_.getCount(); } } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public com.wgtwo.api.v0.consent.ConsentsProto.Consent getConsents(int index) { if (consentsBuilder_ == null) { return consents_.get(index); } else { return consentsBuilder_.getMessage(index); } } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public Builder setConsents( int index, com.wgtwo.api.v0.consent.ConsentsProto.Consent value) { if (consentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsentsIsMutable(); consents_.set(index, value); onChanged(); } else { consentsBuilder_.setMessage(index, value); } return this; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public Builder setConsents( int index, com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder builderForValue) { if (consentsBuilder_ == null) { ensureConsentsIsMutable(); consents_.set(index, builderForValue.build()); onChanged(); } else { consentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public Builder addConsents(com.wgtwo.api.v0.consent.ConsentsProto.Consent value) { if (consentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsentsIsMutable(); consents_.add(value); onChanged(); } else { consentsBuilder_.addMessage(value); } return this; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public Builder addConsents( int index, com.wgtwo.api.v0.consent.ConsentsProto.Consent value) { if (consentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsentsIsMutable(); consents_.add(index, value); onChanged(); } else { consentsBuilder_.addMessage(index, value); } return this; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public Builder addConsents( com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder builderForValue) { if (consentsBuilder_ == null) { ensureConsentsIsMutable(); consents_.add(builderForValue.build()); onChanged(); } else { consentsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public Builder addConsents( int index, com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder builderForValue) { if (consentsBuilder_ == null) { ensureConsentsIsMutable(); consents_.add(index, builderForValue.build()); onChanged(); } else { consentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public Builder addAllConsents( java.lang.Iterable values) { if (consentsBuilder_ == null) { ensureConsentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, consents_); onChanged(); } else { consentsBuilder_.addAllMessages(values); } return this; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public Builder clearConsents() { if (consentsBuilder_ == null) { consents_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { consentsBuilder_.clear(); } return this; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public Builder removeConsents(int index) { if (consentsBuilder_ == null) { ensureConsentsIsMutable(); consents_.remove(index); onChanged(); } else { consentsBuilder_.remove(index); } return this; } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder getConsentsBuilder( int index) { return getConsentsFieldBuilder().getBuilder(index); } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOrBuilder getConsentsOrBuilder( int index) { if (consentsBuilder_ == null) { return consents_.get(index); } else { return consentsBuilder_.getMessageOrBuilder(index); } } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public java.util.List getConsentsOrBuilderList() { if (consentsBuilder_ != null) { return consentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(consents_); } } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder addConsentsBuilder() { return getConsentsFieldBuilder().addBuilder( com.wgtwo.api.v0.consent.ConsentsProto.Consent.getDefaultInstance()); } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder addConsentsBuilder( int index) { return getConsentsFieldBuilder().addBuilder( index, com.wgtwo.api.v0.consent.ConsentsProto.Consent.getDefaultInstance()); } /** * repeated .wgtwo.consents.v0.Consent consents = 1; */ public java.util.List getConsentsBuilderList() { return getConsentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.Consent, com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOrBuilder> getConsentsFieldBuilder() { if (consentsBuilder_ == null) { consentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.Consent, com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOrBuilder>( consents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); consents_ = null; } return consentsBuilder_; } private int statusCode_ = 0; /** * .wgtwo.common.v0.StatusCode status_code = 2; * @return The enum numeric value on the wire for statusCode. */ @java.lang.Override public int getStatusCodeValue() { return statusCode_; } /** * .wgtwo.common.v0.StatusCode status_code = 2; * @param value The enum numeric value on the wire for statusCode to set. * @return This builder for chaining. */ public Builder setStatusCodeValue(int value) { statusCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .wgtwo.common.v0.StatusCode status_code = 2; * @return The statusCode. */ @java.lang.Override public com.wgtwo.api.v0.common.ErrorsProto.StatusCode getStatusCode() { com.wgtwo.api.v0.common.ErrorsProto.StatusCode result = com.wgtwo.api.v0.common.ErrorsProto.StatusCode.forNumber(statusCode_); return result == null ? com.wgtwo.api.v0.common.ErrorsProto.StatusCode.UNRECOGNIZED : result; } /** * .wgtwo.common.v0.StatusCode status_code = 2; * @param value The statusCode to set. * @return This builder for chaining. */ public Builder setStatusCode(com.wgtwo.api.v0.common.ErrorsProto.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; statusCode_ = value.getNumber(); onChanged(); return this; } /** * .wgtwo.common.v0.StatusCode status_code = 2; * @return This builder for chaining. */ public Builder clearStatusCode() { bitField0_ = (bitField0_ & ~0x00000002); statusCode_ = 0; onChanged(); return this; } private java.lang.Object errorMessage_ = ""; /** * string error_message = 3; * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error_message = 3; * @return The bytes for errorMessage. */ public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error_message = 3; * @param value The errorMessage to set. * @return This builder for chaining. */ public Builder setErrorMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } errorMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string error_message = 3; * @return This builder for chaining. */ public Builder clearErrorMessage() { errorMessage_ = getDefaultInstance().getErrorMessage(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string error_message = 3; * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ public Builder setErrorMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000004; 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:wgtwo.consents.v0.GetConsentsForSubscriptionResponse) } // @@protoc_insertion_point(class_scope:wgtwo.consents.v0.GetConsentsForSubscriptionResponse) private static final com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse(); } public static com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetConsentsForSubscriptionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateConsentForSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:wgtwo.consents.v0.CreateConsentForSubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return Whether the id field is set. */ boolean hasId(); /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return The id. */ com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getId(); /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getIdOrBuilder(); /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; * @return Whether the phoneNumber field is set. */ boolean hasPhoneNumber(); /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; * @return The phoneNumber. */ com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getPhoneNumber(); /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; */ com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder getPhoneNumberOrBuilder(); /** * string product_id = 2; * @return The productId. */ java.lang.String getProductId(); /** * string product_id = 2; * @return The bytes for productId. */ com.google.protobuf.ByteString getProductIdBytes(); /** * string product_version = 3; * @return The productVersion. */ java.lang.String getProductVersion(); /** * string product_version = 3; * @return The bytes for productVersion. */ com.google.protobuf.ByteString getProductVersionBytes(); } /** * Protobuf type {@code wgtwo.consents.v0.CreateConsentForSubscriptionRequest} */ public static final class CreateConsentForSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wgtwo.consents.v0.CreateConsentForSubscriptionRequest) CreateConsentForSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateConsentForSubscriptionRequest.newBuilder() to construct. private CreateConsentForSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateConsentForSubscriptionRequest() { productId_ = ""; productVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateConsentForSubscriptionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest.class, com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier id_; /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return id_ != null; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return The id. */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getId() { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getIdOrBuilder() { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } public static final int PHONE_NUMBER_FIELD_NUMBER = 4; private com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber phoneNumber_; /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; * @return Whether the phoneNumber field is set. */ @java.lang.Override public boolean hasPhoneNumber() { return phoneNumber_ != null; } /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; * @return The phoneNumber. */ @java.lang.Override public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getPhoneNumber() { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; */ @java.lang.Override public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder getPhoneNumberOrBuilder() { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } public static final int PRODUCT_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object productId_ = ""; /** * string product_id = 2; * @return The productId. */ @java.lang.Override public java.lang.String getProductId() { java.lang.Object ref = productId_; 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(); productId_ = s; return s; } } /** * string product_id = 2; * @return The bytes for productId. */ @java.lang.Override public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); productId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRODUCT_VERSION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object productVersion_ = ""; /** * string product_version = 3; * @return The productVersion. */ @java.lang.Override public java.lang.String getProductVersion() { java.lang.Object ref = productVersion_; 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(); productVersion_ = s; return s; } } /** * string product_version = 3; * @return The bytes for productVersion. */ @java.lang.Override public com.google.protobuf.ByteString getProductVersionBytes() { java.lang.Object ref = productVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); productVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != null) { output.writeMessage(1, getId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, productId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, productVersion_); } if (phoneNumber_ != null) { output.writeMessage(4, getPhoneNumber()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, productId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productVersion_); } if (phoneNumber_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPhoneNumber()); } size += getUnknownFields().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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest)) { return super.equals(obj); } com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest other = (com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasPhoneNumber() != other.hasPhoneNumber()) return false; if (hasPhoneNumber()) { if (!getPhoneNumber() .equals(other.getPhoneNumber())) return false; } if (!getProductId() .equals(other.getProductId())) return false; if (!getProductVersion() .equals(other.getProductVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasPhoneNumber()) { hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); } hash = (37 * hash) + PRODUCT_ID_FIELD_NUMBER; hash = (53 * hash) + getProductId().hashCode(); hash = (37 * hash) + PRODUCT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getProductVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest 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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest 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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest 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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code wgtwo.consents.v0.CreateConsentForSubscriptionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wgtwo.consents.v0.CreateConsentForSubscriptionRequest) com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest.class, com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest.Builder.class); } // Construct using com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = null; if (idBuilder_ != null) { idBuilder_.dispose(); idBuilder_ = null; } phoneNumber_ = null; if (phoneNumberBuilder_ != null) { phoneNumberBuilder_.dispose(); phoneNumberBuilder_ = null; } productId_ = ""; productVersion_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionRequest_descriptor; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest getDefaultInstanceForType() { return com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest.getDefaultInstance(); } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest build() { com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest buildPartial() { com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest result = new com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = idBuilder_ == null ? id_ : idBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.phoneNumber_ = phoneNumberBuilder_ == null ? phoneNumber_ : phoneNumberBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.productId_ = productId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.productVersion_ = productVersion_; } } @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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest) { return mergeFrom((com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest other) { if (other == com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.hasPhoneNumber()) { mergePhoneNumber(other.getPhoneNumber()); } if (!other.getProductId().isEmpty()) { productId_ = other.productId_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getProductVersion().isEmpty()) { productVersion_ = other.productVersion_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { productId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 18 case 26: { productVersion_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getPhoneNumberFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier id_; private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder> idBuilder_; /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return The id. */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getId() { if (idBuilder_ == null) { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder setId(com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder setId( com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder mergeId(com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && id_ != null && id_ != com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance()) { getIdBuilder().mergeFrom(value); } else { id_ = value; } } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = null; if (idBuilder_ != null) { idBuilder_.dispose(); idBuilder_ = null; } onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder getIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdFieldBuilder().getBuilder(); } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber phoneNumber_; private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder> phoneNumberBuilder_; /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; * @return The phoneNumber. */ public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getPhoneNumber() { if (phoneNumberBuilder_ == null) { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } else { return phoneNumberBuilder_.getMessage(); } } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; */ public Builder setPhoneNumber(com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber value) { if (phoneNumberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } phoneNumber_ = value; } else { phoneNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; */ public Builder setPhoneNumber( com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder builderForValue) { if (phoneNumberBuilder_ == null) { phoneNumber_ = builderForValue.build(); } else { phoneNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; */ public Builder mergePhoneNumber(com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber value) { if (phoneNumberBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && phoneNumber_ != null && phoneNumber_ != com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance()) { getPhoneNumberBuilder().mergeFrom(value); } else { phoneNumber_ = value; } } else { phoneNumberBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; */ public Builder clearPhoneNumber() { bitField0_ = (bitField0_ & ~0x00000002); phoneNumber_ = null; if (phoneNumberBuilder_ != null) { phoneNumberBuilder_.dispose(); phoneNumberBuilder_ = null; } onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; */ public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder getPhoneNumberBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPhoneNumberFieldBuilder().getBuilder(); } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; */ public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder getPhoneNumberOrBuilder() { if (phoneNumberBuilder_ != null) { return phoneNumberBuilder_.getMessageOrBuilder(); } else { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder> getPhoneNumberFieldBuilder() { if (phoneNumberBuilder_ == null) { phoneNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder>( getPhoneNumber(), getParentForChildren(), isClean()); phoneNumber_ = null; } return phoneNumberBuilder_; } private java.lang.Object productId_ = ""; /** * string product_id = 2; * @return The productId. */ public java.lang.String getProductId() { java.lang.Object ref = productId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string product_id = 2; * @return The bytes for productId. */ public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); productId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string product_id = 2; * @param value The productId to set. * @return This builder for chaining. */ public Builder setProductId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } productId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string product_id = 2; * @return This builder for chaining. */ public Builder clearProductId() { productId_ = getDefaultInstance().getProductId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string product_id = 2; * @param value The bytes for productId to set. * @return This builder for chaining. */ public Builder setProductIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); productId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object productVersion_ = ""; /** * string product_version = 3; * @return The productVersion. */ public java.lang.String getProductVersion() { java.lang.Object ref = productVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * string product_version = 3; * @return The bytes for productVersion. */ public com.google.protobuf.ByteString getProductVersionBytes() { java.lang.Object ref = productVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); productVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string product_version = 3; * @param value The productVersion to set. * @return This builder for chaining. */ public Builder setProductVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } productVersion_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string product_version = 3; * @return This builder for chaining. */ public Builder clearProductVersion() { productVersion_ = getDefaultInstance().getProductVersion(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string product_version = 3; * @param value The bytes for productVersion to set. * @return This builder for chaining. */ public Builder setProductVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); productVersion_ = value; bitField0_ |= 0x00000008; 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:wgtwo.consents.v0.CreateConsentForSubscriptionRequest) } // @@protoc_insertion_point(class_scope:wgtwo.consents.v0.CreateConsentForSubscriptionRequest) private static final com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest(); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateConsentForSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateConsentForSubscriptionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:wgtwo.consents.v0.CreateConsentForSubscriptionResponse) com.google.protobuf.MessageOrBuilder { /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The enum numeric value on the wire for statusCode. */ int getStatusCodeValue(); /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The statusCode. */ com.wgtwo.api.v0.common.ErrorsProto.StatusCode getStatusCode(); /** * string error_message = 2; * @return The errorMessage. */ java.lang.String getErrorMessage(); /** * string error_message = 2; * @return The bytes for errorMessage. */ com.google.protobuf.ByteString getErrorMessageBytes(); } /** * Protobuf type {@code wgtwo.consents.v0.CreateConsentForSubscriptionResponse} */ public static final class CreateConsentForSubscriptionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wgtwo.consents.v0.CreateConsentForSubscriptionResponse) CreateConsentForSubscriptionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CreateConsentForSubscriptionResponse.newBuilder() to construct. private CreateConsentForSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateConsentForSubscriptionResponse() { statusCode_ = 0; errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateConsentForSubscriptionResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse.class, com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse.Builder.class); } public static final int STATUS_CODE_FIELD_NUMBER = 1; private int statusCode_ = 0; /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The enum numeric value on the wire for statusCode. */ @java.lang.Override public int getStatusCodeValue() { return statusCode_; } /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The statusCode. */ @java.lang.Override public com.wgtwo.api.v0.common.ErrorsProto.StatusCode getStatusCode() { com.wgtwo.api.v0.common.ErrorsProto.StatusCode result = com.wgtwo.api.v0.common.ErrorsProto.StatusCode.forNumber(statusCode_); return result == null ? com.wgtwo.api.v0.common.ErrorsProto.StatusCode.UNRECOGNIZED : result; } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** * string error_message = 2; * @return The errorMessage. */ @java.lang.Override public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; 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(); errorMessage_ = s; return s; } } /** * string error_message = 2; * @return The bytes for errorMessage. */ @java.lang.Override public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (statusCode_ != com.wgtwo.api.v0.common.ErrorsProto.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, statusCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (statusCode_ != com.wgtwo.api.v0.common.ErrorsProto.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, statusCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } size += getUnknownFields().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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse)) { return super.equals(obj); } com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse other = (com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse) obj; if (statusCode_ != other.statusCode_) return false; if (!getErrorMessage() .equals(other.getErrorMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER; hash = (53 * hash) + statusCode_; hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getErrorMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse 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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse 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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse 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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code wgtwo.consents.v0.CreateConsentForSubscriptionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wgtwo.consents.v0.CreateConsentForSubscriptionResponse) com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse.class, com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse.Builder.class); } // Construct using com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; statusCode_ = 0; errorMessage_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionResponse_descriptor; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse getDefaultInstanceForType() { return com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse.getDefaultInstance(); } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse build() { com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse buildPartial() { com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse result = new com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.statusCode_ = statusCode_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.errorMessage_ = errorMessage_; } } @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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse) { return mergeFrom((com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse other) { if (other == com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse.getDefaultInstance()) return this; if (other.statusCode_ != 0) { setStatusCodeValue(other.getStatusCodeValue()); } if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { statusCode_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { errorMessage_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int statusCode_ = 0; /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The enum numeric value on the wire for statusCode. */ @java.lang.Override public int getStatusCodeValue() { return statusCode_; } /** * .wgtwo.common.v0.StatusCode status_code = 1; * @param value The enum numeric value on the wire for statusCode to set. * @return This builder for chaining. */ public Builder setStatusCodeValue(int value) { statusCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The statusCode. */ @java.lang.Override public com.wgtwo.api.v0.common.ErrorsProto.StatusCode getStatusCode() { com.wgtwo.api.v0.common.ErrorsProto.StatusCode result = com.wgtwo.api.v0.common.ErrorsProto.StatusCode.forNumber(statusCode_); return result == null ? com.wgtwo.api.v0.common.ErrorsProto.StatusCode.UNRECOGNIZED : result; } /** * .wgtwo.common.v0.StatusCode status_code = 1; * @param value The statusCode to set. * @return This builder for chaining. */ public Builder setStatusCode(com.wgtwo.api.v0.common.ErrorsProto.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; statusCode_ = value.getNumber(); onChanged(); return this; } /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return This builder for chaining. */ public Builder clearStatusCode() { bitField0_ = (bitField0_ & ~0x00000001); statusCode_ = 0; onChanged(); return this; } private java.lang.Object errorMessage_ = ""; /** * string error_message = 2; * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error_message = 2; * @return The bytes for errorMessage. */ public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error_message = 2; * @param value The errorMessage to set. * @return This builder for chaining. */ public Builder setErrorMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } errorMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string error_message = 2; * @return This builder for chaining. */ public Builder clearErrorMessage() { errorMessage_ = getDefaultInstance().getErrorMessage(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string error_message = 2; * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ public Builder setErrorMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000002; 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:wgtwo.consents.v0.CreateConsentForSubscriptionResponse) } // @@protoc_insertion_point(class_scope:wgtwo.consents.v0.CreateConsentForSubscriptionResponse) private static final com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse(); } public static com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateConsentForSubscriptionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RevokeConsentForSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:wgtwo.consents.v0.RevokeConsentForSubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return Whether the id field is set. */ boolean hasId(); /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return The id. */ com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getId(); /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getIdOrBuilder(); /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; * @return Whether the phoneNumber field is set. */ boolean hasPhoneNumber(); /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; * @return The phoneNumber. */ com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getPhoneNumber(); /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; */ com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder getPhoneNumberOrBuilder(); /** * string product_id = 2; * @return The productId. */ java.lang.String getProductId(); /** * string product_id = 2; * @return The bytes for productId. */ com.google.protobuf.ByteString getProductIdBytes(); } /** * Protobuf type {@code wgtwo.consents.v0.RevokeConsentForSubscriptionRequest} */ public static final class RevokeConsentForSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wgtwo.consents.v0.RevokeConsentForSubscriptionRequest) RevokeConsentForSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RevokeConsentForSubscriptionRequest.newBuilder() to construct. private RevokeConsentForSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RevokeConsentForSubscriptionRequest() { productId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RevokeConsentForSubscriptionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest.class, com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier id_; /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return id_ != null; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return The id. */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getId() { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getIdOrBuilder() { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } public static final int PHONE_NUMBER_FIELD_NUMBER = 3; private com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber phoneNumber_; /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; * @return Whether the phoneNumber field is set. */ @java.lang.Override public boolean hasPhoneNumber() { return phoneNumber_ != null; } /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; * @return The phoneNumber. */ @java.lang.Override public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getPhoneNumber() { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } /** *
     * TODO to be removed
     * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; */ @java.lang.Override public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder getPhoneNumberOrBuilder() { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } public static final int PRODUCT_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object productId_ = ""; /** * string product_id = 2; * @return The productId. */ @java.lang.Override public java.lang.String getProductId() { java.lang.Object ref = productId_; 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(); productId_ = s; return s; } } /** * string product_id = 2; * @return The bytes for productId. */ @java.lang.Override public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); productId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != null) { output.writeMessage(1, getId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, productId_); } if (phoneNumber_ != null) { output.writeMessage(3, getPhoneNumber()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, productId_); } if (phoneNumber_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPhoneNumber()); } size += getUnknownFields().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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest)) { return super.equals(obj); } com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest other = (com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasPhoneNumber() != other.hasPhoneNumber()) return false; if (hasPhoneNumber()) { if (!getPhoneNumber() .equals(other.getPhoneNumber())) return false; } if (!getProductId() .equals(other.getProductId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasPhoneNumber()) { hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); } hash = (37 * hash) + PRODUCT_ID_FIELD_NUMBER; hash = (53 * hash) + getProductId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest 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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest 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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest 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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code wgtwo.consents.v0.RevokeConsentForSubscriptionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wgtwo.consents.v0.RevokeConsentForSubscriptionRequest) com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest.class, com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest.Builder.class); } // Construct using com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = null; if (idBuilder_ != null) { idBuilder_.dispose(); idBuilder_ = null; } phoneNumber_ = null; if (phoneNumberBuilder_ != null) { phoneNumberBuilder_.dispose(); phoneNumberBuilder_ = null; } productId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionRequest_descriptor; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest getDefaultInstanceForType() { return com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest.getDefaultInstance(); } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest build() { com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest buildPartial() { com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest result = new com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = idBuilder_ == null ? id_ : idBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.phoneNumber_ = phoneNumberBuilder_ == null ? phoneNumber_ : phoneNumberBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.productId_ = productId_; } } @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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest) { return mergeFrom((com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest other) { if (other == com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.hasPhoneNumber()) { mergePhoneNumber(other.getPhoneNumber()); } if (!other.getProductId().isEmpty()) { productId_ = other.productId_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { productId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( getPhoneNumberFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier id_; private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder> idBuilder_; /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; * @return The id. */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getId() { if (idBuilder_ == null) { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder setId(com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder setId( com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder mergeId(com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && id_ != null && id_ != com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance()) { getIdBuilder().mergeFrom(value); } else { id_ = value; } } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = null; if (idBuilder_ != null) { idBuilder_.dispose(); idBuilder_ = null; } onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder getIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdFieldBuilder().getBuilder(); } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : id_; } } /** * .wgtwo.common.v0.SubscriptionIdentifier id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber phoneNumber_; private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder> phoneNumberBuilder_; /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; * @return The phoneNumber. */ public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getPhoneNumber() { if (phoneNumberBuilder_ == null) { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } else { return phoneNumberBuilder_.getMessage(); } } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; */ public Builder setPhoneNumber(com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber value) { if (phoneNumberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } phoneNumber_ = value; } else { phoneNumberBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; */ public Builder setPhoneNumber( com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder builderForValue) { if (phoneNumberBuilder_ == null) { phoneNumber_ = builderForValue.build(); } else { phoneNumberBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; */ public Builder mergePhoneNumber(com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber value) { if (phoneNumberBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && phoneNumber_ != null && phoneNumber_ != com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance()) { getPhoneNumberBuilder().mergeFrom(value); } else { phoneNumber_ = value; } } else { phoneNumberBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; */ public Builder clearPhoneNumber() { bitField0_ = (bitField0_ & ~0x00000002); phoneNumber_ = null; if (phoneNumberBuilder_ != null) { phoneNumberBuilder_.dispose(); phoneNumberBuilder_ = null; } onChanged(); return this; } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; */ public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder getPhoneNumberBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPhoneNumberFieldBuilder().getBuilder(); } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; */ public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder getPhoneNumberOrBuilder() { if (phoneNumberBuilder_ != null) { return phoneNumberBuilder_.getMessageOrBuilder(); } else { return phoneNumber_ == null ? com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance() : phoneNumber_; } } /** *
       * TODO to be removed
       * 
* * .wgtwo.common.v0.PhoneNumber phone_number = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder> getPhoneNumberFieldBuilder() { if (phoneNumberBuilder_ == null) { phoneNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder>( getPhoneNumber(), getParentForChildren(), isClean()); phoneNumber_ = null; } return phoneNumberBuilder_; } private java.lang.Object productId_ = ""; /** * string product_id = 2; * @return The productId. */ public java.lang.String getProductId() { java.lang.Object ref = productId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string product_id = 2; * @return The bytes for productId. */ public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); productId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string product_id = 2; * @param value The productId to set. * @return This builder for chaining. */ public Builder setProductId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } productId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string product_id = 2; * @return This builder for chaining. */ public Builder clearProductId() { productId_ = getDefaultInstance().getProductId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string product_id = 2; * @param value The bytes for productId to set. * @return This builder for chaining. */ public Builder setProductIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); productId_ = value; bitField0_ |= 0x00000004; 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:wgtwo.consents.v0.RevokeConsentForSubscriptionRequest) } // @@protoc_insertion_point(class_scope:wgtwo.consents.v0.RevokeConsentForSubscriptionRequest) private static final com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest(); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RevokeConsentForSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RevokeConsentForSubscriptionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:wgtwo.consents.v0.RevokeConsentForSubscriptionResponse) com.google.protobuf.MessageOrBuilder { /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The enum numeric value on the wire for statusCode. */ int getStatusCodeValue(); /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The statusCode. */ com.wgtwo.api.v0.common.ErrorsProto.StatusCode getStatusCode(); /** * string error_message = 2; * @return The errorMessage. */ java.lang.String getErrorMessage(); /** * string error_message = 2; * @return The bytes for errorMessage. */ com.google.protobuf.ByteString getErrorMessageBytes(); } /** * Protobuf type {@code wgtwo.consents.v0.RevokeConsentForSubscriptionResponse} */ public static final class RevokeConsentForSubscriptionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wgtwo.consents.v0.RevokeConsentForSubscriptionResponse) RevokeConsentForSubscriptionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RevokeConsentForSubscriptionResponse.newBuilder() to construct. private RevokeConsentForSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RevokeConsentForSubscriptionResponse() { statusCode_ = 0; errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RevokeConsentForSubscriptionResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse.class, com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse.Builder.class); } public static final int STATUS_CODE_FIELD_NUMBER = 1; private int statusCode_ = 0; /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The enum numeric value on the wire for statusCode. */ @java.lang.Override public int getStatusCodeValue() { return statusCode_; } /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The statusCode. */ @java.lang.Override public com.wgtwo.api.v0.common.ErrorsProto.StatusCode getStatusCode() { com.wgtwo.api.v0.common.ErrorsProto.StatusCode result = com.wgtwo.api.v0.common.ErrorsProto.StatusCode.forNumber(statusCode_); return result == null ? com.wgtwo.api.v0.common.ErrorsProto.StatusCode.UNRECOGNIZED : result; } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** * string error_message = 2; * @return The errorMessage. */ @java.lang.Override public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; 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(); errorMessage_ = s; return s; } } /** * string error_message = 2; * @return The bytes for errorMessage. */ @java.lang.Override public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (statusCode_ != com.wgtwo.api.v0.common.ErrorsProto.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, statusCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (statusCode_ != com.wgtwo.api.v0.common.ErrorsProto.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, statusCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } size += getUnknownFields().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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse)) { return super.equals(obj); } com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse other = (com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse) obj; if (statusCode_ != other.statusCode_) return false; if (!getErrorMessage() .equals(other.getErrorMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER; hash = (53 * hash) + statusCode_; hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getErrorMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse 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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse 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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse 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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code wgtwo.consents.v0.RevokeConsentForSubscriptionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wgtwo.consents.v0.RevokeConsentForSubscriptionResponse) com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse.class, com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse.Builder.class); } // Construct using com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; statusCode_ = 0; errorMessage_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionResponse_descriptor; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse getDefaultInstanceForType() { return com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse.getDefaultInstance(); } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse build() { com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse buildPartial() { com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse result = new com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.statusCode_ = statusCode_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.errorMessage_ = errorMessage_; } } @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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse) { return mergeFrom((com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse other) { if (other == com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse.getDefaultInstance()) return this; if (other.statusCode_ != 0) { setStatusCodeValue(other.getStatusCodeValue()); } if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { statusCode_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { errorMessage_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int statusCode_ = 0; /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The enum numeric value on the wire for statusCode. */ @java.lang.Override public int getStatusCodeValue() { return statusCode_; } /** * .wgtwo.common.v0.StatusCode status_code = 1; * @param value The enum numeric value on the wire for statusCode to set. * @return This builder for chaining. */ public Builder setStatusCodeValue(int value) { statusCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return The statusCode. */ @java.lang.Override public com.wgtwo.api.v0.common.ErrorsProto.StatusCode getStatusCode() { com.wgtwo.api.v0.common.ErrorsProto.StatusCode result = com.wgtwo.api.v0.common.ErrorsProto.StatusCode.forNumber(statusCode_); return result == null ? com.wgtwo.api.v0.common.ErrorsProto.StatusCode.UNRECOGNIZED : result; } /** * .wgtwo.common.v0.StatusCode status_code = 1; * @param value The statusCode to set. * @return This builder for chaining. */ public Builder setStatusCode(com.wgtwo.api.v0.common.ErrorsProto.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; statusCode_ = value.getNumber(); onChanged(); return this; } /** * .wgtwo.common.v0.StatusCode status_code = 1; * @return This builder for chaining. */ public Builder clearStatusCode() { bitField0_ = (bitField0_ & ~0x00000001); statusCode_ = 0; onChanged(); return this; } private java.lang.Object errorMessage_ = ""; /** * string error_message = 2; * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error_message = 2; * @return The bytes for errorMessage. */ public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error_message = 2; * @param value The errorMessage to set. * @return This builder for chaining. */ public Builder setErrorMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } errorMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string error_message = 2; * @return This builder for chaining. */ public Builder clearErrorMessage() { errorMessage_ = getDefaultInstance().getErrorMessage(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string error_message = 2; * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ public Builder setErrorMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000002; 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:wgtwo.consents.v0.RevokeConsentForSubscriptionResponse) } // @@protoc_insertion_point(class_scope:wgtwo.consents.v0.RevokeConsentForSubscriptionResponse) private static final com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse(); } public static com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RevokeConsentForSubscriptionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsentOrBuilder extends // @@protoc_insertion_point(interface_extends:wgtwo.consents.v0.Consent) com.google.protobuf.MessageOrBuilder { /** * .wgtwo.consents.v0.ConsentOwner owner = 1; * @return Whether the owner field is set. */ boolean hasOwner(); /** * .wgtwo.consents.v0.ConsentOwner owner = 1; * @return The owner. */ com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner getOwner(); /** * .wgtwo.consents.v0.ConsentOwner owner = 1; */ com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwnerOrBuilder getOwnerOrBuilder(); /** * string product_id = 2; * @return The productId. */ java.lang.String getProductId(); /** * string product_id = 2; * @return The bytes for productId. */ com.google.protobuf.ByteString getProductIdBytes(); /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ java.util.List getScopesList(); /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ com.wgtwo.api.v0.consent.ConsentsProto.Scope getScopes(int index); /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ int getScopesCount(); /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ java.util.List getScopesOrBuilderList(); /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ com.wgtwo.api.v0.consent.ConsentsProto.ScopeOrBuilder getScopesOrBuilder( int index); /** * bool revokable = 4; * @return The revokable. */ boolean getRevokable(); } /** * Protobuf type {@code wgtwo.consents.v0.Consent} */ public static final class Consent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wgtwo.consents.v0.Consent) ConsentOrBuilder { private static final long serialVersionUID = 0L; // Use Consent.newBuilder() to construct. private Consent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Consent() { productId_ = ""; scopes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Consent(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Consent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Consent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.Consent.class, com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder.class); } public static final int OWNER_FIELD_NUMBER = 1; private com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner owner_; /** * .wgtwo.consents.v0.ConsentOwner owner = 1; * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return owner_ != null; } /** * .wgtwo.consents.v0.ConsentOwner owner = 1; * @return The owner. */ @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner getOwner() { return owner_ == null ? com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.getDefaultInstance() : owner_; } /** * .wgtwo.consents.v0.ConsentOwner owner = 1; */ @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwnerOrBuilder getOwnerOrBuilder() { return owner_ == null ? com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.getDefaultInstance() : owner_; } public static final int PRODUCT_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object productId_ = ""; /** * string product_id = 2; * @return The productId. */ @java.lang.Override public java.lang.String getProductId() { java.lang.Object ref = productId_; 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(); productId_ = s; return s; } } /** * string product_id = 2; * @return The bytes for productId. */ @java.lang.Override public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); productId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCOPES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List scopes_; /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ @java.lang.Override public java.util.List getScopesList() { return scopes_; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ @java.lang.Override public java.util.List getScopesOrBuilderList() { return scopes_; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ @java.lang.Override public int getScopesCount() { return scopes_.size(); } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Scope getScopes(int index) { return scopes_.get(index); } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.ScopeOrBuilder getScopesOrBuilder( int index) { return scopes_.get(index); } public static final int REVOKABLE_FIELD_NUMBER = 4; private boolean revokable_ = false; /** * bool revokable = 4; * @return The revokable. */ @java.lang.Override public boolean getRevokable() { return revokable_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (owner_ != null) { output.writeMessage(1, getOwner()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, productId_); } for (int i = 0; i < scopes_.size(); i++) { output.writeMessage(3, scopes_.get(i)); } if (revokable_ != false) { output.writeBool(4, revokable_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (owner_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOwner()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, productId_); } for (int i = 0; i < scopes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, scopes_.get(i)); } if (revokable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, revokable_); } size += getUnknownFields().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.wgtwo.api.v0.consent.ConsentsProto.Consent)) { return super.equals(obj); } com.wgtwo.api.v0.consent.ConsentsProto.Consent other = (com.wgtwo.api.v0.consent.ConsentsProto.Consent) obj; if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { if (!getOwner() .equals(other.getOwner())) return false; } if (!getProductId() .equals(other.getProductId())) return false; if (!getScopesList() .equals(other.getScopesList())) return false; if (getRevokable() != other.getRevokable()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); } hash = (37 * hash) + PRODUCT_ID_FIELD_NUMBER; hash = (53 * hash) + getProductId().hashCode(); if (getScopesCount() > 0) { hash = (37 * hash) + SCOPES_FIELD_NUMBER; hash = (53 * hash) + getScopesList().hashCode(); } hash = (37 * hash) + REVOKABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRevokable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent 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.wgtwo.api.v0.consent.ConsentsProto.Consent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent 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.wgtwo.api.v0.consent.ConsentsProto.Consent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent 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.wgtwo.api.v0.consent.ConsentsProto.Consent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code wgtwo.consents.v0.Consent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wgtwo.consents.v0.Consent) com.wgtwo.api.v0.consent.ConsentsProto.ConsentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Consent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Consent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.Consent.class, com.wgtwo.api.v0.consent.ConsentsProto.Consent.Builder.class); } // Construct using com.wgtwo.api.v0.consent.ConsentsProto.Consent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; owner_ = null; if (ownerBuilder_ != null) { ownerBuilder_.dispose(); ownerBuilder_ = null; } productId_ = ""; if (scopesBuilder_ == null) { scopes_ = java.util.Collections.emptyList(); } else { scopes_ = null; scopesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); revokable_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Consent_descriptor; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Consent getDefaultInstanceForType() { return com.wgtwo.api.v0.consent.ConsentsProto.Consent.getDefaultInstance(); } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Consent build() { com.wgtwo.api.v0.consent.ConsentsProto.Consent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Consent buildPartial() { com.wgtwo.api.v0.consent.ConsentsProto.Consent result = new com.wgtwo.api.v0.consent.ConsentsProto.Consent(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.wgtwo.api.v0.consent.ConsentsProto.Consent result) { if (scopesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { scopes_ = java.util.Collections.unmodifiableList(scopes_); bitField0_ = (bitField0_ & ~0x00000004); } result.scopes_ = scopes_; } else { result.scopes_ = scopesBuilder_.build(); } } private void buildPartial0(com.wgtwo.api.v0.consent.ConsentsProto.Consent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.productId_ = productId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.revokable_ = revokable_; } } @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.wgtwo.api.v0.consent.ConsentsProto.Consent) { return mergeFrom((com.wgtwo.api.v0.consent.ConsentsProto.Consent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wgtwo.api.v0.consent.ConsentsProto.Consent other) { if (other == com.wgtwo.api.v0.consent.ConsentsProto.Consent.getDefaultInstance()) return this; if (other.hasOwner()) { mergeOwner(other.getOwner()); } if (!other.getProductId().isEmpty()) { productId_ = other.productId_; bitField0_ |= 0x00000002; onChanged(); } if (scopesBuilder_ == null) { if (!other.scopes_.isEmpty()) { if (scopes_.isEmpty()) { scopes_ = other.scopes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureScopesIsMutable(); scopes_.addAll(other.scopes_); } onChanged(); } } else { if (!other.scopes_.isEmpty()) { if (scopesBuilder_.isEmpty()) { scopesBuilder_.dispose(); scopesBuilder_ = null; scopes_ = other.scopes_; bitField0_ = (bitField0_ & ~0x00000004); scopesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getScopesFieldBuilder() : null; } else { scopesBuilder_.addAllMessages(other.scopes_); } } } if (other.getRevokable() != false) { setRevokable(other.getRevokable()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOwnerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { productId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.wgtwo.api.v0.consent.ConsentsProto.Scope m = input.readMessage( com.wgtwo.api.v0.consent.ConsentsProto.Scope.parser(), extensionRegistry); if (scopesBuilder_ == null) { ensureScopesIsMutable(); scopes_.add(m); } else { scopesBuilder_.addMessage(m); } break; } // case 26 case 32: { revokable_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner owner_; private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.Builder, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwnerOrBuilder> ownerBuilder_; /** * .wgtwo.consents.v0.ConsentOwner owner = 1; * @return Whether the owner field is set. */ public boolean hasOwner() { return ((bitField0_ & 0x00000001) != 0); } /** * .wgtwo.consents.v0.ConsentOwner owner = 1; * @return The owner. */ public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner getOwner() { if (ownerBuilder_ == null) { return owner_ == null ? com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.getDefaultInstance() : owner_; } else { return ownerBuilder_.getMessage(); } } /** * .wgtwo.consents.v0.ConsentOwner owner = 1; */ public Builder setOwner(com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner value) { if (ownerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } owner_ = value; } else { ownerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.consents.v0.ConsentOwner owner = 1; */ public Builder setOwner( com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.Builder builderForValue) { if (ownerBuilder_ == null) { owner_ = builderForValue.build(); } else { ownerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.consents.v0.ConsentOwner owner = 1; */ public Builder mergeOwner(com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner value) { if (ownerBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && owner_ != null && owner_ != com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.getDefaultInstance()) { getOwnerBuilder().mergeFrom(value); } else { owner_ = value; } } else { ownerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.consents.v0.ConsentOwner owner = 1; */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000001); owner_ = null; if (ownerBuilder_ != null) { ownerBuilder_.dispose(); ownerBuilder_ = null; } onChanged(); return this; } /** * .wgtwo.consents.v0.ConsentOwner owner = 1; */ public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.Builder getOwnerBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOwnerFieldBuilder().getBuilder(); } /** * .wgtwo.consents.v0.ConsentOwner owner = 1; */ public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwnerOrBuilder getOwnerOrBuilder() { if (ownerBuilder_ != null) { return ownerBuilder_.getMessageOrBuilder(); } else { return owner_ == null ? com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.getDefaultInstance() : owner_; } } /** * .wgtwo.consents.v0.ConsentOwner owner = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.Builder, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwnerOrBuilder> getOwnerFieldBuilder() { if (ownerBuilder_ == null) { ownerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.Builder, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwnerOrBuilder>( getOwner(), getParentForChildren(), isClean()); owner_ = null; } return ownerBuilder_; } private java.lang.Object productId_ = ""; /** * string product_id = 2; * @return The productId. */ public java.lang.String getProductId() { java.lang.Object ref = productId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); productId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string product_id = 2; * @return The bytes for productId. */ public com.google.protobuf.ByteString getProductIdBytes() { java.lang.Object ref = productId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); productId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string product_id = 2; * @param value The productId to set. * @return This builder for chaining. */ public Builder setProductId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } productId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string product_id = 2; * @return This builder for chaining. */ public Builder clearProductId() { productId_ = getDefaultInstance().getProductId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string product_id = 2; * @param value The bytes for productId to set. * @return This builder for chaining. */ public Builder setProductIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); productId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List scopes_ = java.util.Collections.emptyList(); private void ensureScopesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { scopes_ = new java.util.ArrayList(scopes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.Scope, com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder, com.wgtwo.api.v0.consent.ConsentsProto.ScopeOrBuilder> scopesBuilder_; /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public java.util.List getScopesList() { if (scopesBuilder_ == null) { return java.util.Collections.unmodifiableList(scopes_); } else { return scopesBuilder_.getMessageList(); } } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public int getScopesCount() { if (scopesBuilder_ == null) { return scopes_.size(); } else { return scopesBuilder_.getCount(); } } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public com.wgtwo.api.v0.consent.ConsentsProto.Scope getScopes(int index) { if (scopesBuilder_ == null) { return scopes_.get(index); } else { return scopesBuilder_.getMessage(index); } } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public Builder setScopes( int index, com.wgtwo.api.v0.consent.ConsentsProto.Scope value) { if (scopesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.set(index, value); onChanged(); } else { scopesBuilder_.setMessage(index, value); } return this; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public Builder setScopes( int index, com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder builderForValue) { if (scopesBuilder_ == null) { ensureScopesIsMutable(); scopes_.set(index, builderForValue.build()); onChanged(); } else { scopesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public Builder addScopes(com.wgtwo.api.v0.consent.ConsentsProto.Scope value) { if (scopesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.add(value); onChanged(); } else { scopesBuilder_.addMessage(value); } return this; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public Builder addScopes( int index, com.wgtwo.api.v0.consent.ConsentsProto.Scope value) { if (scopesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.add(index, value); onChanged(); } else { scopesBuilder_.addMessage(index, value); } return this; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public Builder addScopes( com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder builderForValue) { if (scopesBuilder_ == null) { ensureScopesIsMutable(); scopes_.add(builderForValue.build()); onChanged(); } else { scopesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public Builder addScopes( int index, com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder builderForValue) { if (scopesBuilder_ == null) { ensureScopesIsMutable(); scopes_.add(index, builderForValue.build()); onChanged(); } else { scopesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public Builder addAllScopes( java.lang.Iterable values) { if (scopesBuilder_ == null) { ensureScopesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scopes_); onChanged(); } else { scopesBuilder_.addAllMessages(values); } return this; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public Builder clearScopes() { if (scopesBuilder_ == null) { scopes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { scopesBuilder_.clear(); } return this; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public Builder removeScopes(int index) { if (scopesBuilder_ == null) { ensureScopesIsMutable(); scopes_.remove(index); onChanged(); } else { scopesBuilder_.remove(index); } return this; } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder getScopesBuilder( int index) { return getScopesFieldBuilder().getBuilder(index); } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public com.wgtwo.api.v0.consent.ConsentsProto.ScopeOrBuilder getScopesOrBuilder( int index) { if (scopesBuilder_ == null) { return scopes_.get(index); } else { return scopesBuilder_.getMessageOrBuilder(index); } } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public java.util.List getScopesOrBuilderList() { if (scopesBuilder_ != null) { return scopesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(scopes_); } } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder addScopesBuilder() { return getScopesFieldBuilder().addBuilder( com.wgtwo.api.v0.consent.ConsentsProto.Scope.getDefaultInstance()); } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder addScopesBuilder( int index) { return getScopesFieldBuilder().addBuilder( index, com.wgtwo.api.v0.consent.ConsentsProto.Scope.getDefaultInstance()); } /** * repeated .wgtwo.consents.v0.Scope scopes = 3; */ public java.util.List getScopesBuilderList() { return getScopesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.Scope, com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder, com.wgtwo.api.v0.consent.ConsentsProto.ScopeOrBuilder> getScopesFieldBuilder() { if (scopesBuilder_ == null) { scopesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.Scope, com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder, com.wgtwo.api.v0.consent.ConsentsProto.ScopeOrBuilder>( scopes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); scopes_ = null; } return scopesBuilder_; } private boolean revokable_ ; /** * bool revokable = 4; * @return The revokable. */ @java.lang.Override public boolean getRevokable() { return revokable_; } /** * bool revokable = 4; * @param value The revokable to set. * @return This builder for chaining. */ public Builder setRevokable(boolean value) { revokable_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bool revokable = 4; * @return This builder for chaining. */ public Builder clearRevokable() { bitField0_ = (bitField0_ & ~0x00000008); revokable_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:wgtwo.consents.v0.Consent) } // @@protoc_insertion_point(class_scope:wgtwo.consents.v0.Consent) private static final com.wgtwo.api.v0.consent.ConsentsProto.Consent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wgtwo.api.v0.consent.ConsentsProto.Consent(); } public static com.wgtwo.api.v0.consent.ConsentsProto.Consent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Consent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.wgtwo.api.v0.consent.ConsentsProto.Consent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsentOwnerOrBuilder extends // @@protoc_insertion_point(interface_extends:wgtwo.consents.v0.ConsentOwner) com.google.protobuf.MessageOrBuilder { /** * .wgtwo.consents.v0.Subscription subscription = 1; * @return Whether the subscription field is set. */ boolean hasSubscription(); /** * .wgtwo.consents.v0.Subscription subscription = 1; * @return The subscription. */ com.wgtwo.api.v0.consent.ConsentsProto.Subscription getSubscription(); /** * .wgtwo.consents.v0.Subscription subscription = 1; */ com.wgtwo.api.v0.consent.ConsentsProto.SubscriptionOrBuilder getSubscriptionOrBuilder(); /** * .wgtwo.common.v0.Tenant tenant = 2; * @return Whether the tenant field is set. */ boolean hasTenant(); /** * .wgtwo.common.v0.Tenant tenant = 2; * @return The tenant. */ com.wgtwo.api.v0.common.TypesProto.Tenant getTenant(); /** * .wgtwo.common.v0.Tenant tenant = 2; */ com.wgtwo.api.v0.common.TypesProto.TenantOrBuilder getTenantOrBuilder(); public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.ValueCase getValueCase(); } /** * Protobuf type {@code wgtwo.consents.v0.ConsentOwner} */ public static final class ConsentOwner extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wgtwo.consents.v0.ConsentOwner) ConsentOwnerOrBuilder { private static final long serialVersionUID = 0L; // Use ConsentOwner.newBuilder() to construct. private ConsentOwner(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConsentOwner() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConsentOwner(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_ConsentOwner_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_ConsentOwner_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.class, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.Builder.class); } private int valueCase_ = 0; private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SUBSCRIPTION(1), TENANT(2), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return SUBSCRIPTION; case 2: return TENANT; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; /** * .wgtwo.consents.v0.Subscription subscription = 1; * @return Whether the subscription field is set. */ @java.lang.Override public boolean hasSubscription() { return valueCase_ == 1; } /** * .wgtwo.consents.v0.Subscription subscription = 1; * @return The subscription. */ @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Subscription getSubscription() { if (valueCase_ == 1) { return (com.wgtwo.api.v0.consent.ConsentsProto.Subscription) value_; } return com.wgtwo.api.v0.consent.ConsentsProto.Subscription.getDefaultInstance(); } /** * .wgtwo.consents.v0.Subscription subscription = 1; */ @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (valueCase_ == 1) { return (com.wgtwo.api.v0.consent.ConsentsProto.Subscription) value_; } return com.wgtwo.api.v0.consent.ConsentsProto.Subscription.getDefaultInstance(); } public static final int TENANT_FIELD_NUMBER = 2; /** * .wgtwo.common.v0.Tenant tenant = 2; * @return Whether the tenant field is set. */ @java.lang.Override public boolean hasTenant() { return valueCase_ == 2; } /** * .wgtwo.common.v0.Tenant tenant = 2; * @return The tenant. */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.Tenant getTenant() { if (valueCase_ == 2) { return (com.wgtwo.api.v0.common.TypesProto.Tenant) value_; } return com.wgtwo.api.v0.common.TypesProto.Tenant.getDefaultInstance(); } /** * .wgtwo.common.v0.Tenant tenant = 2; */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.TenantOrBuilder getTenantOrBuilder() { if (valueCase_ == 2) { return (com.wgtwo.api.v0.common.TypesProto.Tenant) value_; } return com.wgtwo.api.v0.common.TypesProto.Tenant.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { output.writeMessage(1, (com.wgtwo.api.v0.consent.ConsentsProto.Subscription) value_); } if (valueCase_ == 2) { output.writeMessage(2, (com.wgtwo.api.v0.common.TypesProto.Tenant) value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.wgtwo.api.v0.consent.ConsentsProto.Subscription) value_); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.wgtwo.api.v0.common.TypesProto.Tenant) value_); } size += getUnknownFields().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.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner)) { return super.equals(obj); } com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner other = (com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: if (!getSubscription() .equals(other.getSubscription())) return false; break; case 2: if (!getTenant() .equals(other.getTenant())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (valueCase_) { case 1: hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); break; case 2: hash = (37 * hash) + TENANT_FIELD_NUMBER; hash = (53 * hash) + getTenant().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner 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.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner 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.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner 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.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code wgtwo.consents.v0.ConsentOwner} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wgtwo.consents.v0.ConsentOwner) com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwnerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_ConsentOwner_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_ConsentOwner_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.class, com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.Builder.class); } // Construct using com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (subscriptionBuilder_ != null) { subscriptionBuilder_.clear(); } if (tenantBuilder_ != null) { tenantBuilder_.clear(); } valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_ConsentOwner_descriptor; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner getDefaultInstanceForType() { return com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.getDefaultInstance(); } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner build() { com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner buildPartial() { com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner result = new com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner result) { result.valueCase_ = valueCase_; result.value_ = this.value_; if (valueCase_ == 1 && subscriptionBuilder_ != null) { result.value_ = subscriptionBuilder_.build(); } if (valueCase_ == 2 && tenantBuilder_ != null) { result.value_ = tenantBuilder_.build(); } } @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.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner) { return mergeFrom((com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner other) { if (other == com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner.getDefaultInstance()) return this; switch (other.getValueCase()) { case SUBSCRIPTION: { mergeSubscription(other.getSubscription()); break; } case TENANT: { mergeTenant(other.getTenant()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 1; break; } // case 10 case 18: { input.readMessage( getTenantFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 2; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.Subscription, com.wgtwo.api.v0.consent.ConsentsProto.Subscription.Builder, com.wgtwo.api.v0.consent.ConsentsProto.SubscriptionOrBuilder> subscriptionBuilder_; /** * .wgtwo.consents.v0.Subscription subscription = 1; * @return Whether the subscription field is set. */ @java.lang.Override public boolean hasSubscription() { return valueCase_ == 1; } /** * .wgtwo.consents.v0.Subscription subscription = 1; * @return The subscription. */ @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Subscription getSubscription() { if (subscriptionBuilder_ == null) { if (valueCase_ == 1) { return (com.wgtwo.api.v0.consent.ConsentsProto.Subscription) value_; } return com.wgtwo.api.v0.consent.ConsentsProto.Subscription.getDefaultInstance(); } else { if (valueCase_ == 1) { return subscriptionBuilder_.getMessage(); } return com.wgtwo.api.v0.consent.ConsentsProto.Subscription.getDefaultInstance(); } } /** * .wgtwo.consents.v0.Subscription subscription = 1; */ public Builder setSubscription(com.wgtwo.api.v0.consent.ConsentsProto.Subscription value) { if (subscriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { subscriptionBuilder_.setMessage(value); } valueCase_ = 1; return this; } /** * .wgtwo.consents.v0.Subscription subscription = 1; */ public Builder setSubscription( com.wgtwo.api.v0.consent.ConsentsProto.Subscription.Builder builderForValue) { if (subscriptionBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { subscriptionBuilder_.setMessage(builderForValue.build()); } valueCase_ = 1; return this; } /** * .wgtwo.consents.v0.Subscription subscription = 1; */ public Builder mergeSubscription(com.wgtwo.api.v0.consent.ConsentsProto.Subscription value) { if (subscriptionBuilder_ == null) { if (valueCase_ == 1 && value_ != com.wgtwo.api.v0.consent.ConsentsProto.Subscription.getDefaultInstance()) { value_ = com.wgtwo.api.v0.consent.ConsentsProto.Subscription.newBuilder((com.wgtwo.api.v0.consent.ConsentsProto.Subscription) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 1) { subscriptionBuilder_.mergeFrom(value); } else { subscriptionBuilder_.setMessage(value); } } valueCase_ = 1; return this; } /** * .wgtwo.consents.v0.Subscription subscription = 1; */ public Builder clearSubscription() { if (subscriptionBuilder_ == null) { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; } subscriptionBuilder_.clear(); } return this; } /** * .wgtwo.consents.v0.Subscription subscription = 1; */ public com.wgtwo.api.v0.consent.ConsentsProto.Subscription.Builder getSubscriptionBuilder() { return getSubscriptionFieldBuilder().getBuilder(); } /** * .wgtwo.consents.v0.Subscription subscription = 1; */ @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.SubscriptionOrBuilder getSubscriptionOrBuilder() { if ((valueCase_ == 1) && (subscriptionBuilder_ != null)) { return subscriptionBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 1) { return (com.wgtwo.api.v0.consent.ConsentsProto.Subscription) value_; } return com.wgtwo.api.v0.consent.ConsentsProto.Subscription.getDefaultInstance(); } } /** * .wgtwo.consents.v0.Subscription subscription = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.Subscription, com.wgtwo.api.v0.consent.ConsentsProto.Subscription.Builder, com.wgtwo.api.v0.consent.ConsentsProto.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { if (!(valueCase_ == 1)) { value_ = com.wgtwo.api.v0.consent.ConsentsProto.Subscription.getDefaultInstance(); } subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.consent.ConsentsProto.Subscription, com.wgtwo.api.v0.consent.ConsentsProto.Subscription.Builder, com.wgtwo.api.v0.consent.ConsentsProto.SubscriptionOrBuilder>( (com.wgtwo.api.v0.consent.ConsentsProto.Subscription) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 1; onChanged(); return subscriptionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.Tenant, com.wgtwo.api.v0.common.TypesProto.Tenant.Builder, com.wgtwo.api.v0.common.TypesProto.TenantOrBuilder> tenantBuilder_; /** * .wgtwo.common.v0.Tenant tenant = 2; * @return Whether the tenant field is set. */ @java.lang.Override public boolean hasTenant() { return valueCase_ == 2; } /** * .wgtwo.common.v0.Tenant tenant = 2; * @return The tenant. */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.Tenant getTenant() { if (tenantBuilder_ == null) { if (valueCase_ == 2) { return (com.wgtwo.api.v0.common.TypesProto.Tenant) value_; } return com.wgtwo.api.v0.common.TypesProto.Tenant.getDefaultInstance(); } else { if (valueCase_ == 2) { return tenantBuilder_.getMessage(); } return com.wgtwo.api.v0.common.TypesProto.Tenant.getDefaultInstance(); } } /** * .wgtwo.common.v0.Tenant tenant = 2; */ public Builder setTenant(com.wgtwo.api.v0.common.TypesProto.Tenant value) { if (tenantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { tenantBuilder_.setMessage(value); } valueCase_ = 2; return this; } /** * .wgtwo.common.v0.Tenant tenant = 2; */ public Builder setTenant( com.wgtwo.api.v0.common.TypesProto.Tenant.Builder builderForValue) { if (tenantBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { tenantBuilder_.setMessage(builderForValue.build()); } valueCase_ = 2; return this; } /** * .wgtwo.common.v0.Tenant tenant = 2; */ public Builder mergeTenant(com.wgtwo.api.v0.common.TypesProto.Tenant value) { if (tenantBuilder_ == null) { if (valueCase_ == 2 && value_ != com.wgtwo.api.v0.common.TypesProto.Tenant.getDefaultInstance()) { value_ = com.wgtwo.api.v0.common.TypesProto.Tenant.newBuilder((com.wgtwo.api.v0.common.TypesProto.Tenant) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 2) { tenantBuilder_.mergeFrom(value); } else { tenantBuilder_.setMessage(value); } } valueCase_ = 2; return this; } /** * .wgtwo.common.v0.Tenant tenant = 2; */ public Builder clearTenant() { if (tenantBuilder_ == null) { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; } tenantBuilder_.clear(); } return this; } /** * .wgtwo.common.v0.Tenant tenant = 2; */ public com.wgtwo.api.v0.common.TypesProto.Tenant.Builder getTenantBuilder() { return getTenantFieldBuilder().getBuilder(); } /** * .wgtwo.common.v0.Tenant tenant = 2; */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.TenantOrBuilder getTenantOrBuilder() { if ((valueCase_ == 2) && (tenantBuilder_ != null)) { return tenantBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 2) { return (com.wgtwo.api.v0.common.TypesProto.Tenant) value_; } return com.wgtwo.api.v0.common.TypesProto.Tenant.getDefaultInstance(); } } /** * .wgtwo.common.v0.Tenant tenant = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.Tenant, com.wgtwo.api.v0.common.TypesProto.Tenant.Builder, com.wgtwo.api.v0.common.TypesProto.TenantOrBuilder> getTenantFieldBuilder() { if (tenantBuilder_ == null) { if (!(valueCase_ == 2)) { value_ = com.wgtwo.api.v0.common.TypesProto.Tenant.getDefaultInstance(); } tenantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.Tenant, com.wgtwo.api.v0.common.TypesProto.Tenant.Builder, com.wgtwo.api.v0.common.TypesProto.TenantOrBuilder>( (com.wgtwo.api.v0.common.TypesProto.Tenant) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 2; onChanged(); return tenantBuilder_; } @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:wgtwo.consents.v0.ConsentOwner) } // @@protoc_insertion_point(class_scope:wgtwo.consents.v0.ConsentOwner) private static final com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner(); } public static com.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConsentOwner parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.wgtwo.api.v0.consent.ConsentsProto.ConsentOwner getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubscriptionOrBuilder extends // @@protoc_insertion_point(interface_extends:wgtwo.consents.v0.Subscription) com.google.protobuf.MessageOrBuilder { /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; * @return Whether the subscriptionIdentifier field is set. */ boolean hasSubscriptionIdentifier(); /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; * @return The subscriptionIdentifier. */ com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getSubscriptionIdentifier(); /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; */ com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getSubscriptionIdentifierOrBuilder(); } /** * Protobuf type {@code wgtwo.consents.v0.Subscription} */ public static final class Subscription extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wgtwo.consents.v0.Subscription) SubscriptionOrBuilder { private static final long serialVersionUID = 0L; // Use Subscription.newBuilder() to construct. private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Subscription() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Subscription(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.Subscription.class, com.wgtwo.api.v0.consent.ConsentsProto.Subscription.Builder.class); } public static final int SUBSCRIPTION_IDENTIFIER_FIELD_NUMBER = 1; private com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier subscriptionIdentifier_; /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; * @return Whether the subscriptionIdentifier field is set. */ @java.lang.Override public boolean hasSubscriptionIdentifier() { return subscriptionIdentifier_ != null; } /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; * @return The subscriptionIdentifier. */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getSubscriptionIdentifier() { return subscriptionIdentifier_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : subscriptionIdentifier_; } /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; */ @java.lang.Override public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getSubscriptionIdentifierOrBuilder() { return subscriptionIdentifier_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : subscriptionIdentifier_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subscriptionIdentifier_ != null) { output.writeMessage(1, getSubscriptionIdentifier()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (subscriptionIdentifier_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSubscriptionIdentifier()); } size += getUnknownFields().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.wgtwo.api.v0.consent.ConsentsProto.Subscription)) { return super.equals(obj); } com.wgtwo.api.v0.consent.ConsentsProto.Subscription other = (com.wgtwo.api.v0.consent.ConsentsProto.Subscription) obj; if (hasSubscriptionIdentifier() != other.hasSubscriptionIdentifier()) return false; if (hasSubscriptionIdentifier()) { if (!getSubscriptionIdentifier() .equals(other.getSubscriptionIdentifier())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSubscriptionIdentifier()) { hash = (37 * hash) + SUBSCRIPTION_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getSubscriptionIdentifier().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription 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.wgtwo.api.v0.consent.ConsentsProto.Subscription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription 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.wgtwo.api.v0.consent.ConsentsProto.Subscription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription 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.wgtwo.api.v0.consent.ConsentsProto.Subscription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code wgtwo.consents.v0.Subscription} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wgtwo.consents.v0.Subscription) com.wgtwo.api.v0.consent.ConsentsProto.SubscriptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.Subscription.class, com.wgtwo.api.v0.consent.ConsentsProto.Subscription.Builder.class); } // Construct using com.wgtwo.api.v0.consent.ConsentsProto.Subscription.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; subscriptionIdentifier_ = null; if (subscriptionIdentifierBuilder_ != null) { subscriptionIdentifierBuilder_.dispose(); subscriptionIdentifierBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Subscription_descriptor; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Subscription getDefaultInstanceForType() { return com.wgtwo.api.v0.consent.ConsentsProto.Subscription.getDefaultInstance(); } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Subscription build() { com.wgtwo.api.v0.consent.ConsentsProto.Subscription result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Subscription buildPartial() { com.wgtwo.api.v0.consent.ConsentsProto.Subscription result = new com.wgtwo.api.v0.consent.ConsentsProto.Subscription(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wgtwo.api.v0.consent.ConsentsProto.Subscription result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.subscriptionIdentifier_ = subscriptionIdentifierBuilder_ == null ? subscriptionIdentifier_ : subscriptionIdentifierBuilder_.build(); } } @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.wgtwo.api.v0.consent.ConsentsProto.Subscription) { return mergeFrom((com.wgtwo.api.v0.consent.ConsentsProto.Subscription)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wgtwo.api.v0.consent.ConsentsProto.Subscription other) { if (other == com.wgtwo.api.v0.consent.ConsentsProto.Subscription.getDefaultInstance()) return this; if (other.hasSubscriptionIdentifier()) { mergeSubscriptionIdentifier(other.getSubscriptionIdentifier()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSubscriptionIdentifierFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier subscriptionIdentifier_; private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder> subscriptionIdentifierBuilder_; /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; * @return Whether the subscriptionIdentifier field is set. */ public boolean hasSubscriptionIdentifier() { return ((bitField0_ & 0x00000001) != 0); } /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; * @return The subscriptionIdentifier. */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier getSubscriptionIdentifier() { if (subscriptionIdentifierBuilder_ == null) { return subscriptionIdentifier_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : subscriptionIdentifier_; } else { return subscriptionIdentifierBuilder_.getMessage(); } } /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; */ public Builder setSubscriptionIdentifier(com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier value) { if (subscriptionIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subscriptionIdentifier_ = value; } else { subscriptionIdentifierBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; */ public Builder setSubscriptionIdentifier( com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder builderForValue) { if (subscriptionIdentifierBuilder_ == null) { subscriptionIdentifier_ = builderForValue.build(); } else { subscriptionIdentifierBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; */ public Builder mergeSubscriptionIdentifier(com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier value) { if (subscriptionIdentifierBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && subscriptionIdentifier_ != null && subscriptionIdentifier_ != com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance()) { getSubscriptionIdentifierBuilder().mergeFrom(value); } else { subscriptionIdentifier_ = value; } } else { subscriptionIdentifierBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; */ public Builder clearSubscriptionIdentifier() { bitField0_ = (bitField0_ & ~0x00000001); subscriptionIdentifier_ = null; if (subscriptionIdentifierBuilder_ != null) { subscriptionIdentifierBuilder_.dispose(); subscriptionIdentifierBuilder_ = null; } onChanged(); return this; } /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder getSubscriptionIdentifierBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSubscriptionIdentifierFieldBuilder().getBuilder(); } /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; */ public com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder getSubscriptionIdentifierOrBuilder() { if (subscriptionIdentifierBuilder_ != null) { return subscriptionIdentifierBuilder_.getMessageOrBuilder(); } else { return subscriptionIdentifier_ == null ? com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.getDefaultInstance() : subscriptionIdentifier_; } } /** * .wgtwo.common.v0.SubscriptionIdentifier subscription_identifier = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder> getSubscriptionIdentifierFieldBuilder() { if (subscriptionIdentifierBuilder_ == null) { subscriptionIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifier.Builder, com.wgtwo.api.v0.common.TypesProto.SubscriptionIdentifierOrBuilder>( getSubscriptionIdentifier(), getParentForChildren(), isClean()); subscriptionIdentifier_ = null; } return subscriptionIdentifierBuilder_; } @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:wgtwo.consents.v0.Subscription) } // @@protoc_insertion_point(class_scope:wgtwo.consents.v0.Subscription) private static final com.wgtwo.api.v0.consent.ConsentsProto.Subscription DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wgtwo.api.v0.consent.ConsentsProto.Subscription(); } public static com.wgtwo.api.v0.consent.ConsentsProto.Subscription getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Subscription parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.wgtwo.api.v0.consent.ConsentsProto.Subscription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScopeOrBuilder extends // @@protoc_insertion_point(interface_extends:wgtwo.consents.v0.Scope) com.google.protobuf.MessageOrBuilder { /** * string property = 1; * @return The property. */ java.lang.String getProperty(); /** * string property = 1; * @return The bytes for property. */ com.google.protobuf.ByteString getPropertyBytes(); } /** * Protobuf type {@code wgtwo.consents.v0.Scope} */ public static final class Scope extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wgtwo.consents.v0.Scope) ScopeOrBuilder { private static final long serialVersionUID = 0L; // Use Scope.newBuilder() to construct. private Scope(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Scope() { property_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Scope(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Scope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Scope_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.Scope.class, com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder.class); } public static final int PROPERTY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object property_ = ""; /** * string property = 1; * @return The property. */ @java.lang.Override public java.lang.String getProperty() { java.lang.Object ref = property_; 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(); property_ = s; return s; } } /** * string property = 1; * @return The bytes for property. */ @java.lang.Override public com.google.protobuf.ByteString getPropertyBytes() { java.lang.Object ref = property_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); property_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); } size += getUnknownFields().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.wgtwo.api.v0.consent.ConsentsProto.Scope)) { return super.equals(obj); } com.wgtwo.api.v0.consent.ConsentsProto.Scope other = (com.wgtwo.api.v0.consent.ConsentsProto.Scope) obj; if (!getProperty() .equals(other.getProperty())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getProperty().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope 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.wgtwo.api.v0.consent.ConsentsProto.Scope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope 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.wgtwo.api.v0.consent.ConsentsProto.Scope parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope 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.wgtwo.api.v0.consent.ConsentsProto.Scope prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code wgtwo.consents.v0.Scope} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wgtwo.consents.v0.Scope) com.wgtwo.api.v0.consent.ConsentsProto.ScopeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Scope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Scope_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wgtwo.api.v0.consent.ConsentsProto.Scope.class, com.wgtwo.api.v0.consent.ConsentsProto.Scope.Builder.class); } // Construct using com.wgtwo.api.v0.consent.ConsentsProto.Scope.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; property_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wgtwo.api.v0.consent.ConsentsProto.internal_static_wgtwo_consents_v0_Scope_descriptor; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Scope getDefaultInstanceForType() { return com.wgtwo.api.v0.consent.ConsentsProto.Scope.getDefaultInstance(); } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Scope build() { com.wgtwo.api.v0.consent.ConsentsProto.Scope result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wgtwo.api.v0.consent.ConsentsProto.Scope buildPartial() { com.wgtwo.api.v0.consent.ConsentsProto.Scope result = new com.wgtwo.api.v0.consent.ConsentsProto.Scope(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.wgtwo.api.v0.consent.ConsentsProto.Scope result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.property_ = property_; } } @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.wgtwo.api.v0.consent.ConsentsProto.Scope) { return mergeFrom((com.wgtwo.api.v0.consent.ConsentsProto.Scope)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wgtwo.api.v0.consent.ConsentsProto.Scope other) { if (other == com.wgtwo.api.v0.consent.ConsentsProto.Scope.getDefaultInstance()) return this; if (!other.getProperty().isEmpty()) { property_ = other.property_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { property_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object property_ = ""; /** * string property = 1; * @return The property. */ public java.lang.String getProperty() { java.lang.Object ref = property_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); property_ = s; return s; } else { return (java.lang.String) ref; } } /** * string property = 1; * @return The bytes for property. */ public com.google.protobuf.ByteString getPropertyBytes() { java.lang.Object ref = property_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); property_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string property = 1; * @param value The property to set. * @return This builder for chaining. */ public Builder setProperty( java.lang.String value) { if (value == null) { throw new NullPointerException(); } property_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string property = 1; * @return This builder for chaining. */ public Builder clearProperty() { property_ = getDefaultInstance().getProperty(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string property = 1; * @param value The bytes for property to set. * @return This builder for chaining. */ public Builder setPropertyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); property_ = value; bitField0_ |= 0x00000001; 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:wgtwo.consents.v0.Scope) } // @@protoc_insertion_point(class_scope:wgtwo.consents.v0.Scope) private static final com.wgtwo.api.v0.consent.ConsentsProto.Scope DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wgtwo.api.v0.consent.ConsentsProto.Scope(); } public static com.wgtwo.api.v0.consent.ConsentsProto.Scope getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Scope parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.wgtwo.api.v0.consent.ConsentsProto.Scope getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_wgtwo_consents_v0_Consent_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_wgtwo_consents_v0_Consent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_wgtwo_consents_v0_ConsentOwner_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_wgtwo_consents_v0_ConsentOwner_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_wgtwo_consents_v0_Subscription_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_wgtwo_consents_v0_Subscription_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_wgtwo_consents_v0_Scope_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_wgtwo_consents_v0_Scope_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 wgtwo/consents/v0/consents.proto\022\021wgtw" + "o.consents.v0\032#wgtwo/annotations/annotat" + "ions.proto\032\034wgtwo/common/v0/errors.proto" + "\032!wgtwo/common/v0/phonenumber.proto\032\033wgt" + "wo/common/v0/types.proto\"\214\001\n!GetConsents" + "ForSubscriptionRequest\0223\n\002id\030\001 \001(\0132\'.wgt" + "wo.common.v0.SubscriptionIdentifier\0222\n\014p" + "hone_number\030\002 \001(\0132\034.wgtwo.common.v0.Phon" + "eNumber\"\233\001\n\"GetConsentsForSubscriptionRe" + "sponse\022,\n\010consents\030\001 \003(\0132\032.wgtwo.consent" + "s.v0.Consent\0220\n\013status_code\030\002 \001(\0162\033.wgtw" + "o.common.v0.StatusCode\022\025\n\rerror_message\030" + "\003 \001(\t\"\273\001\n#CreateConsentForSubscriptionRe" + "quest\0223\n\002id\030\001 \001(\0132\'.wgtwo.common.v0.Subs" + "criptionIdentifier\0222\n\014phone_number\030\004 \001(\013" + "2\034.wgtwo.common.v0.PhoneNumber\022\022\n\nproduc" + "t_id\030\002 \001(\t\022\027\n\017product_version\030\003 \001(\t\"o\n$C" + "reateConsentForSubscriptionResponse\0220\n\013s" + "tatus_code\030\001 \001(\0162\033.wgtwo.common.v0.Statu" + "sCode\022\025\n\rerror_message\030\002 \001(\t\"\242\001\n#RevokeC" + "onsentForSubscriptionRequest\0223\n\002id\030\001 \001(\013" + "2\'.wgtwo.common.v0.SubscriptionIdentifie" + "r\0222\n\014phone_number\030\003 \001(\0132\034.wgtwo.common.v" + "0.PhoneNumber\022\022\n\nproduct_id\030\002 \001(\t\"o\n$Rev" + "okeConsentForSubscriptionResponse\0220\n\013sta" + "tus_code\030\001 \001(\0162\033.wgtwo.common.v0.StatusC" + "ode\022\025\n\rerror_message\030\002 \001(\t\"\212\001\n\007Consent\022." + "\n\005owner\030\001 \001(\0132\037.wgtwo.consents.v0.Consen" + "tOwner\022\022\n\nproduct_id\030\002 \001(\t\022(\n\006scopes\030\003 \003" + "(\0132\030.wgtwo.consents.v0.Scope\022\021\n\trevokabl" + "e\030\004 \001(\010\"{\n\014ConsentOwner\0227\n\014subscription\030" + "\001 \001(\0132\037.wgtwo.consents.v0.SubscriptionH\000" + "\022)\n\006tenant\030\002 \001(\0132\027.wgtwo.common.v0.Tenan" + "tH\000B\007\n\005value\"X\n\014Subscription\022H\n\027subscrip" + "tion_identifier\030\001 \001(\0132\'.wgtwo.common.v0." + "SubscriptionIdentifier\"\031\n\005Scope\022\020\n\010prope" + "rty\030\001 \001(\t2\237\004\n\016ConsentService\022\250\001\n\032GetCons" + "entsForSubscription\0224.wgtwo.consents.v0." + "GetConsentsForSubscriptionRequest\0325.wgtw" + "o.consents.v0.GetConsentsForSubscription" + "Response\"\035\352\265\030\031subscription.consent:read\022" + "\257\001\n\034CreateConsentForSubscription\0226.wgtwo" + ".consents.v0.CreateConsentForSubscriptio" + "nRequest\0327.wgtwo.consents.v0.CreateConse" + "ntForSubscriptionResponse\"\036\352\265\030\032subscript" + "ion.consent:write\022\257\001\n\034RevokeConsentForSu" + "bscription\0226.wgtwo.consents.v0.RevokeCon" + "sentForSubscriptionRequest\0327.wgtwo.conse" + "nts.v0.RevokeConsentForSubscriptionRespo" + "nse\"\036\352\265\030\032subscription.consent:writeBc\n\030c" + "om.wgtwo.api.v0.consentB\rConsentsProtoZ8" + "github.com/working-group-two/wgtwoapis/w" + "gtwo/consents/v0b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.wgtwo.api.annotations.AnnotationsProto.getDescriptor(), com.wgtwo.api.v0.common.ErrorsProto.getDescriptor(), com.wgtwo.api.v0.common.PhoneNumberProto.getDescriptor(), com.wgtwo.api.v0.common.TypesProto.getDescriptor(), }); internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionRequest_descriptor, new java.lang.String[] { "Id", "PhoneNumber", }); internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_wgtwo_consents_v0_GetConsentsForSubscriptionResponse_descriptor, new java.lang.String[] { "Consents", "StatusCode", "ErrorMessage", }); internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionRequest_descriptor, new java.lang.String[] { "Id", "PhoneNumber", "ProductId", "ProductVersion", }); internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_wgtwo_consents_v0_CreateConsentForSubscriptionResponse_descriptor, new java.lang.String[] { "StatusCode", "ErrorMessage", }); internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionRequest_descriptor, new java.lang.String[] { "Id", "PhoneNumber", "ProductId", }); internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_wgtwo_consents_v0_RevokeConsentForSubscriptionResponse_descriptor, new java.lang.String[] { "StatusCode", "ErrorMessage", }); internal_static_wgtwo_consents_v0_Consent_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_wgtwo_consents_v0_Consent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_wgtwo_consents_v0_Consent_descriptor, new java.lang.String[] { "Owner", "ProductId", "Scopes", "Revokable", }); internal_static_wgtwo_consents_v0_ConsentOwner_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_wgtwo_consents_v0_ConsentOwner_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_wgtwo_consents_v0_ConsentOwner_descriptor, new java.lang.String[] { "Subscription", "Tenant", "Value", }); internal_static_wgtwo_consents_v0_Subscription_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_wgtwo_consents_v0_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_wgtwo_consents_v0_Subscription_descriptor, new java.lang.String[] { "SubscriptionIdentifier", }); internal_static_wgtwo_consents_v0_Scope_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_wgtwo_consents_v0_Scope_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_wgtwo_consents_v0_Scope_descriptor, new java.lang.String[] { "Property", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.wgtwo.api.annotations.AnnotationsProto.scope); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.wgtwo.api.annotations.AnnotationsProto.getDescriptor(); com.wgtwo.api.v0.common.ErrorsProto.getDescriptor(); com.wgtwo.api.v0.common.PhoneNumberProto.getDescriptor(); com.wgtwo.api.v0.common.TypesProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy