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

main.java.com.streamlayer.pushNotification.common.APNSCredentials Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/pushNotification/pushNotification.common.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.pushNotification.common;

/**
 * Protobuf type {@code streamlayer.pushNotification.APNSCredentials}
 */
public  final class APNSCredentials extends
    com.google.protobuf.GeneratedMessageLite<
        APNSCredentials, APNSCredentials.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.pushNotification.APNSCredentials)
    APNSCredentialsOrBuilder {
  private APNSCredentials() {
    topic_ = "";
  }
  public interface APNSCredentialsTokenOrBuilder extends
      // @@protoc_insertion_point(interface_extends:streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * string key = 1 [json_name = "key"];
     * @return The key.
     */
    java.lang.String getKey();
    /**
     * string key = 1 [json_name = "key"];
     * @return The bytes for key.
     */
    com.google.protobuf.ByteString
        getKeyBytes();

    /**
     * string key_id = 2 [json_name = "keyId"];
     * @return The keyId.
     */
    java.lang.String getKeyId();
    /**
     * string key_id = 2 [json_name = "keyId"];
     * @return The bytes for keyId.
     */
    com.google.protobuf.ByteString
        getKeyIdBytes();

    /**
     * string team_id = 3 [json_name = "teamId"];
     * @return The teamId.
     */
    java.lang.String getTeamId();
    /**
     * string team_id = 3 [json_name = "teamId"];
     * @return The bytes for teamId.
     */
    com.google.protobuf.ByteString
        getTeamIdBytes();
  }
  /**
   * Protobuf type {@code streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken}
   */
  public  static final class APNSCredentialsToken extends
      com.google.protobuf.GeneratedMessageLite<
          APNSCredentialsToken, APNSCredentialsToken.Builder> implements
      // @@protoc_insertion_point(message_implements:streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken)
      APNSCredentialsTokenOrBuilder {
    private APNSCredentialsToken() {
      key_ = "";
      keyId_ = "";
      teamId_ = "";
    }
    public static final int KEY_FIELD_NUMBER = 1;
    private java.lang.String key_;
    /**
     * string key = 1 [json_name = "key"];
     * @return The key.
     */
    @java.lang.Override
    public java.lang.String getKey() {
      return key_;
    }
    /**
     * string key = 1 [json_name = "key"];
     * @return The bytes for key.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getKeyBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(key_);
    }
    /**
     * string key = 1 [json_name = "key"];
     * @param value The key to set.
     */
    private void setKey(
        java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  
      key_ = value;
    }
    /**
     * string key = 1 [json_name = "key"];
     */
    private void clearKey() {

      key_ = getDefaultInstance().getKey();
    }
    /**
     * string key = 1 [json_name = "key"];
     * @param value The bytes for key to set.
     */
    private void setKeyBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      key_ = value.toStringUtf8();

    }

    public static final int KEY_ID_FIELD_NUMBER = 2;
    private java.lang.String keyId_;
    /**
     * string key_id = 2 [json_name = "keyId"];
     * @return The keyId.
     */
    @java.lang.Override
    public java.lang.String getKeyId() {
      return keyId_;
    }
    /**
     * string key_id = 2 [json_name = "keyId"];
     * @return The bytes for keyId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getKeyIdBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(keyId_);
    }
    /**
     * string key_id = 2 [json_name = "keyId"];
     * @param value The keyId to set.
     */
    private void setKeyId(
        java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  
      keyId_ = value;
    }
    /**
     * string key_id = 2 [json_name = "keyId"];
     */
    private void clearKeyId() {

      keyId_ = getDefaultInstance().getKeyId();
    }
    /**
     * string key_id = 2 [json_name = "keyId"];
     * @param value The bytes for keyId to set.
     */
    private void setKeyIdBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      keyId_ = value.toStringUtf8();

    }

    public static final int TEAM_ID_FIELD_NUMBER = 3;
    private java.lang.String teamId_;
    /**
     * string team_id = 3 [json_name = "teamId"];
     * @return The teamId.
     */
    @java.lang.Override
    public java.lang.String getTeamId() {
      return teamId_;
    }
    /**
     * string team_id = 3 [json_name = "teamId"];
     * @return The bytes for teamId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTeamIdBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(teamId_);
    }
    /**
     * string team_id = 3 [json_name = "teamId"];
     * @param value The teamId to set.
     */
    private void setTeamId(
        java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  
      teamId_ = value;
    }
    /**
     * string team_id = 3 [json_name = "teamId"];
     */
    private void clearTeamId() {

      teamId_ = getDefaultInstance().getTeamId();
    }
    /**
     * string team_id = 3 [json_name = "teamId"];
     * @param value The bytes for teamId to set.
     */
    private void setTeamIdBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      teamId_ = value.toStringUtf8();

    }

    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }

    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken prototype) {
      return DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken, Builder> implements
        // @@protoc_insertion_point(builder_implements:streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken)
        com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsTokenOrBuilder {
      // Construct using com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * string key = 1 [json_name = "key"];
       * @return The key.
       */
      @java.lang.Override
      public java.lang.String getKey() {
        return instance.getKey();
      }
      /**
       * string key = 1 [json_name = "key"];
       * @return The bytes for key.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getKeyBytes() {
        return instance.getKeyBytes();
      }
      /**
       * string key = 1 [json_name = "key"];
       * @param value The key to set.
       * @return This builder for chaining.
       */
      public Builder setKey(
          java.lang.String value) {
        copyOnWrite();
        instance.setKey(value);
        return this;
      }
      /**
       * string key = 1 [json_name = "key"];
       * @return This builder for chaining.
       */
      public Builder clearKey() {
        copyOnWrite();
        instance.clearKey();
        return this;
      }
      /**
       * string key = 1 [json_name = "key"];
       * @param value The bytes for key to set.
       * @return This builder for chaining.
       */
      public Builder setKeyBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setKeyBytes(value);
        return this;
      }

      /**
       * string key_id = 2 [json_name = "keyId"];
       * @return The keyId.
       */
      @java.lang.Override
      public java.lang.String getKeyId() {
        return instance.getKeyId();
      }
      /**
       * string key_id = 2 [json_name = "keyId"];
       * @return The bytes for keyId.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getKeyIdBytes() {
        return instance.getKeyIdBytes();
      }
      /**
       * string key_id = 2 [json_name = "keyId"];
       * @param value The keyId to set.
       * @return This builder for chaining.
       */
      public Builder setKeyId(
          java.lang.String value) {
        copyOnWrite();
        instance.setKeyId(value);
        return this;
      }
      /**
       * string key_id = 2 [json_name = "keyId"];
       * @return This builder for chaining.
       */
      public Builder clearKeyId() {
        copyOnWrite();
        instance.clearKeyId();
        return this;
      }
      /**
       * string key_id = 2 [json_name = "keyId"];
       * @param value The bytes for keyId to set.
       * @return This builder for chaining.
       */
      public Builder setKeyIdBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setKeyIdBytes(value);
        return this;
      }

      /**
       * string team_id = 3 [json_name = "teamId"];
       * @return The teamId.
       */
      @java.lang.Override
      public java.lang.String getTeamId() {
        return instance.getTeamId();
      }
      /**
       * string team_id = 3 [json_name = "teamId"];
       * @return The bytes for teamId.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getTeamIdBytes() {
        return instance.getTeamIdBytes();
      }
      /**
       * string team_id = 3 [json_name = "teamId"];
       * @param value The teamId to set.
       * @return This builder for chaining.
       */
      public Builder setTeamId(
          java.lang.String value) {
        copyOnWrite();
        instance.setTeamId(value);
        return this;
      }
      /**
       * string team_id = 3 [json_name = "teamId"];
       * @return This builder for chaining.
       */
      public Builder clearTeamId() {
        copyOnWrite();
        instance.clearTeamId();
        return this;
      }
      /**
       * string team_id = 3 [json_name = "teamId"];
       * @param value The bytes for teamId to set.
       * @return This builder for chaining.
       */
      public Builder setTeamIdBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setTeamIdBytes(value);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "key_",
              "keyId_",
              "teamId_",
            };
            java.lang.String info =
                "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
                "\u0003\u0208";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser parser = PARSER;
          if (parser == null) {
            synchronized (com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken)
    private static final com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken DEFAULT_INSTANCE;
    static {
      APNSCredentialsToken defaultInstance = new APNSCredentialsToken();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        APNSCredentialsToken.class, defaultInstance);
    }

    public static com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser PARSER;

    public static com.google.protobuf.Parser parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  private int bitField0_;
  public static final int TOKEN_FIELD_NUMBER = 1;
  private com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken token_;
  /**
   * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
   */
  @java.lang.Override
  public boolean hasToken() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
   */
  @java.lang.Override
  public com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken getToken() {
    return token_ == null ? com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken.getDefaultInstance() : token_;
  }
  /**
   * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
   */
  private void setToken(com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken value) {
    value.getClass();
  token_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeToken(com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken value) {
    value.getClass();
  if (token_ != null &&
        token_ != com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken.getDefaultInstance()) {
      token_ =
        com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken.newBuilder(token_).mergeFrom(value).buildPartial();
    } else {
      token_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
   */
  private void clearToken() {  token_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int PRODUCTION_FIELD_NUMBER = 2;
  private boolean production_;
  /**
   * bool production = 2 [json_name = "production"];
   * @return The production.
   */
  @java.lang.Override
  public boolean getProduction() {
    return production_;
  }
  /**
   * bool production = 2 [json_name = "production"];
   * @param value The production to set.
   */
  private void setProduction(boolean value) {
    
    production_ = value;
  }
  /**
   * bool production = 2 [json_name = "production"];
   */
  private void clearProduction() {

    production_ = false;
  }

  public static final int TOPIC_FIELD_NUMBER = 3;
  private java.lang.String topic_;
  /**
   * string topic = 3 [json_name = "topic"];
   * @return The topic.
   */
  @java.lang.Override
  public java.lang.String getTopic() {
    return topic_;
  }
  /**
   * string topic = 3 [json_name = "topic"];
   * @return The bytes for topic.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTopicBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(topic_);
  }
  /**
   * string topic = 3 [json_name = "topic"];
   * @param value The topic to set.
   */
  private void setTopic(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    topic_ = value;
  }
  /**
   * string topic = 3 [json_name = "topic"];
   */
  private void clearTopic() {

    topic_ = getDefaultInstance().getTopic();
  }
  /**
   * string topic = 3 [json_name = "topic"];
   * @param value The bytes for topic to set.
   */
  private void setTopicBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    topic_ = value.toStringUtf8();

  }

  public static com.streamlayer.pushNotification.common.APNSCredentials parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.pushNotification.common.APNSCredentials parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.pushNotification.common.APNSCredentials parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.pushNotification.common.APNSCredentials parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.pushNotification.common.APNSCredentials parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.pushNotification.common.APNSCredentials parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.pushNotification.common.APNSCredentials parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.pushNotification.common.APNSCredentials parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static com.streamlayer.pushNotification.common.APNSCredentials parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.pushNotification.common.APNSCredentials parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.streamlayer.pushNotification.common.APNSCredentials parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.pushNotification.common.APNSCredentials parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static Builder newBuilder() {
    return (Builder) DEFAULT_INSTANCE.createBuilder();
  }
  public static Builder newBuilder(com.streamlayer.pushNotification.common.APNSCredentials prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

  /**
   * Protobuf type {@code streamlayer.pushNotification.APNSCredentials}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageLite.Builder<
        com.streamlayer.pushNotification.common.APNSCredentials, Builder> implements
      // @@protoc_insertion_point(builder_implements:streamlayer.pushNotification.APNSCredentials)
      com.streamlayer.pushNotification.common.APNSCredentialsOrBuilder {
    // Construct using com.streamlayer.pushNotification.common.APNSCredentials.newBuilder()
    private Builder() {
      super(DEFAULT_INSTANCE);
    }


    /**
     * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
     */
    @java.lang.Override
    public boolean hasToken() {
      return instance.hasToken();
    }
    /**
     * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
     */
    @java.lang.Override
    public com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken getToken() {
      return instance.getToken();
    }
    /**
     * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
     */
    public Builder setToken(com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken value) {
      copyOnWrite();
      instance.setToken(value);
      return this;
      }
    /**
     * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
     */
    public Builder setToken(
        com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken.Builder builderForValue) {
      copyOnWrite();
      instance.setToken(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
     */
    public Builder mergeToken(com.streamlayer.pushNotification.common.APNSCredentials.APNSCredentialsToken value) {
      copyOnWrite();
      instance.mergeToken(value);
      return this;
    }
    /**
     * .streamlayer.pushNotification.APNSCredentials.APNSCredentialsToken token = 1 [json_name = "token"];
     */
    public Builder clearToken() {  copyOnWrite();
      instance.clearToken();
      return this;
    }

    /**
     * bool production = 2 [json_name = "production"];
     * @return The production.
     */
    @java.lang.Override
    public boolean getProduction() {
      return instance.getProduction();
    }
    /**
     * bool production = 2 [json_name = "production"];
     * @param value The production to set.
     * @return This builder for chaining.
     */
    public Builder setProduction(boolean value) {
      copyOnWrite();
      instance.setProduction(value);
      return this;
    }
    /**
     * bool production = 2 [json_name = "production"];
     * @return This builder for chaining.
     */
    public Builder clearProduction() {
      copyOnWrite();
      instance.clearProduction();
      return this;
    }

    /**
     * string topic = 3 [json_name = "topic"];
     * @return The topic.
     */
    @java.lang.Override
    public java.lang.String getTopic() {
      return instance.getTopic();
    }
    /**
     * string topic = 3 [json_name = "topic"];
     * @return The bytes for topic.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTopicBytes() {
      return instance.getTopicBytes();
    }
    /**
     * string topic = 3 [json_name = "topic"];
     * @param value The topic to set.
     * @return This builder for chaining.
     */
    public Builder setTopic(
        java.lang.String value) {
      copyOnWrite();
      instance.setTopic(value);
      return this;
    }
    /**
     * string topic = 3 [json_name = "topic"];
     * @return This builder for chaining.
     */
    public Builder clearTopic() {
      copyOnWrite();
      instance.clearTopic();
      return this;
    }
    /**
     * string topic = 3 [json_name = "topic"];
     * @param value The bytes for topic to set.
     * @return This builder for chaining.
     */
    public Builder setTopicBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setTopicBytes(value);
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.pushNotification.APNSCredentials)
  }
  @java.lang.Override
  @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
  protected final java.lang.Object dynamicMethod(
      com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
      java.lang.Object arg0, java.lang.Object arg1) {
    switch (method) {
      case NEW_MUTABLE_INSTANCE: {
        return new com.streamlayer.pushNotification.common.APNSCredentials();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "bitField0_",
            "token_",
            "production_",
            "topic_",
          };
          java.lang.String info =
              "\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
              "\u0007\u0003\u0208";
          return newMessageInfo(DEFAULT_INSTANCE, info, objects);
      }
      // fall through
      case GET_DEFAULT_INSTANCE: {
        return DEFAULT_INSTANCE;
      }
      case GET_PARSER: {
        com.google.protobuf.Parser parser = PARSER;
        if (parser == null) {
          synchronized (com.streamlayer.pushNotification.common.APNSCredentials.class) {
            parser = PARSER;
            if (parser == null) {
              parser =
                  new DefaultInstanceBasedParser(
                      DEFAULT_INSTANCE);
              PARSER = parser;
            }
          }
        }
        return parser;
    }
    case GET_MEMOIZED_IS_INITIALIZED: {
      return (byte) 1;
    }
    case SET_MEMOIZED_IS_INITIALIZED: {
      return null;
    }
    }
    throw new UnsupportedOperationException();
  }


  // @@protoc_insertion_point(class_scope:streamlayer.pushNotification.APNSCredentials)
  private static final com.streamlayer.pushNotification.common.APNSCredentials DEFAULT_INSTANCE;
  static {
    APNSCredentials defaultInstance = new APNSCredentials();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      APNSCredentials.class, defaultInstance);
  }

  public static com.streamlayer.pushNotification.common.APNSCredentials getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static volatile com.google.protobuf.Parser PARSER;

  public static com.google.protobuf.Parser parser() {
    return DEFAULT_INSTANCE.getParserForType();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy