Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClustersResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently you can only use filtering with the [Cluster.name] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
* Example of a filter expression: `name NOT IN 'test,beta'`.
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently you can only use filtering with the [Cluster.name] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
* Example of a filter expression: `name NOT IN 'test,beta'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.ListClustersRequest}
*/
public static final class ListClustersRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.v1.ListClustersRequest)
ListClustersRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListClustersRequest.newBuilder() to construct.
private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListClustersRequest() {
folderId_ = "";
pageToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListClustersRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClustersRequest(
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();
folderId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClustersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClustersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to list SQL Server clusters in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list SQL Server clusters in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClustersResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_FIELD_NUMBER = 4;
private volatile java.lang.Object filter_;
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently you can only use filtering with the [Cluster.name] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
* Example of a filter expression: `name NOT IN 'test,beta'`.
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently you can only use filtering with the [Cluster.name] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
* Example of a filter expression: `name NOT IN 'test,beta'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_);
}
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(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
}
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.mdb.sqlserver.v1.PSCS.ListClustersRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest other = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (!getFilter()
.equals(other.getFilter())) 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) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest 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.mdb.sqlserver.v1.PSCS.ListClustersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest 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.mdb.sqlserver.v1.PSCS.ListClustersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest 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.mdb.sqlserver.v1.PSCS.ListClustersRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest 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.mdb.sqlserver.v1.PSCS.ListClustersRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest 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.mdb.sqlserver.v1.PSCS.ListClustersRequest 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.mdb.sqlserver.v1.ListClustersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.ListClustersRequest)
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClustersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClustersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest.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();
folderId_ = "";
pageSize_ = 0L;
pageToken_ = "";
filter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClustersRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest build() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest result = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest(this);
result.folderId_ = folderId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.filter_ = filter_;
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.mdb.sqlserver.v1.PSCS.ListClustersRequest) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
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.mdb.sqlserver.v1.PSCS.ListClustersRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to list SQL Server clusters in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list SQL Server clusters in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 long pageSize_ ;
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClustersResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClustersResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClustersResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
* Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
private java.lang.Object filter_ = "";
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently you can only use filtering with the [Cluster.name] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
* Example of a filter expression: `name NOT IN 'test,beta'`.
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently you can only use filtering with the [Cluster.name] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
* Example of a filter expression: `name NOT IN 'test,beta'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently you can only use filtering with the [Cluster.name] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
* Example of a filter expression: `name NOT IN 'test,beta'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
return this;
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently you can only use filtering with the [Cluster.name] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
* Example of a filter expression: `name NOT IN 'test,beta'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently you can only use filtering with the [Cluster.name] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
* Example of a filter expression: `name NOT IN 'test,beta'`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = 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.mdb.sqlserver.v1.ListClustersRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.ListClustersRequest)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListClustersRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListClustersRequest(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.mdb.sqlserver.v1.PSCS.ListClustersRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClustersResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.v1.ListClustersResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClustersRequest.page_size], use the `next_page_token` as the value for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent list request has its own `next_page_token` to continue paging through the results.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClustersRequest.page_size], use the `next_page_token` as the value for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent list request has its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.ListClustersResponse}
*/
public static final class ListClustersResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.v1.ListClustersResponse)
ListClustersResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListClustersResponse.newBuilder() to construct.
private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListClustersResponse() {
clusters_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListClustersResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClustersResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
clusters_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
clusters_.add(
input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = 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)) {
clusters_ = java.util.Collections.unmodifiableList(clusters_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClustersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClustersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse.Builder.class);
}
public static final int CLUSTERS_FIELD_NUMBER = 1;
private java.util.List clusters_;
/**
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Cluster clusters = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterOrBuilder getClustersOrBuilder(
int index) {
return clusters_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClustersRequest.page_size], use the `next_page_token` as the value for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent list request has its own `next_page_token` to continue paging through the results.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClustersRequest.page_size], use the `next_page_token` as the value for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent list request has its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < clusters_.size(); i++) {
output.writeMessage(1, clusters_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < clusters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, clusters_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
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.mdb.sqlserver.v1.PSCS.ListClustersResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse other = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse) obj;
if (!getClustersList()
.equals(other.getClustersList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) 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 (getClustersCount() > 0) {
hash = (37 * hash) + CLUSTERS_FIELD_NUMBER;
hash = (53 * hash) + getClustersList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse 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.mdb.sqlserver.v1.PSCS.ListClustersResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse 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.mdb.sqlserver.v1.PSCS.ListClustersResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse 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.mdb.sqlserver.v1.PSCS.ListClustersResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse 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.mdb.sqlserver.v1.PSCS.ListClustersResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse 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.mdb.sqlserver.v1.PSCS.ListClustersResponse 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.mdb.sqlserver.v1.ListClustersResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.ListClustersResponse)
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClustersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClustersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getClustersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (clustersBuilder_ == null) {
clusters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
clustersBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClustersResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse build() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse result = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse(this);
int from_bitField0_ = bitField0_;
if (clustersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
clusters_ = java.util.Collections.unmodifiableList(clusters_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.clusters_ = clusters_;
} else {
result.clusters_ = clustersBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
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.mdb.sqlserver.v1.PSCS.ListClustersResponse) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse.getDefaultInstance()) return this;
if (clustersBuilder_ == null) {
if (!other.clusters_.isEmpty()) {
if (clusters_.isEmpty()) {
clusters_ = other.clusters_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureClustersIsMutable();
clusters_.addAll(other.clusters_);
}
onChanged();
}
} else {
if (!other.clusters_.isEmpty()) {
if (clustersBuilder_.isEmpty()) {
clustersBuilder_.dispose();
clustersBuilder_ = null;
clusters_ = other.clusters_;
bitField0_ = (bitField0_ & ~0x00000001);
clustersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClustersFieldBuilder() : null;
} else {
clustersBuilder_.addAllMessages(other.clusters_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
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.mdb.sqlserver.v1.PSCS.ListClustersResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List clusters_ =
java.util.Collections.emptyList();
private void ensureClustersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
clusters_ = new java.util.ArrayList(clusters_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster, yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterOrBuilder> clustersBuilder_;
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClustersRequest.page_size], use the `next_page_token` as the value for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent list request has its own `next_page_token` to continue paging through the results.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClustersRequest.page_size], use the `next_page_token` as the value for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent list request has its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClustersRequest.page_size], use the `next_page_token` as the value for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent list request has its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClustersRequest.page_size], use the `next_page_token` as the value for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent list request has its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClustersRequest.page_size], use the `next_page_token` as the value for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent list request has its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = 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.mdb.sqlserver.v1.ListClustersResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.ListClustersResponse)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClustersResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListClustersResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListClustersResponse(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.mdb.sqlserver.v1.PSCS.ListClustersResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateClusterRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.v1.CreateClusterRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create the SQL Server cluster in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* Deployment environment of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 5;
* @return The enum numeric value on the wire for environment.
*/
int getEnvironmentValue();
/**
*
* Deployment environment of the SQL Server cluster.
*
* ID of the network to create the SQL Server cluster in.
*
*
* string network_id = 10 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for networkId.
*/
com.google.protobuf.ByteString
getNetworkIdBytes();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
java.lang.String getSecurityGroupIds(int index);
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @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);
/**
*
* Determines whether the cluster is protected from being deleted.
*
* Name of SQL Collation that cluster will be created with.
*
*
* string sqlcollation = 13 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for sqlcollation.
*/
com.google.protobuf.ByteString
getSqlcollationBytes();
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @return A list containing the hostGroupIds.
*/
java.util.List
getHostGroupIdsList();
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @return The count of hostGroupIds.
*/
int getHostGroupIdsCount();
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the element to return.
* @return The hostGroupIds at the given index.
*/
java.lang.String getHostGroupIds(int index);
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the value to return.
* @return The bytes of the hostGroupIds at the given index.
*/
com.google.protobuf.ByteString
getHostGroupIdsBytes(int index);
/**
*
* ID of the service account used for access to Object Storage.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, "project":"mvp" or "source":"dictionary".
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ENVIRONMENT_FIELD_NUMBER = 5;
private int environment_;
/**
*
* Deployment environment of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 5;
* @return The enum numeric value on the wire for environment.
*/
@java.lang.Override public int getEnvironmentValue() {
return environment_;
}
/**
*
* Deployment environment of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 5;
* @return The environment.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.UNRECOGNIZED : result;
}
public static final int CONFIG_SPEC_FIELD_NUMBER = 6;
private yandex.cloud.api.mdb.sqlserver.v1.PSCS.ConfigSpec configSpec_;
/**
*
* Configurations of SQL Server and hosts of the cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ConfigSpec config_spec = 6;
* @return Whether the configSpec field is set.
*/
@java.lang.Override
public boolean hasConfigSpec() {
return configSpec_ != null;
}
/**
*
* Configurations of SQL Server and hosts of the cluster.
*
* ID of the network to create the SQL Server cluster in.
*
*
* string network_id = 10 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for networkId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNetworkIdBytes() {
java.lang.Object ref = networkId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
networkId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 11;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @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);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @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);
}
public static final int DELETION_PROTECTION_FIELD_NUMBER = 12;
private boolean deletionProtection_;
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* bool deletion_protection = 12;
* @return The deletionProtection.
*/
@java.lang.Override
public boolean getDeletionProtection() {
return deletionProtection_;
}
public static final int SQLCOLLATION_FIELD_NUMBER = 13;
private volatile java.lang.Object sqlcollation_;
/**
*
* Name of SQL Collation that cluster will be created with.
*
* Name of SQL Collation that cluster will be created with.
*
*
* string sqlcollation = 13 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for sqlcollation.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSqlcollationBytes() {
java.lang.Object ref = sqlcollation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sqlcollation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOST_GROUP_IDS_FIELD_NUMBER = 14;
private com.google.protobuf.LazyStringList hostGroupIds_;
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @return A list containing the hostGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getHostGroupIdsList() {
return hostGroupIds_;
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @return The count of hostGroupIds.
*/
public int getHostGroupIdsCount() {
return hostGroupIds_.size();
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the element to return.
* @return The hostGroupIds at the given index.
*/
public java.lang.String getHostGroupIds(int index) {
return hostGroupIds_.get(index);
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the value to return.
* @return The bytes of the hostGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getHostGroupIdsBytes(int index) {
return hostGroupIds_.getByteString(index);
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 15;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account used for access to Object Storage.
*
* Deployment environment of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 5;
* @return The enum numeric value on the wire for environment.
*/
@java.lang.Override public int getEnvironmentValue() {
return environment_;
}
/**
*
* Deployment environment of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 5;
* @param value The enum numeric value on the wire for environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentValue(int value) {
environment_ = value;
onChanged();
return this;
}
/**
*
* Deployment environment of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 5;
* @return The environment.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.UNRECOGNIZED : result;
}
/**
*
* Deployment environment of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 5;
* @param value The environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironment(yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment value) {
if (value == null) {
throw new NullPointerException();
}
environment_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Deployment environment of the SQL Server cluster.
*
* ID of the network to create the SQL Server cluster in.
*
*
* string network_id = 10 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for networkId.
*/
public com.google.protobuf.ByteString
getNetworkIdBytes() {
java.lang.Object ref = networkId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
networkId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the network to create the SQL Server cluster in.
*
*
* string network_id = 10 [(.yandex.cloud.length) = "<=50"];
* @param value The networkId to set.
* @return This builder for chaining.
*/
public Builder setNetworkId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
networkId_ = value;
onChanged();
return this;
}
/**
*
* ID of the network to create the SQL Server cluster in.
*
*
* string network_id = 10 [(.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearNetworkId() {
networkId_ = getDefaultInstance().getNetworkId();
onChanged();
return this;
}
/**
*
* ID of the network to create the SQL Server cluster in.
*
*
* string network_id = 10 [(.yandex.cloud.length) = "<=50"];
* @param value The bytes for networkId to set.
* @return This builder for chaining.
*/
public Builder setNetworkIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
networkId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSecurityGroupIdsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
bitField0_ |= 0x00000010;
}
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @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);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @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);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @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;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @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;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 11;
* @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;
}
/**
*
* Name of SQL Collation that cluster will be created with.
*
*
* string sqlcollation = 13 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for sqlcollation.
*/
public com.google.protobuf.ByteString
getSqlcollationBytes() {
java.lang.Object ref = sqlcollation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sqlcollation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of SQL Collation that cluster will be created with.
*
*
* string sqlcollation = 13 [(.yandex.cloud.length) = "<=100"];
* @param value The sqlcollation to set.
* @return This builder for chaining.
*/
public Builder setSqlcollation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sqlcollation_ = value;
onChanged();
return this;
}
/**
*
* Name of SQL Collation that cluster will be created with.
*
*
* string sqlcollation = 13 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearSqlcollation() {
sqlcollation_ = getDefaultInstance().getSqlcollation();
onChanged();
return this;
}
/**
*
* Name of SQL Collation that cluster will be created with.
*
*
* string sqlcollation = 13 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for sqlcollation to set.
* @return This builder for chaining.
*/
public Builder setSqlcollationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sqlcollation_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList hostGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureHostGroupIdsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
hostGroupIds_ = new com.google.protobuf.LazyStringArrayList(hostGroupIds_);
bitField0_ |= 0x00000020;
}
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @return A list containing the hostGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getHostGroupIdsList() {
return hostGroupIds_.getUnmodifiableView();
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @return The count of hostGroupIds.
*/
public int getHostGroupIdsCount() {
return hostGroupIds_.size();
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the element to return.
* @return The hostGroupIds at the given index.
*/
public java.lang.String getHostGroupIds(int index) {
return hostGroupIds_.get(index);
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the value to return.
* @return The bytes of the hostGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getHostGroupIdsBytes(int index) {
return hostGroupIds_.getByteString(index);
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index to set the value at.
* @param value The hostGroupIds to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHostGroupIdsIsMutable();
hostGroupIds_.set(index, value);
onChanged();
return this;
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param value The hostGroupIds to add.
* @return This builder for chaining.
*/
public Builder addHostGroupIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHostGroupIdsIsMutable();
hostGroupIds_.add(value);
onChanged();
return this;
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param values The hostGroupIds to add.
* @return This builder for chaining.
*/
public Builder addAllHostGroupIds(
java.lang.Iterable values) {
ensureHostGroupIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, hostGroupIds_);
onChanged();
return this;
}
/**
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
java.lang.String getSecurityGroupIds(int index);
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @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);
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @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 LABELS_FIELD_NUMBER = 4;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_UpdateClusterRequest_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int CONFIG_SPEC_FIELD_NUMBER = 5;
private yandex.cloud.api.mdb.sqlserver.v1.PSCS.ConfigSpec configSpec_;
/**
*
* New configuration and resources for hosts in the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ConfigSpec config_spec = 5;
* @return Whether the configSpec field is set.
*/
@java.lang.Override
public boolean hasConfigSpec() {
return configSpec_ != null;
}
/**
*
* New configuration and resources for hosts in the SQL Server cluster.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @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 SECURITY_GROUP_IDS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @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);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @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);
}
public static final int DELETION_PROTECTION_FIELD_NUMBER = 8;
private boolean deletionProtection_;
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* bool deletion_protection = 8;
* @return The deletionProtection.
*/
@java.lang.Override
public boolean getDeletionProtection() {
return deletionProtection_;
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 9;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account used for access to Object Storage.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @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;
}
}
/**
*
* New description of the SQL Server cluster.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @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;
}
/**
*
* New description of the SQL Server cluster.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* New description of the SQL Server cluster.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @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 com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
* The new set of labels completely replaces the old one.
* To add a label, request the current set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @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;
}
}
/**
*
* New name for the SQL Server cluster.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @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;
}
/**
*
* New name for the SQL Server cluster.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* New name for the SQL Server cluster.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @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 com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSecurityGroupIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
bitField0_ |= 0x00000002;
}
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @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);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @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);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @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;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @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;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 7;
* @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;
}
/**
*
* Description of the new SQL Server cluster to be created from the backup.
*
*
* string description = 5 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Deployment environment of the new SQL Server cluster to be created from the backup.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @return The enum numeric value on the wire for environment.
*/
int getEnvironmentValue();
/**
*
* Deployment environment of the new SQL Server cluster to be created from the backup.
*
* ID of the folder to create the SQL Server cluster in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 11 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
java.lang.String getSecurityGroupIds(int index);
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @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);
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* repeated string host_group_ids = 14;
* @return A list containing the hostGroupIds.
*/
java.util.List
getHostGroupIdsList();
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @return The count of hostGroupIds.
*/
int getHostGroupIdsCount();
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the element to return.
* @return The hostGroupIds at the given index.
*/
java.lang.String getHostGroupIds(int index);
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the value to return.
* @return The bytes of the hostGroupIds at the given index.
*/
com.google.protobuf.ByteString
getHostGroupIdsBytes(int index);
/**
*
* ID of the service account used for access to Object Storage.
*
* ID of the backup to create a new cluster from.
* To get the backup ID, use a [ClusterService.ListBackups] request.
*
*
* string backup_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for backupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBackupIdBytes() {
java.lang.Object ref = backupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
backupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp time_;
/**
*
* Timestamp of the moment to which the SQL Server cluster should be restored.
*
*
* .google.protobuf.Timestamp time = 2 [(.yandex.cloud.required) = true];
* @return Whether the time field is set.
*/
@java.lang.Override
public boolean hasTime() {
return time_ != null;
}
/**
*
* Timestamp of the moment to which the SQL Server cluster should be restored.
*
*
* .google.protobuf.Timestamp time = 2 [(.yandex.cloud.required) = true];
* @return The time.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTime() {
return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
}
/**
*
* Timestamp of the moment to which the SQL Server cluster should be restored.
*
*
* .google.protobuf.Timestamp time = 2 [(.yandex.cloud.required) = true];
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
return getTime();
}
public static final int NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object name_;
/**
*
* Name of the new SQL Server cluster to be created from the backup. The name must be unique within the folder.
*
* Description of the new SQL Server cluster to be created from the backup.
*
*
* string description = 5 [(.yandex.cloud.length) = "<=256"];
* @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 LABELS_FIELD_NUMBER = 6;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_RestoreClusterRequest_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ENVIRONMENT_FIELD_NUMBER = 7;
private int environment_;
/**
*
* Deployment environment of the new SQL Server cluster to be created from the backup.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @return The enum numeric value on the wire for environment.
*/
@java.lang.Override public int getEnvironmentValue() {
return environment_;
}
/**
*
* Deployment environment of the new SQL Server cluster to be created from the backup.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @return The environment.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.UNRECOGNIZED : result;
}
public static final int CONFIG_SPEC_FIELD_NUMBER = 8;
private yandex.cloud.api.mdb.sqlserver.v1.PSCS.ConfigSpec configSpec_;
/**
*
* Configuration for the new SQL Server cluster to be created from the backup.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ConfigSpec config_spec = 8;
* @return Whether the configSpec field is set.
*/
@java.lang.Override
public boolean hasConfigSpec() {
return configSpec_ != null;
}
/**
*
* Configuration for the new SQL Server cluster to be created from the backup.
*
* ID of the folder to create the SQL Server cluster in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 11 [(.yandex.cloud.length) = "<=50"];
* @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 SECURITY_GROUP_IDS_FIELD_NUMBER = 12;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @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);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @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);
}
public static final int DELETION_PROTECTION_FIELD_NUMBER = 13;
private boolean deletionProtection_;
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* bool deletion_protection = 13;
* @return The deletionProtection.
*/
@java.lang.Override
public boolean getDeletionProtection() {
return deletionProtection_;
}
public static final int HOST_GROUP_IDS_FIELD_NUMBER = 14;
private com.google.protobuf.LazyStringList hostGroupIds_;
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @return A list containing the hostGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getHostGroupIdsList() {
return hostGroupIds_;
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @return The count of hostGroupIds.
*/
public int getHostGroupIdsCount() {
return hostGroupIds_.size();
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the element to return.
* @return The hostGroupIds at the given index.
*/
public java.lang.String getHostGroupIds(int index) {
return hostGroupIds_.get(index);
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the value to return.
* @return The bytes of the hostGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getHostGroupIdsBytes(int index) {
return hostGroupIds_.getByteString(index);
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 15;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account used for access to Object Storage.
*
* Name of the new SQL Server cluster to be created from the backup. The name must be unique within the folder.
*
*
* string name = 4 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*"];
* @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 new SQL Server cluster to be created from the backup. The name must be unique within the folder.
*
*
* string name = 4 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*"];
* @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 new SQL Server cluster to be created from the backup. The name must be unique within the folder.
*
*
* string name = 4 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the new SQL Server cluster to be created from the backup. The name must be unique within the folder.
*
*
* string name = 4 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*"];
* @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 new SQL Server cluster to be created from the backup.
*
* Description of the new SQL Server cluster to be created from the backup.
*
*
* string description = 5 [(.yandex.cloud.length) = "<=256"];
* @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 new SQL Server cluster to be created from the backup.
*
*
* string description = 5 [(.yandex.cloud.length) = "<=256"];
* @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 new SQL Server cluster to be created from the backup.
*
*
* string description = 5 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the new SQL Server cluster to be created from the backup.
*
*
* string description = 5 [(.yandex.cloud.length) = "<=256"];
* @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 com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Custom labels for the new SQL Server cluster to be created from the backup as `key:value` pairs.
* For example, `"project":"mvp"` or `"source":"dictionary"`.
*
* Deployment environment of the new SQL Server cluster to be created from the backup.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @return The enum numeric value on the wire for environment.
*/
@java.lang.Override public int getEnvironmentValue() {
return environment_;
}
/**
*
* Deployment environment of the new SQL Server cluster to be created from the backup.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @param value The enum numeric value on the wire for environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentValue(int value) {
environment_ = value;
onChanged();
return this;
}
/**
*
* Deployment environment of the new SQL Server cluster to be created from the backup.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @return The environment.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.UNRECOGNIZED : result;
}
/**
*
* Deployment environment of the new SQL Server cluster to be created from the backup.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @param value The environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironment(yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment value) {
if (value == null) {
throw new NullPointerException();
}
environment_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Deployment environment of the new SQL Server cluster to be created from the backup.
*
* ID of the folder to create the SQL Server cluster in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 11 [(.yandex.cloud.length) = "<=50"];
* @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 to create the SQL Server cluster in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 11 [(.yandex.cloud.length) = "<=50"];
* @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 to create the SQL Server cluster in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 11 [(.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to create the SQL Server cluster in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 11 [(.yandex.cloud.length) = "<=50"];
* @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.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSecurityGroupIdsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
bitField0_ |= 0x00000004;
}
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @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);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @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);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @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;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @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;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 12;
* @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;
}
/**
*
*
* repeated string host_group_ids = 14;
* @return A list containing the hostGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getHostGroupIdsList() {
return hostGroupIds_.getUnmodifiableView();
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @return The count of hostGroupIds.
*/
public int getHostGroupIdsCount() {
return hostGroupIds_.size();
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the element to return.
* @return The hostGroupIds at the given index.
*/
public java.lang.String getHostGroupIds(int index) {
return hostGroupIds_.get(index);
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index of the value to return.
* @return The bytes of the hostGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getHostGroupIdsBytes(int index) {
return hostGroupIds_.getByteString(index);
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param index The index to set the value at.
* @param value The hostGroupIds to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHostGroupIdsIsMutable();
hostGroupIds_.set(index, value);
onChanged();
return this;
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param value The hostGroupIds to add.
* @return This builder for chaining.
*/
public Builder addHostGroupIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHostGroupIdsIsMutable();
hostGroupIds_.add(value);
onChanged();
return this;
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 14;
* @param values The hostGroupIds to add.
* @return This builder for chaining.
*/
public Builder addAllHostGroupIds(
java.lang.Iterable values) {
ensureHostGroupIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, hostGroupIds_);
onChanged();
return this;
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @return A list containing the columnFilter.
*/
java.util.List
getColumnFilterList();
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @return The count of columnFilter.
*/
int getColumnFilterCount();
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @param index The index of the element to return.
* @return The columnFilter at the given index.
*/
java.lang.String getColumnFilter(int index);
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @param index The index of the value to return.
* @return The bytes of the columnFilter at the given index.
*/
com.google.protobuf.ByteString
getColumnFilterBytes(int index);
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest.ServiceType service_type = 3;
* @return The enum numeric value on the wire for serviceType.
*/
int getServiceTypeValue();
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterLogsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 6 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterLogsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterLogsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 7 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* The service returns [next_page_token] even if the current page is empty.
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently filtering can be applied to the [LogRecord.logs.message.hostname] field only.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Example of a filter: `message.hostname='node1.db.cloud.yandex.net'`.
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently filtering can be applied to the [LogRecord.logs.message.hostname] field only.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Example of a filter: `message.hostname='node1.db.cloud.yandex.net'`.
*
*
* string filter = 9 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest}
*/
public static final class ListClusterLogsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest)
ListClusterLogsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListClusterLogsRequest.newBuilder() to construct.
private ListClusterLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListClusterLogsRequest() {
clusterId_ = "";
columnFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
serviceType_ = 0;
pageToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListClusterLogsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClusterLogsRequest(
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();
clusterId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
columnFilter_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
columnFilter_.add(s);
break;
}
case 24: {
int rawValue = input.readEnum();
serviceType_ = rawValue;
break;
}
case 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (fromTime_ != null) {
subBuilder = fromTime_.toBuilder();
}
fromTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fromTime_);
fromTime_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (toTime_ != null) {
subBuilder = toTime_.toBuilder();
}
toTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(toTime_);
toTime_ = subBuilder.buildPartial();
}
break;
}
case 48: {
pageSize_ = input.readInt64();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
case 64: {
alwaysNextPageToken_ = input.readBool();
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = 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)) {
columnFilter_ = columnFilter_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterLogsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest.ServiceType}
*/
public enum ServiceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SERVICE_TYPE_UNSPECIFIED = 0;
*/
SERVICE_TYPE_UNSPECIFIED(0),
/**
*
*
* SQLSERVER_APPLICATION = 2;
*/
SQLSERVER_APPLICATION(2),
UNRECOGNIZED(-1),
;
/**
* SERVICE_TYPE_UNSPECIFIED = 0;
*/
public static final int SERVICE_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* SQL Server error log.
*
*
* SQLSERVER_ERROR = 1;
*/
public static final int SQLSERVER_ERROR_VALUE = 1;
/**
*
* SQL Server application log.
*
*
* SQLSERVER_APPLICATION = 2;
*/
public static final int SQLSERVER_APPLICATION_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 ServiceType 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 ServiceType forNumber(int value) {
switch (value) {
case 0: return SERVICE_TYPE_UNSPECIFIED;
case 1: return SQLSERVER_ERROR;
case 2: return SQLSERVER_APPLICATION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ServiceType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ServiceType findValueByNumber(int number) {
return ServiceType.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.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.getDescriptor().getEnumTypes().get(0);
}
private static final ServiceType[] VALUES = values();
public static ServiceType 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 ServiceType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest.ServiceType)
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the SQL Server cluster to request logs for.
* To get the SQL Server cluster ID, use a [ClusterService.List] request.
*
* ID of the SQL Server cluster to request logs for.
* To get the SQL Server cluster ID, use a [ClusterService.List] request.
*
*
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COLUMN_FILTER_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList columnFilter_;
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @return A list containing the columnFilter.
*/
public com.google.protobuf.ProtocolStringList
getColumnFilterList() {
return columnFilter_;
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @return The count of columnFilter.
*/
public int getColumnFilterCount() {
return columnFilter_.size();
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @param index The index of the element to return.
* @return The columnFilter at the given index.
*/
public java.lang.String getColumnFilter(int index) {
return columnFilter_.get(index);
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @param index The index of the value to return.
* @return The bytes of the columnFilter at the given index.
*/
public com.google.protobuf.ByteString
getColumnFilterBytes(int index) {
return columnFilter_.getByteString(index);
}
public static final int SERVICE_TYPE_FIELD_NUMBER = 3;
private int serviceType_;
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest.ServiceType service_type = 3;
* @return The enum numeric value on the wire for serviceType.
*/
@java.lang.Override public int getServiceTypeValue() {
return serviceType_;
}
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest.ServiceType service_type = 3;
* @return The serviceType.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.ServiceType getServiceType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.ServiceType result = yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.ServiceType.valueOf(serviceType_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.ServiceType.UNRECOGNIZED : result;
}
public static final int FROM_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp fromTime_;
/**
*
* Specifies a moment that the logs are requested from.
*
*
* .google.protobuf.Timestamp from_time = 4;
* @return Whether the fromTime field is set.
*/
@java.lang.Override
public boolean hasFromTime() {
return fromTime_ != null;
}
/**
*
* Specifies a moment that the logs are requested from.
*
* Specifies a moment that the logs are requested till.
*
*
* .google.protobuf.Timestamp to_time = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getToTimeOrBuilder() {
return getToTime();
}
public static final int PAGE_SIZE_FIELD_NUMBER = 6;
private long pageSize_;
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterLogsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 6 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterLogsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterLogsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 7 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALWAYS_NEXT_PAGE_TOKEN_FIELD_NUMBER = 8;
private boolean alwaysNextPageToken_;
/**
*
* The service returns [next_page_token] even if the current page is empty.
*
*
* bool always_next_page_token = 8;
* @return The alwaysNextPageToken.
*/
@java.lang.Override
public boolean getAlwaysNextPageToken() {
return alwaysNextPageToken_;
}
public static final int FILTER_FIELD_NUMBER = 9;
private volatile java.lang.Object filter_;
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently filtering can be applied to the [LogRecord.logs.message.hostname] field only.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Example of a filter: `message.hostname='node1.db.cloud.yandex.net'`.
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently filtering can be applied to the [LogRecord.logs.message.hostname] field only.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Example of a filter: `message.hostname='node1.db.cloud.yandex.net'`.
*
* ID of the SQL Server cluster to request logs for.
* To get the SQL Server cluster ID, use a [ClusterService.List] request.
*
*
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList columnFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureColumnFilterIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
columnFilter_ = new com.google.protobuf.LazyStringArrayList(columnFilter_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @return A list containing the columnFilter.
*/
public com.google.protobuf.ProtocolStringList
getColumnFilterList() {
return columnFilter_.getUnmodifiableView();
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @return The count of columnFilter.
*/
public int getColumnFilterCount() {
return columnFilter_.size();
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @param index The index of the element to return.
* @return The columnFilter at the given index.
*/
public java.lang.String getColumnFilter(int index) {
return columnFilter_.get(index);
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @param index The index of the value to return.
* @return The bytes of the columnFilter at the given index.
*/
public com.google.protobuf.ByteString
getColumnFilterBytes(int index) {
return columnFilter_.getByteString(index);
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @param index The index to set the value at.
* @param value The columnFilter to set.
* @return This builder for chaining.
*/
public Builder setColumnFilter(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnFilterIsMutable();
columnFilter_.set(index, value);
onChanged();
return this;
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @param value The columnFilter to add.
* @return This builder for chaining.
*/
public Builder addColumnFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnFilterIsMutable();
columnFilter_.add(value);
onChanged();
return this;
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @param values The columnFilter to add.
* @return This builder for chaining.
*/
public Builder addAllColumnFilter(
java.lang.Iterable values) {
ensureColumnFilterIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, columnFilter_);
onChanged();
return this;
}
/**
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
* Columns from the logs table to request.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @param value The bytes of the columnFilter to add.
* @return This builder for chaining.
*/
public Builder addColumnFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureColumnFilterIsMutable();
columnFilter_.add(value);
onChanged();
return this;
}
private int serviceType_ = 0;
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest.ServiceType service_type = 3;
* @return The enum numeric value on the wire for serviceType.
*/
@java.lang.Override public int getServiceTypeValue() {
return serviceType_;
}
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest.ServiceType service_type = 3;
* @param value The enum numeric value on the wire for serviceType to set.
* @return This builder for chaining.
*/
public Builder setServiceTypeValue(int value) {
serviceType_ = value;
onChanged();
return this;
}
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest.ServiceType service_type = 3;
* @return The serviceType.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.ServiceType getServiceType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.ServiceType result = yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.ServiceType.valueOf(serviceType_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.ServiceType.UNRECOGNIZED : result;
}
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest.ServiceType service_type = 3;
* @param value The serviceType to set.
* @return This builder for chaining.
*/
public Builder setServiceType(yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest.ServiceType value) {
if (value == null) {
throw new NullPointerException();
}
serviceType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterLogsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 6 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterLogsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 6 [(.yandex.cloud.value) = "0-1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterLogsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterLogsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterLogsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 7 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterLogsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 7 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterLogsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 7 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterLogsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 7 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
private boolean alwaysNextPageToken_ ;
/**
*
* The service returns [next_page_token] even if the current page is empty.
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently filtering can be applied to the [LogRecord.logs.message.hostname] field only.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Example of a filter: `message.hostname='node1.db.cloud.yandex.net'`.
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently filtering can be applied to the [LogRecord.logs.message.hostname] field only.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Example of a filter: `message.hostname='node1.db.cloud.yandex.net'`.
*
*
* string filter = 9 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently filtering can be applied to the [LogRecord.logs.message.hostname] field only.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Example of a filter: `message.hostname='node1.db.cloud.yandex.net'`.
*
*
* string filter = 9 [(.yandex.cloud.length) = "<=1000"];
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
return this;
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently filtering can be applied to the [LogRecord.logs.message.hostname] field only.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Example of a filter: `message.hostname='node1.db.cloud.yandex.net'`.
*
*
* string filter = 9 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name to filter by. Currently filtering can be applied to the [LogRecord.logs.message.hostname] field only.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Example of a filter: `message.hostname='node1.db.cloud.yandex.net'`.
*
*
* string filter = 9 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = 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.mdb.sqlserver.v1.ListClusterLogsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.ListClusterLogsRequest)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListClusterLogsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListClusterLogsRequest(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.mdb.sqlserver.v1.PSCS.ListClusterLogsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterLogsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.v1.ListClusterLogsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value for the [ListClusterLogsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value for the [ListClusterLogsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.ListClusterLogsResponse}
*/
public static final class ListClusterLogsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.v1.ListClusterLogsResponse)
ListClusterLogsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListClusterLogsResponse.newBuilder() to construct.
private ListClusterLogsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListClusterLogsResponse() {
logs_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListClusterLogsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClusterLogsResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
logs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
logs_.add(
input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.PSCS.LogRecord.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = 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)) {
logs_ = java.util.Collections.unmodifiableList(logs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterLogsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse.Builder.class);
}
public static final int LOGS_FIELD_NUMBER = 1;
private java.util.List logs_;
/**
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.LogRecord logs = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.LogRecordOrBuilder getLogsOrBuilder(
int index) {
return logs_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value for the [ListClusterLogsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value for the [ListClusterLogsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < logs_.size(); i++) {
output.writeMessage(1, logs_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < logs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, logs_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
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.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse other = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse) obj;
if (!getLogsList()
.equals(other.getLogsList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) 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 (getLogsCount() > 0) {
hash = (37 * hash) + LOGS_FIELD_NUMBER;
hash = (53 * hash) + getLogsList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse 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.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse 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.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse 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.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse 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.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse 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.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse 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.mdb.sqlserver.v1.ListClusterLogsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.ListClusterLogsResponse)
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterLogsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLogsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (logsBuilder_ == null) {
logs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
logsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterLogsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse build() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse result = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse(this);
int from_bitField0_ = bitField0_;
if (logsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
logs_ = java.util.Collections.unmodifiableList(logs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.logs_ = logs_;
} else {
result.logs_ = logsBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
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.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse.getDefaultInstance()) return this;
if (logsBuilder_ == null) {
if (!other.logs_.isEmpty()) {
if (logs_.isEmpty()) {
logs_ = other.logs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLogsIsMutable();
logs_.addAll(other.logs_);
}
onChanged();
}
} else {
if (!other.logs_.isEmpty()) {
if (logsBuilder_.isEmpty()) {
logsBuilder_.dispose();
logsBuilder_ = null;
logs_ = other.logs_;
bitField0_ = (bitField0_ & ~0x00000001);
logsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLogsFieldBuilder() : null;
} else {
logsBuilder_.addAllMessages(other.logs_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
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.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List logs_ =
java.util.Collections.emptyList();
private void ensureLogsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
logs_ = new java.util.ArrayList(logs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSCS.LogRecord, yandex.cloud.api.mdb.sqlserver.v1.PSCS.LogRecord.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSCS.LogRecordOrBuilder> logsBuilder_;
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value for the [ListClusterLogsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value for the [ListClusterLogsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value for the [ListClusterLogsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value for the [ListClusterLogsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value for the [ListClusterLogsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = 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.mdb.sqlserver.v1.ListClusterLogsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.ListClusterLogsResponse)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListClusterLogsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListClusterLogsResponse(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.mdb.sqlserver.v1.PSCS.ListClusterLogsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterOperationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.v1.ListClusterOperationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the SQL Server cluster to list operations for.
* To get the cluster ID, use a [ClusterService.List] request.
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.ListClusterOperationsRequest}
*/
public static final class ListClusterOperationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.v1.ListClusterOperationsRequest)
ListClusterOperationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListClusterOperationsRequest.newBuilder() to construct.
private ListClusterOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListClusterOperationsRequest() {
clusterId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListClusterOperationsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClusterOperationsRequest(
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();
clusterId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the SQL Server cluster to list operations for.
* To get the cluster ID, use a [ClusterService.List] request.
*
* ID of the SQL Server cluster to list operations for.
* To get the cluster ID, use a [ClusterService.List] request.
*
*
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
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.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest other = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest 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.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest 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.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest 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.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest 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.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest 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.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest 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.mdb.sqlserver.v1.ListClusterOperationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.ListClusterOperationsRequest)
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest.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();
clusterId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterOperationsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest build() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest result = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest(this);
result.clusterId_ = clusterId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
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.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
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.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the SQL Server cluster to list operations for.
* To get the cluster ID, use a [ClusterService.List] request.
*
* ID of the SQL Server cluster to list operations for.
* To get the cluster ID, use a [ClusterService.List] request.
*
*
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = 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.mdb.sqlserver.v1.ListClusterOperationsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.ListClusterOperationsRequest)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListClusterOperationsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListClusterOperationsRequest(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.mdb.sqlserver.v1.PSCS.ListClusterOperationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterOperationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.v1.ListClusterOperationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of operations for the specified SQL Server cluster.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.ListClusterOperationsResponse}
*/
public static final class ListClusterOperationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.v1.ListClusterOperationsResponse)
ListClusterOperationsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListClusterOperationsResponse.newBuilder() to construct.
private ListClusterOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListClusterOperationsResponse() {
operations_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListClusterOperationsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClusterOperationsResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
operations_.add(
input.readMessage(yandex.cloud.api.operation.OperationOuterClass.Operation.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = 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)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
private java.util.List operations_;
/**
*
* List of operations for the specified SQL Server cluster.
*
* List of operations for the specified SQL Server cluster.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index) {
return operations_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < operations_.size(); i++) {
output.writeMessage(1, operations_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < operations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, operations_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
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.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse other = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse) obj;
if (!getOperationsList()
.equals(other.getOperationsList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) 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 (getOperationsCount() > 0) {
hash = (37 * hash) + OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getOperationsList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse 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.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse 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.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse 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.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse 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.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse 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.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse 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.mdb.sqlserver.v1.ListClusterOperationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.ListClusterOperationsResponse)
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
operationsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterOperationsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse build() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse result = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse(this);
int from_bitField0_ = bitField0_;
if (operationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.operations_ = operations_;
} else {
result.operations_ = operationsBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
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.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse.getDefaultInstance()) return this;
if (operationsBuilder_ == null) {
if (!other.operations_.isEmpty()) {
if (operations_.isEmpty()) {
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOperationsIsMutable();
operations_.addAll(other.operations_);
}
onChanged();
}
} else {
if (!other.operations_.isEmpty()) {
if (operationsBuilder_.isEmpty()) {
operationsBuilder_.dispose();
operationsBuilder_ = null;
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
operationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOperationsFieldBuilder() : null;
} else {
operationsBuilder_.addAllMessages(other.operations_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
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.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List operations_ =
java.util.Collections.emptyList();
private void ensureOperationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList(operations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> operationsBuilder_;
/**
*
* List of operations for the specified SQL Server cluster.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* Token that allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value for the [ListClusterOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request has its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = 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.mdb.sqlserver.v1.ListClusterOperationsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.ListClusterOperationsResponse)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListClusterOperationsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListClusterOperationsResponse(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.mdb.sqlserver.v1.PSCS.ListClusterOperationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterBackupsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.v1.ListClusterBackupsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the SQL Server cluster.
* To get the SQL Server cluster ID, use a [ClusterService.List] request.
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterBackupsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.ListClusterBackupsRequest}
*/
public static final class ListClusterBackupsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.v1.ListClusterBackupsRequest)
ListClusterBackupsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListClusterBackupsRequest.newBuilder() to construct.
private ListClusterBackupsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListClusterBackupsRequest() {
clusterId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListClusterBackupsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClusterBackupsRequest(
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();
clusterId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterBackupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterBackupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the SQL Server cluster.
* To get the SQL Server cluster ID, use a [ClusterService.List] request.
*
* ID of the SQL Server cluster.
* To get the SQL Server cluster ID, use a [ClusterService.List] request.
*
*
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterBackupsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
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.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest other = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest 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.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest 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.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest 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.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest 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.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest 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.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest 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.mdb.sqlserver.v1.ListClusterBackupsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.ListClusterBackupsRequest)
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterBackupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterBackupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest.class, yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest.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();
clusterId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.internal_static_yandex_cloud_mdb_sqlserver_v1_ListClusterBackupsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest build() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest result = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest(this);
result.clusterId_ = clusterId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
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.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
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.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the SQL Server cluster.
* To get the SQL Server cluster ID, use a [ClusterService.List] request.
*
* ID of the SQL Server cluster.
* To get the SQL Server cluster ID, use a [ClusterService.List] request.
*
*
* string cluster_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterBackupsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterBackupsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return.
* If the number of available results is larger than [page_size], the service returns a [ListClusterBackupsResponse.next_page_token] that can be used to get the next page of results in subsequent list requests.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token] returned by the previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = 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.mdb.sqlserver.v1.ListClusterBackupsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.ListClusterBackupsRequest)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSCS.ListClusterBackupsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListClusterBackupsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListClusterBackupsRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser