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

main.java.com.streamlayer.users.admin.CreateRequest 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/users/admin/admin_users.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.users.admin;

/**
 * Protobuf type {@code streamlayer.users.admin.CreateRequest}
 */
public  final class CreateRequest extends
    com.google.protobuf.GeneratedMessageLite<
        CreateRequest, CreateRequest.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.users.admin.CreateRequest)
    CreateRequestOrBuilder {
  private CreateRequest() {
    username_ = "";
    password_ = "";
    alias_ = "";
  }
  private int bitField0_;
  public static final int USERNAME_FIELD_NUMBER = 1;
  private java.lang.String username_;
  /**
   * string username = 1 [json_name = "username"];
   * @return The username.
   */
  @java.lang.Override
  public java.lang.String getUsername() {
    return username_;
  }
  /**
   * string username = 1 [json_name = "username"];
   * @return The bytes for username.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getUsernameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(username_);
  }
  /**
   * string username = 1 [json_name = "username"];
   * @param value The username to set.
   */
  private void setUsername(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    username_ = value;
  }
  /**
   * string username = 1 [json_name = "username"];
   */
  private void clearUsername() {

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

  }

  public static final int PASSWORD_FIELD_NUMBER = 2;
  private java.lang.String password_;
  /**
   * string password = 2 [json_name = "password"];
   * @return The password.
   */
  @java.lang.Override
  public java.lang.String getPassword() {
    return password_;
  }
  /**
   * string password = 2 [json_name = "password"];
   * @return The bytes for password.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPasswordBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(password_);
  }
  /**
   * string password = 2 [json_name = "password"];
   * @param value The password to set.
   */
  private void setPassword(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    password_ = value;
  }
  /**
   * string password = 2 [json_name = "password"];
   */
  private void clearPassword() {

    password_ = getDefaultInstance().getPassword();
  }
  /**
   * string password = 2 [json_name = "password"];
   * @param value The bytes for password to set.
   */
  private void setPasswordBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    password_ = value.toStringUtf8();

  }

  public static final int ALIAS_FIELD_NUMBER = 3;
  private java.lang.String alias_;
  /**
   * string alias = 3 [json_name = "alias"];
   * @return The alias.
   */
  @java.lang.Override
  public java.lang.String getAlias() {
    return alias_;
  }
  /**
   * string alias = 3 [json_name = "alias"];
   * @return The bytes for alias.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAliasBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(alias_);
  }
  /**
   * string alias = 3 [json_name = "alias"];
   * @param value The alias to set.
   */
  private void setAlias(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    alias_ = value;
  }
  /**
   * string alias = 3 [json_name = "alias"];
   */
  private void clearAlias() {

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

  }

  public static final int ACTIVATE_FIELD_NUMBER = 4;
  private boolean activate_;
  /**
   * bool activate = 4 [json_name = "activate"];
   * @return The activate.
   */
  @java.lang.Override
  public boolean getActivate() {
    return activate_;
  }
  /**
   * bool activate = 4 [json_name = "activate"];
   * @param value The activate to set.
   */
  private void setActivate(boolean value) {
    
    activate_ = value;
  }
  /**
   * bool activate = 4 [json_name = "activate"];
   */
  private void clearActivate() {

    activate_ = false;
  }

  public static final int METADATA_FIELD_NUMBER = 5;
  private com.streamlayer.users.UserMetadata metadata_;
  /**
   * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"];
   */
  @java.lang.Override
  public boolean hasMetadata() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"];
   */
  @java.lang.Override
  public com.streamlayer.users.UserMetadata getMetadata() {
    return metadata_ == null ? com.streamlayer.users.UserMetadata.getDefaultInstance() : metadata_;
  }
  /**
   * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"];
   */
  private void setMetadata(com.streamlayer.users.UserMetadata value) {
    value.getClass();
  metadata_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeMetadata(com.streamlayer.users.UserMetadata value) {
    value.getClass();
  if (metadata_ != null &&
        metadata_ != com.streamlayer.users.UserMetadata.getDefaultInstance()) {
      metadata_ =
        com.streamlayer.users.UserMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
    } else {
      metadata_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"];
   */
  private void clearMetadata() {  metadata_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int RANDOM_FIELD_NUMBER = 6;
  private boolean random_;
  /**
   * 
   * Create a user with generated data, like phone number and password
   * 
* * bool random = 6 [json_name = "random"]; * @return The random. */ @java.lang.Override public boolean getRandom() { return random_; } /** *
   * Create a user with generated data, like phone number and password
   * 
* * bool random = 6 [json_name = "random"]; * @param value The random to set. */ private void setRandom(boolean value) { random_ = value; } /** *
   * Create a user with generated data, like phone number and password
   * 
* * bool random = 6 [json_name = "random"]; */ private void clearRandom() { random_ = false; } public static final int LOAD_TEST_FIELD_NUMBER = 7; private boolean loadTest_; /** *
   * Mark a random user for load test, use with random flag
   * 
* * bool load_test = 7 [json_name = "loadTest"]; * @return The loadTest. */ @java.lang.Override public boolean getLoadTest() { return loadTest_; } /** *
   * Mark a random user for load test, use with random flag
   * 
* * bool load_test = 7 [json_name = "loadTest"]; * @param value The loadTest to set. */ private void setLoadTest(boolean value) { loadTest_ = value; } /** *
   * Mark a random user for load test, use with random flag
   * 
* * bool load_test = 7 [json_name = "loadTest"]; */ private void clearLoadTest() { loadTest_ = false; } public static com.streamlayer.users.admin.CreateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.users.admin.CreateRequest 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.users.admin.CreateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.users.admin.CreateRequest 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.users.admin.CreateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.users.admin.CreateRequest 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.users.admin.CreateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.users.admin.CreateRequest 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.users.admin.CreateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.streamlayer.users.admin.CreateRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.streamlayer.users.admin.CreateRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.users.admin.CreateRequest 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.users.admin.CreateRequest prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code streamlayer.users.admin.CreateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.streamlayer.users.admin.CreateRequest, Builder> implements // @@protoc_insertion_point(builder_implements:streamlayer.users.admin.CreateRequest) com.streamlayer.users.admin.CreateRequestOrBuilder { // Construct using com.streamlayer.users.admin.CreateRequest.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string username = 1 [json_name = "username"]; * @return The username. */ @java.lang.Override public java.lang.String getUsername() { return instance.getUsername(); } /** * string username = 1 [json_name = "username"]; * @return The bytes for username. */ @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { return instance.getUsernameBytes(); } /** * string username = 1 [json_name = "username"]; * @param value The username to set. * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { copyOnWrite(); instance.setUsername(value); return this; } /** * string username = 1 [json_name = "username"]; * @return This builder for chaining. */ public Builder clearUsername() { copyOnWrite(); instance.clearUsername(); return this; } /** * string username = 1 [json_name = "username"]; * @param value The bytes for username to set. * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUsernameBytes(value); return this; } /** * string password = 2 [json_name = "password"]; * @return The password. */ @java.lang.Override public java.lang.String getPassword() { return instance.getPassword(); } /** * string password = 2 [json_name = "password"]; * @return The bytes for password. */ @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { return instance.getPasswordBytes(); } /** * string password = 2 [json_name = "password"]; * @param value The password to set. * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { copyOnWrite(); instance.setPassword(value); return this; } /** * string password = 2 [json_name = "password"]; * @return This builder for chaining. */ public Builder clearPassword() { copyOnWrite(); instance.clearPassword(); return this; } /** * string password = 2 [json_name = "password"]; * @param value The bytes for password to set. * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPasswordBytes(value); return this; } /** * string alias = 3 [json_name = "alias"]; * @return The alias. */ @java.lang.Override public java.lang.String getAlias() { return instance.getAlias(); } /** * string alias = 3 [json_name = "alias"]; * @return The bytes for alias. */ @java.lang.Override public com.google.protobuf.ByteString getAliasBytes() { return instance.getAliasBytes(); } /** * string alias = 3 [json_name = "alias"]; * @param value The alias to set. * @return This builder for chaining. */ public Builder setAlias( java.lang.String value) { copyOnWrite(); instance.setAlias(value); return this; } /** * string alias = 3 [json_name = "alias"]; * @return This builder for chaining. */ public Builder clearAlias() { copyOnWrite(); instance.clearAlias(); return this; } /** * string alias = 3 [json_name = "alias"]; * @param value The bytes for alias to set. * @return This builder for chaining. */ public Builder setAliasBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setAliasBytes(value); return this; } /** * bool activate = 4 [json_name = "activate"]; * @return The activate. */ @java.lang.Override public boolean getActivate() { return instance.getActivate(); } /** * bool activate = 4 [json_name = "activate"]; * @param value The activate to set. * @return This builder for chaining. */ public Builder setActivate(boolean value) { copyOnWrite(); instance.setActivate(value); return this; } /** * bool activate = 4 [json_name = "activate"]; * @return This builder for chaining. */ public Builder clearActivate() { copyOnWrite(); instance.clearActivate(); return this; } /** * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"]; */ @java.lang.Override public boolean hasMetadata() { return instance.hasMetadata(); } /** * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"]; */ @java.lang.Override public com.streamlayer.users.UserMetadata getMetadata() { return instance.getMetadata(); } /** * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"]; */ public Builder setMetadata(com.streamlayer.users.UserMetadata value) { copyOnWrite(); instance.setMetadata(value); return this; } /** * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"]; */ public Builder setMetadata( com.streamlayer.users.UserMetadata.Builder builderForValue) { copyOnWrite(); instance.setMetadata(builderForValue.build()); return this; } /** * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"]; */ public Builder mergeMetadata(com.streamlayer.users.UserMetadata value) { copyOnWrite(); instance.mergeMetadata(value); return this; } /** * .streamlayer.users.UserMetadata metadata = 5 [json_name = "metadata"]; */ public Builder clearMetadata() { copyOnWrite(); instance.clearMetadata(); return this; } /** *
     * Create a user with generated data, like phone number and password
     * 
* * bool random = 6 [json_name = "random"]; * @return The random. */ @java.lang.Override public boolean getRandom() { return instance.getRandom(); } /** *
     * Create a user with generated data, like phone number and password
     * 
* * bool random = 6 [json_name = "random"]; * @param value The random to set. * @return This builder for chaining. */ public Builder setRandom(boolean value) { copyOnWrite(); instance.setRandom(value); return this; } /** *
     * Create a user with generated data, like phone number and password
     * 
* * bool random = 6 [json_name = "random"]; * @return This builder for chaining. */ public Builder clearRandom() { copyOnWrite(); instance.clearRandom(); return this; } /** *
     * Mark a random user for load test, use with random flag
     * 
* * bool load_test = 7 [json_name = "loadTest"]; * @return The loadTest. */ @java.lang.Override public boolean getLoadTest() { return instance.getLoadTest(); } /** *
     * Mark a random user for load test, use with random flag
     * 
* * bool load_test = 7 [json_name = "loadTest"]; * @param value The loadTest to set. * @return This builder for chaining. */ public Builder setLoadTest(boolean value) { copyOnWrite(); instance.setLoadTest(value); return this; } /** *
     * Mark a random user for load test, use with random flag
     * 
* * bool load_test = 7 [json_name = "loadTest"]; * @return This builder for chaining. */ public Builder clearLoadTest() { copyOnWrite(); instance.clearLoadTest(); return this; } // @@protoc_insertion_point(builder_scope:streamlayer.users.admin.CreateRequest) } @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.users.admin.CreateRequest(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "username_", "password_", "alias_", "activate_", "metadata_", "random_", "loadTest_", }; java.lang.String info = "\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\u0208\u0004\u0007\u0005\u1009\u0000\u0006\u0007\u0007\u0007"; 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.users.admin.CreateRequest.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.users.admin.CreateRequest) private static final com.streamlayer.users.admin.CreateRequest DEFAULT_INSTANCE; static { CreateRequest defaultInstance = new CreateRequest(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( CreateRequest.class, defaultInstance); } public static com.streamlayer.users.admin.CreateRequest 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