yandex.cloud.api.datasphere.v1.ProjectOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/datasphere/v1/project.proto
package yandex.cloud.api.datasphere.v1;
public final class ProjectOuterClass {
private ProjectOuterClass() {}
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 ProjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v1.Project)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the project.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the project.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of the folder that the project belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder that the project belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
* .google.protobuf.Timestamp created_at = 3;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
*
* Name of the project. 1-63 characters long.
*
*
* string name = 4;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the project. 1-63 characters long.
*
*
* string name = 4;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the project. 0-256 characters long.
*
*
* string description = 5;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the project. 0-256 characters long.
*
*
* string description = 5;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
* @return Whether the settings field is set.
*/
boolean hasSettings();
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
* @return The settings.
*/
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings getSettings();
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
*/
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.SettingsOrBuilder getSettingsOrBuilder();
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
* @return Whether the limits field is set.
*/
boolean hasLimits();
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
* @return The limits.
*/
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits getLimits();
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
*/
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.LimitsOrBuilder getLimitsOrBuilder();
}
/**
*
* A Project resource.
*
*
* Protobuf type {@code yandex.cloud.datasphere.v1.Project}
*/
public static final class Project extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v1.Project)
ProjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use Project.newBuilder() to construct.
private Project(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Project() {
id_ = "";
folderId_ = "";
name_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Project();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Project(
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();
folderId_ = s;
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createdAt_ != null) {
subBuilder = createdAt_.toBuilder();
}
createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdAt_);
createdAt_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 50: {
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.Builder subBuilder = null;
if (settings_ != null) {
subBuilder = settings_.toBuilder();
}
settings_ = input.readMessage(yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(settings_);
settings_ = subBuilder.buildPartial();
}
break;
}
case 58: {
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.Builder subBuilder = null;
if (limits_ != null) {
subBuilder = limits_.toBuilder();
}
limits_ = input.readMessage(yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(limits_);
limits_ = subBuilder.buildPartial();
}
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.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.class, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Builder.class);
}
public interface SettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v1.Project.Settings)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the service account, on whose behalf all operations with clusters will be performed.
*
*
* string service_account_id = 1;
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
*
* ID of the service account, on whose behalf all operations with clusters will be performed.
*
*
* string service_account_id = 1;
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
*
* ID of the subnet where the DataProc cluster resides.
* Currently only subnets created in the availability zone ru-central1-a are supported.
*
*
* string subnet_id = 2;
* @return The subnetId.
*/
java.lang.String getSubnetId();
/**
*
* ID of the subnet where the DataProc cluster resides.
* Currently only subnets created in the availability zone ru-central1-a are supported.
*
*
* string subnet_id = 2;
* @return The bytes for subnetId.
*/
com.google.protobuf.ByteString
getSubnetIdBytes();
/**
*
* ID of the DataProc cluster.
*
*
* string data_proc_cluster_id = 3;
* @return The dataProcClusterId.
*/
java.lang.String getDataProcClusterId();
/**
*
* ID of the DataProc cluster.
*
*
* string data_proc_cluster_id = 3;
* @return The bytes for dataProcClusterId.
*/
com.google.protobuf.ByteString
getDataProcClusterIdBytes();
/**
*
* Commit mode that is assigned to the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings.CommitMode commit_mode = 4;
* @return The enum numeric value on the wire for commitMode.
*/
int getCommitModeValue();
/**
*
* Commit mode that is assigned to the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings.CommitMode commit_mode = 4;
* @return The commitMode.
*/
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode getCommitMode();
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
java.lang.String getSecurityGroupIds(int index);
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index);
}
/**
* Protobuf type {@code yandex.cloud.datasphere.v1.Project.Settings}
*/
public static final class Settings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v1.Project.Settings)
SettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Settings.newBuilder() to construct.
private Settings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Settings() {
serviceAccountId_ = "";
subnetId_ = "";
dataProcClusterId_ = "";
commitMode_ = 0;
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Settings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Settings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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();
serviceAccountId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
subnetId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
dataProcClusterId_ = s;
break;
}
case 32: {
int rawValue = input.readEnum();
commitMode_ = rawValue;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
securityGroupIds_.add(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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_Settings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_Settings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.class, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.datasphere.v1.Project.Settings.CommitMode}
*/
public enum CommitMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* COMMIT_MODE_UNSPECIFIED = 0;
*/
COMMIT_MODE_UNSPECIFIED(0),
/**
*
* Commit happens after the execution of a cell or group of cells or after completion with an error.
*
*
* STANDARD = 1;
*/
STANDARD(1),
/**
*
* Commit happens periodically.
* Also, automatic saving of state occurs when switching to another type of computing resource.
*
*
* AUTO = 2;
*/
AUTO(2),
UNRECOGNIZED(-1),
;
/**
* COMMIT_MODE_UNSPECIFIED = 0;
*/
public static final int COMMIT_MODE_UNSPECIFIED_VALUE = 0;
/**
*
* Commit happens after the execution of a cell or group of cells or after completion with an error.
*
*
* STANDARD = 1;
*/
public static final int STANDARD_VALUE = 1;
/**
*
* Commit happens periodically.
* Also, automatic saving of state occurs when switching to another type of computing resource.
*
*
* AUTO = 2;
*/
public static final int AUTO_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CommitMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static CommitMode forNumber(int value) {
switch (value) {
case 0: return COMMIT_MODE_UNSPECIFIED;
case 1: return STANDARD;
case 2: return AUTO;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CommitMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CommitMode findValueByNumber(int number) {
return CommitMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.getDescriptor().getEnumTypes().get(0);
}
private static final CommitMode[] VALUES = values();
public static CommitMode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CommitMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.datasphere.v1.Project.Settings.CommitMode)
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account, on whose behalf all operations with clusters will be performed.
*
*
* string service_account_id = 1;
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
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();
serviceAccountId_ = s;
return s;
}
}
/**
*
* ID of the service account, on whose behalf all operations with clusters will be performed.
*
*
* string service_account_id = 1;
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBNET_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object subnetId_;
/**
*
* ID of the subnet where the DataProc cluster resides.
* Currently only subnets created in the availability zone ru-central1-a are supported.
*
*
* string subnet_id = 2;
* @return The subnetId.
*/
@java.lang.Override
public java.lang.String getSubnetId() {
java.lang.Object ref = subnetId_;
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();
subnetId_ = s;
return s;
}
}
/**
*
* ID of the subnet where the DataProc cluster resides.
* Currently only subnets created in the availability zone ru-central1-a are supported.
*
*
* string subnet_id = 2;
* @return The bytes for subnetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubnetIdBytes() {
java.lang.Object ref = subnetId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subnetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_PROC_CLUSTER_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object dataProcClusterId_;
/**
*
* ID of the DataProc cluster.
*
*
* string data_proc_cluster_id = 3;
* @return The dataProcClusterId.
*/
@java.lang.Override
public java.lang.String getDataProcClusterId() {
java.lang.Object ref = dataProcClusterId_;
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();
dataProcClusterId_ = s;
return s;
}
}
/**
*
* ID of the DataProc cluster.
*
*
* string data_proc_cluster_id = 3;
* @return The bytes for dataProcClusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDataProcClusterIdBytes() {
java.lang.Object ref = dataProcClusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataProcClusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMIT_MODE_FIELD_NUMBER = 4;
private int commitMode_;
/**
*
* Commit mode that is assigned to the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings.CommitMode commit_mode = 4;
* @return The enum numeric value on the wire for commitMode.
*/
@java.lang.Override public int getCommitModeValue() {
return commitMode_;
}
/**
*
* Commit mode that is assigned to the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings.CommitMode commit_mode = 4;
* @return The commitMode.
*/
@java.lang.Override public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode getCommitMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode result = yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode.valueOf(commitMode_);
return result == null ? yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode.UNRECOGNIZED : result;
}
public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
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(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataProcClusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dataProcClusterId_);
}
if (commitMode_ != yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode.COMMIT_MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, commitMode_);
}
for (int i = 0; i < securityGroupIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, securityGroupIds_.getRaw(i));
}
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(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataProcClusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dataProcClusterId_);
}
if (commitMode_ != yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode.COMMIT_MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, commitMode_);
}
{
int dataSize = 0;
for (int i = 0; i < securityGroupIds_.size(); i++) {
dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i));
}
size += dataSize;
size += 1 * getSecurityGroupIdsList().size();
}
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.v1.ProjectOuterClass.Project.Settings)) {
return super.equals(obj);
}
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings other = (yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings) obj;
if (!getServiceAccountId()
.equals(other.getServiceAccountId())) return false;
if (!getSubnetId()
.equals(other.getSubnetId())) return false;
if (!getDataProcClusterId()
.equals(other.getDataProcClusterId())) return false;
if (commitMode_ != other.commitMode_) return false;
if (!getSecurityGroupIdsList()
.equals(other.getSecurityGroupIdsList())) 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) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().hashCode();
hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER;
hash = (53 * hash) + getSubnetId().hashCode();
hash = (37 * hash) + DATA_PROC_CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getDataProcClusterId().hashCode();
hash = (37 * hash) + COMMIT_MODE_FIELD_NUMBER;
hash = (53 * hash) + commitMode_;
if (getSecurityGroupIdsCount() > 0) {
hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER;
hash = (53 * hash) + getSecurityGroupIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings 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.v1.ProjectOuterClass.Project.Settings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings 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.v1.ProjectOuterClass.Project.Settings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings 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.v1.ProjectOuterClass.Project.Settings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings 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.v1.ProjectOuterClass.Project.Settings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings 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.v1.ProjectOuterClass.Project.Settings 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.v1.Project.Settings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v1.Project.Settings)
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.SettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_Settings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_Settings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.class, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.Builder.class);
}
// Construct using yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.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();
serviceAccountId_ = "";
subnetId_ = "";
dataProcClusterId_ = "";
commitMode_ = 0;
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_Settings_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings getDefaultInstanceForType() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings build() {
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings buildPartial() {
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings result = new yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings(this);
int from_bitField0_ = bitField0_;
result.serviceAccountId_ = serviceAccountId_;
result.subnetId_ = subnetId_;
result.dataProcClusterId_ = dataProcClusterId_;
result.commitMode_ = commitMode_;
if (((bitField0_ & 0x00000001) != 0)) {
securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.securityGroupIds_ = securityGroupIds_;
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.v1.ProjectOuterClass.Project.Settings) {
return mergeFrom((yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings other) {
if (other == yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.getDefaultInstance()) return this;
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
onChanged();
}
if (!other.getSubnetId().isEmpty()) {
subnetId_ = other.subnetId_;
onChanged();
}
if (!other.getDataProcClusterId().isEmpty()) {
dataProcClusterId_ = other.dataProcClusterId_;
onChanged();
}
if (other.commitMode_ != 0) {
setCommitModeValue(other.getCommitModeValue());
}
if (!other.securityGroupIds_.isEmpty()) {
if (securityGroupIds_.isEmpty()) {
securityGroupIds_ = other.securityGroupIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.addAll(other.securityGroupIds_);
}
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.v1.ProjectOuterClass.Project.Settings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object serviceAccountId_ = "";
/**
*
* ID of the service account, on whose behalf all operations with clusters will be performed.
*
*
* string service_account_id = 1;
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the service account, on whose behalf all operations with clusters will be performed.
*
*
* string service_account_id = 1;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account, on whose behalf all operations with clusters will be performed.
*
*
* string service_account_id = 1;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account, on whose behalf all operations with clusters will be performed.
*
*
* string service_account_id = 1;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account, on whose behalf all operations with clusters will be performed.
*
*
* string service_account_id = 1;
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private java.lang.Object subnetId_ = "";
/**
*
* ID of the subnet where the DataProc cluster resides.
* Currently only subnets created in the availability zone ru-central1-a are supported.
*
*
* string subnet_id = 2;
* @return The subnetId.
*/
public java.lang.String getSubnetId() {
java.lang.Object ref = subnetId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subnetId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the subnet where the DataProc cluster resides.
* Currently only subnets created in the availability zone ru-central1-a are supported.
*
*
* string subnet_id = 2;
* @return The bytes for subnetId.
*/
public com.google.protobuf.ByteString
getSubnetIdBytes() {
java.lang.Object ref = subnetId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subnetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the subnet where the DataProc cluster resides.
* Currently only subnets created in the availability zone ru-central1-a are supported.
*
*
* string subnet_id = 2;
* @param value The subnetId to set.
* @return This builder for chaining.
*/
public Builder setSubnetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subnetId_ = value;
onChanged();
return this;
}
/**
*
* ID of the subnet where the DataProc cluster resides.
* Currently only subnets created in the availability zone ru-central1-a are supported.
*
*
* string subnet_id = 2;
* @return This builder for chaining.
*/
public Builder clearSubnetId() {
subnetId_ = getDefaultInstance().getSubnetId();
onChanged();
return this;
}
/**
*
* ID of the subnet where the DataProc cluster resides.
* Currently only subnets created in the availability zone ru-central1-a are supported.
*
*
* string subnet_id = 2;
* @param value The bytes for subnetId to set.
* @return This builder for chaining.
*/
public Builder setSubnetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subnetId_ = value;
onChanged();
return this;
}
private java.lang.Object dataProcClusterId_ = "";
/**
*
* ID of the DataProc cluster.
*
*
* string data_proc_cluster_id = 3;
* @return The dataProcClusterId.
*/
public java.lang.String getDataProcClusterId() {
java.lang.Object ref = dataProcClusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataProcClusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DataProc cluster.
*
*
* string data_proc_cluster_id = 3;
* @return The bytes for dataProcClusterId.
*/
public com.google.protobuf.ByteString
getDataProcClusterIdBytes() {
java.lang.Object ref = dataProcClusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataProcClusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DataProc cluster.
*
*
* string data_proc_cluster_id = 3;
* @param value The dataProcClusterId to set.
* @return This builder for chaining.
*/
public Builder setDataProcClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataProcClusterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DataProc cluster.
*
*
* string data_proc_cluster_id = 3;
* @return This builder for chaining.
*/
public Builder clearDataProcClusterId() {
dataProcClusterId_ = getDefaultInstance().getDataProcClusterId();
onChanged();
return this;
}
/**
*
* ID of the DataProc cluster.
*
*
* string data_proc_cluster_id = 3;
* @param value The bytes for dataProcClusterId to set.
* @return This builder for chaining.
*/
public Builder setDataProcClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataProcClusterId_ = value;
onChanged();
return this;
}
private int commitMode_ = 0;
/**
*
* Commit mode that is assigned to the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings.CommitMode commit_mode = 4;
* @return The enum numeric value on the wire for commitMode.
*/
@java.lang.Override public int getCommitModeValue() {
return commitMode_;
}
/**
*
* Commit mode that is assigned to the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings.CommitMode commit_mode = 4;
* @param value The enum numeric value on the wire for commitMode to set.
* @return This builder for chaining.
*/
public Builder setCommitModeValue(int value) {
commitMode_ = value;
onChanged();
return this;
}
/**
*
* Commit mode that is assigned to the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings.CommitMode commit_mode = 4;
* @return The commitMode.
*/
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode getCommitMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode result = yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode.valueOf(commitMode_);
return result == null ? yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode.UNRECOGNIZED : result;
}
/**
*
* Commit mode that is assigned to the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings.CommitMode commit_mode = 4;
* @param value The commitMode to set.
* @return This builder for chaining.
*/
public Builder setCommitMode(yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.CommitMode value) {
if (value == null) {
throw new NullPointerException();
}
commitMode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Commit mode that is assigned to the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings.CommitMode commit_mode = 4;
* @return This builder for chaining.
*/
public Builder clearCommitMode() {
commitMode_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSecurityGroupIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @param index The index to set the value at.
* @param value The securityGroupIds to set.
* @return This builder for chaining.
*/
public Builder setSecurityGroupIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.set(index, value);
onChanged();
return this;
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @param value The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @param values The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addAllSecurityGroupIds(
java.lang.Iterable values) {
ensureSecurityGroupIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, securityGroupIds_);
onChanged();
return this;
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @return This builder for chaining.
*/
public Builder clearSecurityGroupIds() {
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Network interfaces security groups.
*
*
* repeated string security_group_ids = 5;
* @param value The bytes of the securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(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.v1.Project.Settings)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v1.Project.Settings)
private static final yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings();
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Settings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Settings(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.v1.ProjectOuterClass.Project.Settings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LimitsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v1.Project.Limits)
com.google.protobuf.MessageOrBuilder {
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
* @return Whether the maxUnitsPerHour field is set.
*/
boolean hasMaxUnitsPerHour();
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
* @return The maxUnitsPerHour.
*/
com.google.protobuf.Int64Value getMaxUnitsPerHour();
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
*/
com.google.protobuf.Int64ValueOrBuilder getMaxUnitsPerHourOrBuilder();
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
* @return Whether the maxUnitsPerExecution field is set.
*/
boolean hasMaxUnitsPerExecution();
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
* @return The maxUnitsPerExecution.
*/
com.google.protobuf.Int64Value getMaxUnitsPerExecution();
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
*/
com.google.protobuf.Int64ValueOrBuilder getMaxUnitsPerExecutionOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.datasphere.v1.Project.Limits}
*/
public static final class Limits extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v1.Project.Limits)
LimitsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Limits.newBuilder() to construct.
private Limits(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Limits() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Limits();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Limits(
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 18: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (maxUnitsPerHour_ != null) {
subBuilder = maxUnitsPerHour_.toBuilder();
}
maxUnitsPerHour_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxUnitsPerHour_);
maxUnitsPerHour_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (maxUnitsPerExecution_ != null) {
subBuilder = maxUnitsPerExecution_.toBuilder();
}
maxUnitsPerExecution_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxUnitsPerExecution_);
maxUnitsPerExecution_ = subBuilder.buildPartial();
}
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.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_Limits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_Limits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.class, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.Builder.class);
}
public static final int MAX_UNITS_PER_HOUR_FIELD_NUMBER = 2;
private com.google.protobuf.Int64Value maxUnitsPerHour_;
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
* @return Whether the maxUnitsPerHour field is set.
*/
@java.lang.Override
public boolean hasMaxUnitsPerHour() {
return maxUnitsPerHour_ != null;
}
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
* @return The maxUnitsPerHour.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getMaxUnitsPerHour() {
return maxUnitsPerHour_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxUnitsPerHour_;
}
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getMaxUnitsPerHourOrBuilder() {
return getMaxUnitsPerHour();
}
public static final int MAX_UNITS_PER_EXECUTION_FIELD_NUMBER = 3;
private com.google.protobuf.Int64Value maxUnitsPerExecution_;
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
* @return Whether the maxUnitsPerExecution field is set.
*/
@java.lang.Override
public boolean hasMaxUnitsPerExecution() {
return maxUnitsPerExecution_ != null;
}
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
* @return The maxUnitsPerExecution.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getMaxUnitsPerExecution() {
return maxUnitsPerExecution_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxUnitsPerExecution_;
}
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getMaxUnitsPerExecutionOrBuilder() {
return getMaxUnitsPerExecution();
}
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 (maxUnitsPerHour_ != null) {
output.writeMessage(2, getMaxUnitsPerHour());
}
if (maxUnitsPerExecution_ != null) {
output.writeMessage(3, getMaxUnitsPerExecution());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (maxUnitsPerHour_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMaxUnitsPerHour());
}
if (maxUnitsPerExecution_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMaxUnitsPerExecution());
}
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.v1.ProjectOuterClass.Project.Limits)) {
return super.equals(obj);
}
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits other = (yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits) obj;
if (hasMaxUnitsPerHour() != other.hasMaxUnitsPerHour()) return false;
if (hasMaxUnitsPerHour()) {
if (!getMaxUnitsPerHour()
.equals(other.getMaxUnitsPerHour())) return false;
}
if (hasMaxUnitsPerExecution() != other.hasMaxUnitsPerExecution()) return false;
if (hasMaxUnitsPerExecution()) {
if (!getMaxUnitsPerExecution()
.equals(other.getMaxUnitsPerExecution())) 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();
if (hasMaxUnitsPerHour()) {
hash = (37 * hash) + MAX_UNITS_PER_HOUR_FIELD_NUMBER;
hash = (53 * hash) + getMaxUnitsPerHour().hashCode();
}
if (hasMaxUnitsPerExecution()) {
hash = (37 * hash) + MAX_UNITS_PER_EXECUTION_FIELD_NUMBER;
hash = (53 * hash) + getMaxUnitsPerExecution().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits 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.v1.ProjectOuterClass.Project.Limits parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits 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.v1.ProjectOuterClass.Project.Limits parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits 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.v1.ProjectOuterClass.Project.Limits parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits 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.v1.ProjectOuterClass.Project.Limits parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits 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.v1.ProjectOuterClass.Project.Limits 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.v1.Project.Limits}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v1.Project.Limits)
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.LimitsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_Limits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_Limits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.class, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.Builder.class);
}
// Construct using yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.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();
if (maxUnitsPerHourBuilder_ == null) {
maxUnitsPerHour_ = null;
} else {
maxUnitsPerHour_ = null;
maxUnitsPerHourBuilder_ = null;
}
if (maxUnitsPerExecutionBuilder_ == null) {
maxUnitsPerExecution_ = null;
} else {
maxUnitsPerExecution_ = null;
maxUnitsPerExecutionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_Limits_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits getDefaultInstanceForType() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits build() {
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits buildPartial() {
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits result = new yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits(this);
if (maxUnitsPerHourBuilder_ == null) {
result.maxUnitsPerHour_ = maxUnitsPerHour_;
} else {
result.maxUnitsPerHour_ = maxUnitsPerHourBuilder_.build();
}
if (maxUnitsPerExecutionBuilder_ == null) {
result.maxUnitsPerExecution_ = maxUnitsPerExecution_;
} else {
result.maxUnitsPerExecution_ = maxUnitsPerExecutionBuilder_.build();
}
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.v1.ProjectOuterClass.Project.Limits) {
return mergeFrom((yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits other) {
if (other == yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.getDefaultInstance()) return this;
if (other.hasMaxUnitsPerHour()) {
mergeMaxUnitsPerHour(other.getMaxUnitsPerHour());
}
if (other.hasMaxUnitsPerExecution()) {
mergeMaxUnitsPerExecution(other.getMaxUnitsPerExecution());
}
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.v1.ProjectOuterClass.Project.Limits parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Int64Value maxUnitsPerHour_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxUnitsPerHourBuilder_;
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
* @return Whether the maxUnitsPerHour field is set.
*/
public boolean hasMaxUnitsPerHour() {
return maxUnitsPerHourBuilder_ != null || maxUnitsPerHour_ != null;
}
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
* @return The maxUnitsPerHour.
*/
public com.google.protobuf.Int64Value getMaxUnitsPerHour() {
if (maxUnitsPerHourBuilder_ == null) {
return maxUnitsPerHour_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxUnitsPerHour_;
} else {
return maxUnitsPerHourBuilder_.getMessage();
}
}
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
*/
public Builder setMaxUnitsPerHour(com.google.protobuf.Int64Value value) {
if (maxUnitsPerHourBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxUnitsPerHour_ = value;
onChanged();
} else {
maxUnitsPerHourBuilder_.setMessage(value);
}
return this;
}
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
*/
public Builder setMaxUnitsPerHour(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (maxUnitsPerHourBuilder_ == null) {
maxUnitsPerHour_ = builderForValue.build();
onChanged();
} else {
maxUnitsPerHourBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
*/
public Builder mergeMaxUnitsPerHour(com.google.protobuf.Int64Value value) {
if (maxUnitsPerHourBuilder_ == null) {
if (maxUnitsPerHour_ != null) {
maxUnitsPerHour_ =
com.google.protobuf.Int64Value.newBuilder(maxUnitsPerHour_).mergeFrom(value).buildPartial();
} else {
maxUnitsPerHour_ = value;
}
onChanged();
} else {
maxUnitsPerHourBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
*/
public Builder clearMaxUnitsPerHour() {
if (maxUnitsPerHourBuilder_ == null) {
maxUnitsPerHour_ = null;
onChanged();
} else {
maxUnitsPerHour_ = null;
maxUnitsPerHourBuilder_ = null;
}
return this;
}
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
*/
public com.google.protobuf.Int64Value.Builder getMaxUnitsPerHourBuilder() {
onChanged();
return getMaxUnitsPerHourFieldBuilder().getBuilder();
}
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
*/
public com.google.protobuf.Int64ValueOrBuilder getMaxUnitsPerHourOrBuilder() {
if (maxUnitsPerHourBuilder_ != null) {
return maxUnitsPerHourBuilder_.getMessageOrBuilder();
} else {
return maxUnitsPerHour_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : maxUnitsPerHour_;
}
}
/**
*
* The number of units that can be spent per hour.
*
*
* .google.protobuf.Int64Value max_units_per_hour = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getMaxUnitsPerHourFieldBuilder() {
if (maxUnitsPerHourBuilder_ == null) {
maxUnitsPerHourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getMaxUnitsPerHour(),
getParentForChildren(),
isClean());
maxUnitsPerHour_ = null;
}
return maxUnitsPerHourBuilder_;
}
private com.google.protobuf.Int64Value maxUnitsPerExecution_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxUnitsPerExecutionBuilder_;
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
* @return Whether the maxUnitsPerExecution field is set.
*/
public boolean hasMaxUnitsPerExecution() {
return maxUnitsPerExecutionBuilder_ != null || maxUnitsPerExecution_ != null;
}
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
* @return The maxUnitsPerExecution.
*/
public com.google.protobuf.Int64Value getMaxUnitsPerExecution() {
if (maxUnitsPerExecutionBuilder_ == null) {
return maxUnitsPerExecution_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxUnitsPerExecution_;
} else {
return maxUnitsPerExecutionBuilder_.getMessage();
}
}
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
*/
public Builder setMaxUnitsPerExecution(com.google.protobuf.Int64Value value) {
if (maxUnitsPerExecutionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxUnitsPerExecution_ = value;
onChanged();
} else {
maxUnitsPerExecutionBuilder_.setMessage(value);
}
return this;
}
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
*/
public Builder setMaxUnitsPerExecution(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (maxUnitsPerExecutionBuilder_ == null) {
maxUnitsPerExecution_ = builderForValue.build();
onChanged();
} else {
maxUnitsPerExecutionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
*/
public Builder mergeMaxUnitsPerExecution(com.google.protobuf.Int64Value value) {
if (maxUnitsPerExecutionBuilder_ == null) {
if (maxUnitsPerExecution_ != null) {
maxUnitsPerExecution_ =
com.google.protobuf.Int64Value.newBuilder(maxUnitsPerExecution_).mergeFrom(value).buildPartial();
} else {
maxUnitsPerExecution_ = value;
}
onChanged();
} else {
maxUnitsPerExecutionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
*/
public Builder clearMaxUnitsPerExecution() {
if (maxUnitsPerExecutionBuilder_ == null) {
maxUnitsPerExecution_ = null;
onChanged();
} else {
maxUnitsPerExecution_ = null;
maxUnitsPerExecutionBuilder_ = null;
}
return this;
}
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
*/
public com.google.protobuf.Int64Value.Builder getMaxUnitsPerExecutionBuilder() {
onChanged();
return getMaxUnitsPerExecutionFieldBuilder().getBuilder();
}
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
*/
public com.google.protobuf.Int64ValueOrBuilder getMaxUnitsPerExecutionOrBuilder() {
if (maxUnitsPerExecutionBuilder_ != null) {
return maxUnitsPerExecutionBuilder_.getMessageOrBuilder();
} else {
return maxUnitsPerExecution_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : maxUnitsPerExecution_;
}
}
/**
*
* The number of units that can be spent on the one execution.
*
*
* .google.protobuf.Int64Value max_units_per_execution = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getMaxUnitsPerExecutionFieldBuilder() {
if (maxUnitsPerExecutionBuilder_ == null) {
maxUnitsPerExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getMaxUnitsPerExecution(),
getParentForChildren(),
isClean());
maxUnitsPerExecution_ = null;
}
return maxUnitsPerExecutionBuilder_;
}
@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.v1.Project.Limits)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v1.Project.Limits)
private static final yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits();
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Limits parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Limits(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.v1.ProjectOuterClass.Project.Limits getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the project.
*
*
* 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 project.
*
*
* 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 FOLDER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder that the project belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
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();
folderId_ = s;
return s;
}
}
/**
*
* ID of the folder that the project belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp createdAt_;
/**
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
* .google.protobuf.Timestamp created_at = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object name_;
/**
*
* Name of the project. 1-63 characters long.
*
*
* string name = 4;
* @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 project. 1-63 characters long.
*
*
* string name = 4;
* @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 DESCRIPTION_FIELD_NUMBER = 5;
private volatile java.lang.Object description_;
/**
*
* Description of the project. 0-256 characters long.
*
*
* string description = 5;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* Description of the project. 0-256 characters long.
*
*
* string description = 5;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SETTINGS_FIELD_NUMBER = 6;
private yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings settings_;
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
* @return Whether the settings field is set.
*/
@java.lang.Override
public boolean hasSettings() {
return settings_ != null;
}
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
* @return The settings.
*/
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings getSettings() {
return settings_ == null ? yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.getDefaultInstance() : settings_;
}
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
*/
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.SettingsOrBuilder getSettingsOrBuilder() {
return getSettings();
}
public static final int LIMITS_FIELD_NUMBER = 7;
private yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits limits_;
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
* @return Whether the limits field is set.
*/
@java.lang.Override
public boolean hasLimits() {
return limits_ != null;
}
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
* @return The limits.
*/
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits getLimits() {
return limits_ == null ? yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.getDefaultInstance() : limits_;
}
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
*/
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.LimitsOrBuilder getLimitsOrBuilder() {
return getLimits();
}
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(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_);
}
if (createdAt_ != null) {
output.writeMessage(3, getCreatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
}
if (settings_ != null) {
output.writeMessage(6, getSettings());
}
if (limits_ != null) {
output.writeMessage(7, getLimits());
}
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(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCreatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
}
if (settings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSettings());
}
if (limits_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getLimits());
}
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.v1.ProjectOuterClass.Project)) {
return super.equals(obj);
}
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project other = (yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasSettings() != other.hasSettings()) return false;
if (hasSettings()) {
if (!getSettings()
.equals(other.getSettings())) return false;
}
if (hasLimits() != other.hasLimits()) return false;
if (hasLimits()) {
if (!getLimits()
.equals(other.getLimits())) 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) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasSettings()) {
hash = (37 * hash) + SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getSettings().hashCode();
}
if (hasLimits()) {
hash = (37 * hash) + LIMITS_FIELD_NUMBER;
hash = (53 * hash) + getLimits().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project 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.v1.ProjectOuterClass.Project parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project 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.v1.ProjectOuterClass.Project parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project 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.v1.ProjectOuterClass.Project parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project 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.v1.ProjectOuterClass.Project parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project 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.v1.ProjectOuterClass.Project 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;
}
/**
*
* A Project resource.
*
*
* Protobuf type {@code yandex.cloud.datasphere.v1.Project}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v1.Project)
yandex.cloud.api.datasphere.v1.ProjectOuterClass.ProjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.class, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Builder.class);
}
// Construct using yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.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_ = "";
folderId_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
name_ = "";
description_ = "";
if (settingsBuilder_ == null) {
settings_ = null;
} else {
settings_ = null;
settingsBuilder_ = null;
}
if (limitsBuilder_ == null) {
limits_ = null;
} else {
limits_ = null;
limitsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.internal_static_yandex_cloud_datasphere_v1_Project_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project getDefaultInstanceForType() {
return yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project build() {
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project buildPartial() {
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project result = new yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project(this);
result.id_ = id_;
result.folderId_ = folderId_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
if (settingsBuilder_ == null) {
result.settings_ = settings_;
} else {
result.settings_ = settingsBuilder_.build();
}
if (limitsBuilder_ == null) {
result.limits_ = limits_;
} else {
result.limits_ = limitsBuilder_.build();
}
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.v1.ProjectOuterClass.Project) {
return mergeFrom((yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project other) {
if (other == yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.hasSettings()) {
mergeSettings(other.getSettings());
}
if (other.hasLimits()) {
mergeLimits(other.getLimits());
}
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.v1.ProjectOuterClass.Project parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* ID of the project.
*
*
* 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 project.
*
*
* 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 project.
*
*
* 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 project.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the project.
*
*
* 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 folderId_ = "";
/**
*
* ID of the folder that the project belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the folder that the project belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder that the project belongs to.
*
*
* string folder_id = 2;
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder that the project belongs to.
*
*
* string folder_id = 2;
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder that the project belongs to.
*
*
* string folder_id = 2;
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
* .google.protobuf.Timestamp created_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* Name of the project. 1-63 characters long.
*
*
* string name = 4;
* @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 project. 1-63 characters long.
*
*
* string name = 4;
* @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 project. 1-63 characters long.
*
*
* string name = 4;
* @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 project. 1-63 characters long.
*
*
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the project. 1-63 characters long.
*
*
* string name = 4;
* @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 description_ = "";
/**
*
* Description of the project. 0-256 characters long.
*
*
* string description = 5;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the project. 0-256 characters long.
*
*
* string description = 5;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the project. 0-256 characters long.
*
*
* string description = 5;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the project. 0-256 characters long.
*
*
* string description = 5;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the project. 0-256 characters long.
*
*
* string description = 5;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings settings_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.Builder, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.SettingsOrBuilder> settingsBuilder_;
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
* @return Whether the settings field is set.
*/
public boolean hasSettings() {
return settingsBuilder_ != null || settings_ != null;
}
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
* @return The settings.
*/
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings getSettings() {
if (settingsBuilder_ == null) {
return settings_ == null ? yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.getDefaultInstance() : settings_;
} else {
return settingsBuilder_.getMessage();
}
}
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
*/
public Builder setSettings(yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings value) {
if (settingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
settings_ = value;
onChanged();
} else {
settingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
*/
public Builder setSettings(
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.Builder builderForValue) {
if (settingsBuilder_ == null) {
settings_ = builderForValue.build();
onChanged();
} else {
settingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
*/
public Builder mergeSettings(yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings value) {
if (settingsBuilder_ == null) {
if (settings_ != null) {
settings_ =
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.newBuilder(settings_).mergeFrom(value).buildPartial();
} else {
settings_ = value;
}
onChanged();
} else {
settingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
*/
public Builder clearSettings() {
if (settingsBuilder_ == null) {
settings_ = null;
onChanged();
} else {
settings_ = null;
settingsBuilder_ = null;
}
return this;
}
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
*/
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.Builder getSettingsBuilder() {
onChanged();
return getSettingsFieldBuilder().getBuilder();
}
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
*/
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.SettingsOrBuilder getSettingsOrBuilder() {
if (settingsBuilder_ != null) {
return settingsBuilder_.getMessageOrBuilder();
} else {
return settings_ == null ?
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.getDefaultInstance() : settings_;
}
}
/**
*
* Settings of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Settings settings = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.Builder, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.SettingsOrBuilder>
getSettingsFieldBuilder() {
if (settingsBuilder_ == null) {
settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Settings.Builder, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.SettingsOrBuilder>(
getSettings(),
getParentForChildren(),
isClean());
settings_ = null;
}
return settingsBuilder_;
}
private yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits limits_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.Builder, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.LimitsOrBuilder> limitsBuilder_;
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
* @return Whether the limits field is set.
*/
public boolean hasLimits() {
return limitsBuilder_ != null || limits_ != null;
}
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
* @return The limits.
*/
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits getLimits() {
if (limitsBuilder_ == null) {
return limits_ == null ? yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.getDefaultInstance() : limits_;
} else {
return limitsBuilder_.getMessage();
}
}
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
*/
public Builder setLimits(yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits value) {
if (limitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
limits_ = value;
onChanged();
} else {
limitsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
*/
public Builder setLimits(
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.Builder builderForValue) {
if (limitsBuilder_ == null) {
limits_ = builderForValue.build();
onChanged();
} else {
limitsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
*/
public Builder mergeLimits(yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits value) {
if (limitsBuilder_ == null) {
if (limits_ != null) {
limits_ =
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.newBuilder(limits_).mergeFrom(value).buildPartial();
} else {
limits_ = value;
}
onChanged();
} else {
limitsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
*/
public Builder clearLimits() {
if (limitsBuilder_ == null) {
limits_ = null;
onChanged();
} else {
limits_ = null;
limitsBuilder_ = null;
}
return this;
}
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
*/
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.Builder getLimitsBuilder() {
onChanged();
return getLimitsFieldBuilder().getBuilder();
}
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
*/
public yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.LimitsOrBuilder getLimitsOrBuilder() {
if (limitsBuilder_ != null) {
return limitsBuilder_.getMessageOrBuilder();
} else {
return limits_ == null ?
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.getDefaultInstance() : limits_;
}
}
/**
*
* Limits of the project.
*
*
* .yandex.cloud.datasphere.v1.Project.Limits limits = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.Builder, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.LimitsOrBuilder>
getLimitsFieldBuilder() {
if (limitsBuilder_ == null) {
limitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.Limits.Builder, yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project.LimitsOrBuilder>(
getLimits(),
getParentForChildren(),
isClean());
limits_ = null;
}
return limitsBuilder_;
}
@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.v1.Project)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v1.Project)
private static final yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project();
}
public static yandex.cloud.api.datasphere.v1.ProjectOuterClass.Project getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Project parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Project(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.v1.ProjectOuterClass.Project getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datasphere_v1_Project_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datasphere_v1_Project_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datasphere_v1_Project_Settings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datasphere_v1_Project_Settings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datasphere_v1_Project_Limits_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datasphere_v1_Project_Limits_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/v1/project.pro" +
"to\022\032yandex.cloud.datasphere.v1\032\037google/p" +
"rotobuf/timestamp.proto\032\036google/protobuf" +
"/wrappers.proto\"\377\004\n\007Project\022\n\n\002id\030\001 \001(\t\022" +
"\021\n\tfolder_id\030\002 \001(\t\022.\n\ncreated_at\030\003 \001(\0132\032" +
".google.protobuf.Timestamp\022\014\n\004name\030\004 \001(\t" +
"\022\023\n\013description\030\005 \001(\t\022>\n\010settings\030\006 \001(\0132" +
",.yandex.cloud.datasphere.v1.Project.Set" +
"tings\022:\n\006limits\030\007 \001(\0132*.yandex.cloud.dat" +
"asphere.v1.Project.Limits\032\204\002\n\010Settings\022\032" +
"\n\022service_account_id\030\001 \001(\t\022\021\n\tsubnet_id\030" +
"\002 \001(\t\022\034\n\024data_proc_cluster_id\030\003 \001(\t\022L\n\013c" +
"ommit_mode\030\004 \001(\01627.yandex.cloud.datasphe" +
"re.v1.Project.Settings.CommitMode\022\032\n\022sec" +
"urity_group_ids\030\005 \003(\t\"A\n\nCommitMode\022\033\n\027C" +
"OMMIT_MODE_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\010" +
"\n\004AUTO\020\002\032\177\n\006Limits\0227\n\022max_units_per_hour" +
"\030\002 \001(\0132\033.google.protobuf.Int64Value\022<\n\027m" +
"ax_units_per_execution\030\003 \001(\0132\033.google.pr" +
"otobuf.Int64ValueBk\n\036yandex.cloud.api.da" +
"tasphere.v1ZIgithub.com/yandex-cloud/go-" +
"genproto/yandex/cloud/datasphere/v1;data" +
"sphereb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
com.google.protobuf.WrappersProto.getDescriptor(),
});
internal_static_yandex_cloud_datasphere_v1_Project_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_datasphere_v1_Project_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datasphere_v1_Project_descriptor,
new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Settings", "Limits", });
internal_static_yandex_cloud_datasphere_v1_Project_Settings_descriptor =
internal_static_yandex_cloud_datasphere_v1_Project_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_datasphere_v1_Project_Settings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datasphere_v1_Project_Settings_descriptor,
new java.lang.String[] { "ServiceAccountId", "SubnetId", "DataProcClusterId", "CommitMode", "SecurityGroupIds", });
internal_static_yandex_cloud_datasphere_v1_Project_Limits_descriptor =
internal_static_yandex_cloud_datasphere_v1_Project_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_datasphere_v1_Project_Limits_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datasphere_v1_Project_Limits_descriptor,
new java.lang.String[] { "MaxUnitsPerHour", "MaxUnitsPerExecution", });
com.google.protobuf.TimestampProto.getDescriptor();
com.google.protobuf.WrappersProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy