main.java.com.streamlayer.studio.users.UpdatePasswordRequest 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.UpdatePasswordRequest}
*/
public final class UpdatePasswordRequest extends
com.google.protobuf.GeneratedMessageLite<
UpdatePasswordRequest, UpdatePasswordRequest.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.studio.users.UpdatePasswordRequest)
UpdatePasswordRequestOrBuilder {
private UpdatePasswordRequest() {
currentPassword_ = "";
newPassword_ = "";
}
public static final int CURRENT_PASSWORD_FIELD_NUMBER = 1;
private java.lang.String currentPassword_;
/**
* string current_password = 1 [json_name = "currentPassword"];
* @return The currentPassword.
*/
@java.lang.Override
public java.lang.String getCurrentPassword() {
return currentPassword_;
}
/**
* string current_password = 1 [json_name = "currentPassword"];
* @return The bytes for currentPassword.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCurrentPasswordBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(currentPassword_);
}
/**
* string current_password = 1 [json_name = "currentPassword"];
* @param value The currentPassword to set.
*/
private void setCurrentPassword(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
currentPassword_ = value;
}
/**
* string current_password = 1 [json_name = "currentPassword"];
*/
private void clearCurrentPassword() {
currentPassword_ = getDefaultInstance().getCurrentPassword();
}
/**
* string current_password = 1 [json_name = "currentPassword"];
* @param value The bytes for currentPassword to set.
*/
private void setCurrentPasswordBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
currentPassword_ = 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 com.streamlayer.studio.users.UpdatePasswordRequest 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.UpdatePasswordRequest 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.UpdatePasswordRequest 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.UpdatePasswordRequest 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.UpdatePasswordRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.studio.users.UpdatePasswordRequest 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.UpdatePasswordRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.studio.users.UpdatePasswordRequest 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.UpdatePasswordRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.studio.users.UpdatePasswordRequest 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.UpdatePasswordRequest 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.UpdatePasswordRequest 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.UpdatePasswordRequest prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.studio.users.UpdatePasswordRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.studio.users.UpdatePasswordRequest, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.studio.users.UpdatePasswordRequest)
com.streamlayer.studio.users.UpdatePasswordRequestOrBuilder {
// Construct using com.streamlayer.studio.users.UpdatePasswordRequest.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string current_password = 1 [json_name = "currentPassword"];
* @return The currentPassword.
*/
@java.lang.Override
public java.lang.String getCurrentPassword() {
return instance.getCurrentPassword();
}
/**
* string current_password = 1 [json_name = "currentPassword"];
* @return The bytes for currentPassword.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCurrentPasswordBytes() {
return instance.getCurrentPasswordBytes();
}
/**
* string current_password = 1 [json_name = "currentPassword"];
* @param value The currentPassword to set.
* @return This builder for chaining.
*/
public Builder setCurrentPassword(
java.lang.String value) {
copyOnWrite();
instance.setCurrentPassword(value);
return this;
}
/**
* string current_password = 1 [json_name = "currentPassword"];
* @return This builder for chaining.
*/
public Builder clearCurrentPassword() {
copyOnWrite();
instance.clearCurrentPassword();
return this;
}
/**
* string current_password = 1 [json_name = "currentPassword"];
* @param value The bytes for currentPassword to set.
* @return This builder for chaining.
*/
public Builder setCurrentPasswordBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setCurrentPasswordBytes(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;
}
// @@protoc_insertion_point(builder_scope:streamlayer.studio.users.UpdatePasswordRequest)
}
@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.UpdatePasswordRequest();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"currentPassword_",
"newPassword_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\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.UpdatePasswordRequest.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.UpdatePasswordRequest)
private static final com.streamlayer.studio.users.UpdatePasswordRequest DEFAULT_INSTANCE;
static {
UpdatePasswordRequest defaultInstance = new UpdatePasswordRequest();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
UpdatePasswordRequest.class, defaultInstance);
}
public static com.streamlayer.studio.users.UpdatePasswordRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}