main.java.com.streamlayer.studio.users.ResetPasswordRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streamlayer/studio/users/studio_users.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.studio.users;
/**
* Protobuf type {@code streamlayer.studio.users.ResetPasswordRequest}
*/
public final class ResetPasswordRequest extends
com.google.protobuf.GeneratedMessageLite<
ResetPasswordRequest, ResetPasswordRequest.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.studio.users.ResetPasswordRequest)
ResetPasswordRequestOrBuilder {
private ResetPasswordRequest() {
username_ = "";
newPassword_ = "";
resetToken_ = "";
}
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 NEW_PASSWORD_FIELD_NUMBER = 2;
private java.lang.String newPassword_;
/**
* string new_password = 2 [json_name = "newPassword"];
* @return The newPassword.
*/
@java.lang.Override
public java.lang.String getNewPassword() {
return newPassword_;
}
/**
* string new_password = 2 [json_name = "newPassword"];
* @return The bytes for newPassword.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNewPasswordBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(newPassword_);
}
/**
* string new_password = 2 [json_name = "newPassword"];
* @param value The newPassword to set.
*/
private void setNewPassword(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
newPassword_ = value;
}
/**
* string new_password = 2 [json_name = "newPassword"];
*/
private void clearNewPassword() {
newPassword_ = getDefaultInstance().getNewPassword();
}
/**
* string new_password = 2 [json_name = "newPassword"];
* @param value The bytes for newPassword to set.
*/
private void setNewPasswordBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
newPassword_ = value.toStringUtf8();
}
public static final int RESET_TOKEN_FIELD_NUMBER = 3;
private java.lang.String resetToken_;
/**
* string reset_token = 3 [json_name = "resetToken"];
* @return The resetToken.
*/
@java.lang.Override
public java.lang.String getResetToken() {
return resetToken_;
}
/**
* string reset_token = 3 [json_name = "resetToken"];
* @return The bytes for resetToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResetTokenBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(resetToken_);
}
/**
* string reset_token = 3 [json_name = "resetToken"];
* @param value The resetToken to set.
*/
private void setResetToken(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
resetToken_ = value;
}
/**
* string reset_token = 3 [json_name = "resetToken"];
*/
private void clearResetToken() {
resetToken_ = getDefaultInstance().getResetToken();
}
/**
* string reset_token = 3 [json_name = "resetToken"];
* @param value The bytes for resetToken to set.
*/
private void setResetTokenBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
resetToken_ = value.toStringUtf8();
}
public static com.streamlayer.studio.users.ResetPasswordRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.studio.users.ResetPasswordRequest 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.studio.users.ResetPasswordRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.studio.users.ResetPasswordRequest 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.studio.users.ResetPasswordRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.studio.users.ResetPasswordRequest 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.studio.users.ResetPasswordRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.studio.users.ResetPasswordRequest 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.studio.users.ResetPasswordRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.studio.users.ResetPasswordRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.studio.users.ResetPasswordRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.studio.users.ResetPasswordRequest 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.studio.users.ResetPasswordRequest prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.studio.users.ResetPasswordRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.studio.users.ResetPasswordRequest, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.studio.users.ResetPasswordRequest)
com.streamlayer.studio.users.ResetPasswordRequestOrBuilder {
// Construct using com.streamlayer.studio.users.ResetPasswordRequest.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 new_password = 2 [json_name = "newPassword"];
* @return The newPassword.
*/
@java.lang.Override
public java.lang.String getNewPassword() {
return instance.getNewPassword();
}
/**
* string new_password = 2 [json_name = "newPassword"];
* @return The bytes for newPassword.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNewPasswordBytes() {
return instance.getNewPasswordBytes();
}
/**
* string new_password = 2 [json_name = "newPassword"];
* @param value The newPassword to set.
* @return This builder for chaining.
*/
public Builder setNewPassword(
java.lang.String value) {
copyOnWrite();
instance.setNewPassword(value);
return this;
}
/**
* string new_password = 2 [json_name = "newPassword"];
* @return This builder for chaining.
*/
public Builder clearNewPassword() {
copyOnWrite();
instance.clearNewPassword();
return this;
}
/**
* string new_password = 2 [json_name = "newPassword"];
* @param value The bytes for newPassword to set.
* @return This builder for chaining.
*/
public Builder setNewPasswordBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNewPasswordBytes(value);
return this;
}
/**
* string reset_token = 3 [json_name = "resetToken"];
* @return The resetToken.
*/
@java.lang.Override
public java.lang.String getResetToken() {
return instance.getResetToken();
}
/**
* string reset_token = 3 [json_name = "resetToken"];
* @return The bytes for resetToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResetTokenBytes() {
return instance.getResetTokenBytes();
}
/**
* string reset_token = 3 [json_name = "resetToken"];
* @param value The resetToken to set.
* @return This builder for chaining.
*/
public Builder setResetToken(
java.lang.String value) {
copyOnWrite();
instance.setResetToken(value);
return this;
}
/**
* string reset_token = 3 [json_name = "resetToken"];
* @return This builder for chaining.
*/
public Builder clearResetToken() {
copyOnWrite();
instance.clearResetToken();
return this;
}
/**
* string reset_token = 3 [json_name = "resetToken"];
* @param value The bytes for resetToken to set.
* @return This builder for chaining.
*/
public Builder setResetTokenBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setResetTokenBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.studio.users.ResetPasswordRequest)
}
@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.studio.users.ResetPasswordRequest();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"username_",
"newPassword_",
"resetToken_",
};
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.studio.users.ResetPasswordRequest.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.studio.users.ResetPasswordRequest)
private static final com.streamlayer.studio.users.ResetPasswordRequest DEFAULT_INSTANCE;
static {
ResetPasswordRequest defaultInstance = new ResetPasswordRequest();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ResetPasswordRequest.class, defaultInstance);
}
public static com.streamlayer.studio.users.ResetPasswordRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}