main.java.com.streamlayer.studio.users.UpdateStatusRequest 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.UpdateStatusRequest}
*/
public final class UpdateStatusRequest extends
com.google.protobuf.GeneratedMessageLite<
UpdateStatusRequest, UpdateStatusRequest.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.studio.users.UpdateStatusRequest)
UpdateStatusRequestOrBuilder {
private UpdateStatusRequest() {
username_ = "";
}
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 BAN_FIELD_NUMBER = 2;
private boolean ban_;
/**
*
* active flag for all organizations
*
*
* bool ban = 2 [json_name = "ban"];
* @return The ban.
*/
@java.lang.Override
public boolean getBan() {
return ban_;
}
/**
*
* active flag for all organizations
*
*
* bool ban = 2 [json_name = "ban"];
* @param value The ban to set.
*/
private void setBan(boolean value) {
ban_ = value;
}
/**
*
* active flag for all organizations
*
*
* bool ban = 2 [json_name = "ban"];
*/
private void clearBan() {
ban_ = false;
}
public static com.streamlayer.studio.users.UpdateStatusRequest 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.UpdateStatusRequest 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.UpdateStatusRequest 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.UpdateStatusRequest 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.UpdateStatusRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.studio.users.UpdateStatusRequest 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.UpdateStatusRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.studio.users.UpdateStatusRequest 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.UpdateStatusRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.studio.users.UpdateStatusRequest 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.UpdateStatusRequest 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.UpdateStatusRequest 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.UpdateStatusRequest prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.studio.users.UpdateStatusRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.studio.users.UpdateStatusRequest, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.studio.users.UpdateStatusRequest)
com.streamlayer.studio.users.UpdateStatusRequestOrBuilder {
// Construct using com.streamlayer.studio.users.UpdateStatusRequest.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;
}
/**
*
* active flag for all organizations
*
*
* bool ban = 2 [json_name = "ban"];
* @return The ban.
*/
@java.lang.Override
public boolean getBan() {
return instance.getBan();
}
/**
*
* active flag for all organizations
*
*
* bool ban = 2 [json_name = "ban"];
* @param value The ban to set.
* @return This builder for chaining.
*/
public Builder setBan(boolean value) {
copyOnWrite();
instance.setBan(value);
return this;
}
/**
*
* active flag for all organizations
*
*
* bool ban = 2 [json_name = "ban"];
* @return This builder for chaining.
*/
public Builder clearBan() {
copyOnWrite();
instance.clearBan();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.studio.users.UpdateStatusRequest)
}
@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.UpdateStatusRequest();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"username_",
"ban_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\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.studio.users.UpdateStatusRequest.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.UpdateStatusRequest)
private static final com.streamlayer.studio.users.UpdateStatusRequest DEFAULT_INSTANCE;
static {
UpdateStatusRequest defaultInstance = new UpdateStatusRequest();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
UpdateStatusRequest.class, defaultInstance);
}
public static com.streamlayer.studio.users.UpdateStatusRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}