yandex.cloud.api.datasphere.v2.UserOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/datasphere/v2/user.proto
package yandex.cloud.api.datasphere.v2;
public final class UserOuterClass {
private UserOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface UserOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.User)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the user.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the user.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* Name of the user.
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the user.
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Email of the user.
*
*
* string email = 3;
* @return The email.
*/
java.lang.String getEmail();
/**
*
* Email of the user.
*
*
* string email = 3;
* @return The bytes for email.
*/
com.google.protobuf.ByteString
getEmailBytes();
/**
*
* URL to the user's profile picture.
*
*
* string picture = 4;
* @return The picture.
*/
java.lang.String getPicture();
/**
*
* URL to the user's profile picture.
*
*
* string picture = 4;
* @return The bytes for picture.
*/
com.google.protobuf.ByteString
getPictureBytes();
/**
*
* An image content of the user's profile picture.
*
*
* string picture_data = 5;
* @return The pictureData.
*/
java.lang.String getPictureData();
/**
*
* An image content of the user's profile picture.
*
*
* string picture_data = 5;
* @return The bytes for pictureData.
*/
com.google.protobuf.ByteString
getPictureDataBytes();
}
/**
* Protobuf type {@code yandex.cloud.datasphere.v2.User}
*/
public static final class User extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.User)
UserOrBuilder {
private static final long serialVersionUID = 0L;
// Use User.newBuilder() to construct.
private User(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private User() {
id_ = "";
name_ = "";
email_ = "";
picture_ = "";
pictureData_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new User();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private User(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
email_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
picture_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
pictureData_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datasphere.v2.UserOuterClass.internal_static_yandex_cloud_datasphere_v2_User_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datasphere.v2.UserOuterClass.internal_static_yandex_cloud_datasphere_v2_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datasphere.v2.UserOuterClass.User.class, yandex.cloud.api.datasphere.v2.UserOuterClass.User.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the user.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* ID of the user.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the user.
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the user.
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EMAIL_FIELD_NUMBER = 3;
private volatile java.lang.Object email_;
/**
*
* Email of the user.
*
*
* string email = 3;
* @return The email.
*/
@java.lang.Override
public java.lang.String getEmail() {
java.lang.Object ref = email_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
email_ = s;
return s;
}
}
/**
*
* Email of the user.
*
*
* string email = 3;
* @return The bytes for email.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PICTURE_FIELD_NUMBER = 4;
private volatile java.lang.Object picture_;
/**
*
* URL to the user's profile picture.
*
*
* string picture = 4;
* @return The picture.
*/
@java.lang.Override
public java.lang.String getPicture() {
java.lang.Object ref = picture_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
picture_ = s;
return s;
}
}
/**
*
* URL to the user's profile picture.
*
*
* string picture = 4;
* @return The bytes for picture.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPictureBytes() {
java.lang.Object ref = picture_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
picture_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PICTURE_DATA_FIELD_NUMBER = 5;
private volatile java.lang.Object pictureData_;
/**
*
* An image content of the user's profile picture.
*
*
* string picture_data = 5;
* @return The pictureData.
*/
@java.lang.Override
public java.lang.String getPictureData() {
java.lang.Object ref = pictureData_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pictureData_ = s;
return s;
}
}
/**
*
* An image content of the user's profile picture.
*
*
* string picture_data = 5;
* @return The bytes for pictureData.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPictureDataBytes() {
java.lang.Object ref = pictureData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pictureData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, email_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(picture_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, picture_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pictureData_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pictureData_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(picture_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, picture_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pictureData_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pictureData_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.datasphere.v2.UserOuterClass.User)) {
return super.equals(obj);
}
yandex.cloud.api.datasphere.v2.UserOuterClass.User other = (yandex.cloud.api.datasphere.v2.UserOuterClass.User) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getEmail()
.equals(other.getEmail())) return false;
if (!getPicture()
.equals(other.getPicture())) return false;
if (!getPictureData()
.equals(other.getPictureData())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getEmail().hashCode();
hash = (37 * hash) + PICTURE_FIELD_NUMBER;
hash = (53 * hash) + getPicture().hashCode();
hash = (37 * hash) + PICTURE_DATA_FIELD_NUMBER;
hash = (53 * hash) + getPictureData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.datasphere.v2.UserOuterClass.User prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.datasphere.v2.User}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.User)
yandex.cloud.api.datasphere.v2.UserOuterClass.UserOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datasphere.v2.UserOuterClass.internal_static_yandex_cloud_datasphere_v2_User_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datasphere.v2.UserOuterClass.internal_static_yandex_cloud_datasphere_v2_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datasphere.v2.UserOuterClass.User.class, yandex.cloud.api.datasphere.v2.UserOuterClass.User.Builder.class);
}
// Construct using yandex.cloud.api.datasphere.v2.UserOuterClass.User.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
name_ = "";
email_ = "";
picture_ = "";
pictureData_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datasphere.v2.UserOuterClass.internal_static_yandex_cloud_datasphere_v2_User_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datasphere.v2.UserOuterClass.User getDefaultInstanceForType() {
return yandex.cloud.api.datasphere.v2.UserOuterClass.User.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datasphere.v2.UserOuterClass.User build() {
yandex.cloud.api.datasphere.v2.UserOuterClass.User result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datasphere.v2.UserOuterClass.User buildPartial() {
yandex.cloud.api.datasphere.v2.UserOuterClass.User result = new yandex.cloud.api.datasphere.v2.UserOuterClass.User(this);
result.id_ = id_;
result.name_ = name_;
result.email_ = email_;
result.picture_ = picture_;
result.pictureData_ = pictureData_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.datasphere.v2.UserOuterClass.User) {
return mergeFrom((yandex.cloud.api.datasphere.v2.UserOuterClass.User)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datasphere.v2.UserOuterClass.User other) {
if (other == yandex.cloud.api.datasphere.v2.UserOuterClass.User.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getEmail().isEmpty()) {
email_ = other.email_;
onChanged();
}
if (!other.getPicture().isEmpty()) {
picture_ = other.picture_;
onChanged();
}
if (!other.getPictureData().isEmpty()) {
pictureData_ = other.pictureData_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.datasphere.v2.UserOuterClass.User parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datasphere.v2.UserOuterClass.User) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* ID of the user.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the user.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the user.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of the user.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the user.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the user.
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the user.
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the user.
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the user.
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the user.
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object email_ = "";
/**
*
* Email of the user.
*
*
* string email = 3;
* @return The email.
*/
public java.lang.String getEmail() {
java.lang.Object ref = email_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
email_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Email of the user.
*
*
* string email = 3;
* @return The bytes for email.
*/
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Email of the user.
*
*
* string email = 3;
* @param value The email to set.
* @return This builder for chaining.
*/
public Builder setEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
email_ = value;
onChanged();
return this;
}
/**
*
* Email of the user.
*
*
* string email = 3;
* @return This builder for chaining.
*/
public Builder clearEmail() {
email_ = getDefaultInstance().getEmail();
onChanged();
return this;
}
/**
*
* Email of the user.
*
*
* string email = 3;
* @param value The bytes for email to set.
* @return This builder for chaining.
*/
public Builder setEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
email_ = value;
onChanged();
return this;
}
private java.lang.Object picture_ = "";
/**
*
* URL to the user's profile picture.
*
*
* string picture = 4;
* @return The picture.
*/
public java.lang.String getPicture() {
java.lang.Object ref = picture_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
picture_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL to the user's profile picture.
*
*
* string picture = 4;
* @return The bytes for picture.
*/
public com.google.protobuf.ByteString
getPictureBytes() {
java.lang.Object ref = picture_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
picture_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL to the user's profile picture.
*
*
* string picture = 4;
* @param value The picture to set.
* @return This builder for chaining.
*/
public Builder setPicture(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
picture_ = value;
onChanged();
return this;
}
/**
*
* URL to the user's profile picture.
*
*
* string picture = 4;
* @return This builder for chaining.
*/
public Builder clearPicture() {
picture_ = getDefaultInstance().getPicture();
onChanged();
return this;
}
/**
*
* URL to the user's profile picture.
*
*
* string picture = 4;
* @param value The bytes for picture to set.
* @return This builder for chaining.
*/
public Builder setPictureBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
picture_ = value;
onChanged();
return this;
}
private java.lang.Object pictureData_ = "";
/**
*
* An image content of the user's profile picture.
*
*
* string picture_data = 5;
* @return The pictureData.
*/
public java.lang.String getPictureData() {
java.lang.Object ref = pictureData_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pictureData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An image content of the user's profile picture.
*
*
* string picture_data = 5;
* @return The bytes for pictureData.
*/
public com.google.protobuf.ByteString
getPictureDataBytes() {
java.lang.Object ref = pictureData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pictureData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An image content of the user's profile picture.
*
*
* string picture_data = 5;
* @param value The pictureData to set.
* @return This builder for chaining.
*/
public Builder setPictureData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pictureData_ = value;
onChanged();
return this;
}
/**
*
* An image content of the user's profile picture.
*
*
* string picture_data = 5;
* @return This builder for chaining.
*/
public Builder clearPictureData() {
pictureData_ = getDefaultInstance().getPictureData();
onChanged();
return this;
}
/**
*
* An image content of the user's profile picture.
*
*
* string picture_data = 5;
* @param value The bytes for pictureData to set.
* @return This builder for chaining.
*/
public Builder setPictureDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pictureData_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.datasphere.v2.User)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.User)
private static final yandex.cloud.api.datasphere.v2.UserOuterClass.User DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.UserOuterClass.User();
}
public static yandex.cloud.api.datasphere.v2.UserOuterClass.User getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public User parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new User(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.datasphere.v2.UserOuterClass.User getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datasphere_v2_User_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datasphere_v2_User_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n%yandex/cloud/datasphere/v2/user.proto\022" +
"\032yandex.cloud.datasphere.v2\"V\n\004User\022\n\n\002i" +
"d\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005email\030\003 \001(\t\022\017\n\007" +
"picture\030\004 \001(\t\022\024\n\014picture_data\030\005 \001(\tBk\n\036y" +
"andex.cloud.api.datasphere.v2ZIgithub.co" +
"m/yandex-cloud/go-genproto/yandex/cloud/" +
"datasphere/v2;datasphereb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_yandex_cloud_datasphere_v2_User_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_datasphere_v2_User_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datasphere_v2_User_descriptor,
new java.lang.String[] { "Id", "Name", "Email", "Picture", "PictureData", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy